Exchanges an authorization code for an API key.
X-Client-Secret header for authentication instead
of the standard Authorization header.| Parameter | Type | Description |
|---|---|---|
appId | string | Your application’s Client ID |
code | string | The authorization code received from the callback |
| Header | Required | Description |
|---|---|---|
X-Client-Secret | Yes | Your application’s 72-character client secret |
User-Agent | Yes | Your application identifier |
data field contains a JWT API key that you can use to make authenticated API requests.
| Error | Description |
|---|---|
invalid_code | The authorization code is invalid or has already been used |
code_expired | The authorization code has expired (codes are valid for 1 minute) |
invalid_client_secret | The client secret is incorrect |
app_not_found | The application ID is invalid |
Your API key goes here
The application ID.
The authorization code to exchange.
The object was successfully returned.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
Represents the data associated with a response.