Snapchat · Schema
TokenResponse
The response from a successful token exchange or refresh request.
AdvertisingARAugmented RealityMarketingMessagingSocial Media
Properties
| Name | Type | Description |
|---|---|---|
| access_token | string | The access token for authenticating API requests. |
| token_type | string | The type of token, always 'Bearer'. |
| expires_in | integer | The number of seconds until the access token expires. Typically 3600 (60 minutes). |
| refresh_token | string | The refresh token for obtaining new access tokens after expiration. |
| scope | string | The scopes granted by the user during authorization. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/TokenResponse",
"title": "TokenResponse",
"type": "object",
"description": "The response from a successful token exchange or refresh request.",
"properties": {
"access_token": {
"type": "string",
"description": "The access token for authenticating API requests."
},
"token_type": {
"type": "string",
"description": "The type of token, always 'Bearer'.",
"enum": [
"Bearer"
]
},
"expires_in": {
"type": "integer",
"description": "The number of seconds until the access token expires. Typically 3600 (60 minutes).",
"example": 3600
},
"refresh_token": {
"type": "string",
"description": "The refresh token for obtaining new access tokens after expiration."
},
"scope": {
"type": "string",
"description": "The scopes granted by the user during authorization."
}
}
}