Amadeus · Schema
AmadeusOAuth2Token
The token response
TravelTravel TechnologyReservationsFlightsHotelsAirlinesHospitalityTours and ActivitiesCars and TransfersDestination ContentItinerary ManagementTrip PlanningArtificial IntelligenceMarket Insights
Properties
| Name | Type | Description |
|---|---|---|
| type | string | The access token issued by the authorization server. |
| username | string | The user who requested the access_token |
| application_name | string | The application which is requested the access_token |
| client_id | string | The client_id is a public identifier for apps |
| token_type | string | token_type is a parameter in Access Token generate call to Authorization server, which essentially represents how an access_token will be generated and presented for resource access calls |
| access_token | string | Access tokens are a String which applications use to make API requests on behalf of a user. |
| expires_in | integer | The lifetime in seconds of the access token |
| state | string | The state |
| scope | string | Scope is a mechanism in OAuth 2.0 to limit an application's access to a user's account |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/authorization-amadeus-oauth2-token-schema.json",
"title": "AmadeusOAuth2Token",
"description": "The token response",
"type": "object",
"properties": {
"type": {
"description": "The access token issued by the authorization server.",
"type": "string",
"example": "string-value"
},
"username": {
"description": "The user who requested the access_token",
"type": "string",
"example": "Sample Name"
},
"application_name": {
"description": "The application which is requested the access_token",
"type": "string",
"example": "Sample Name"
},
"client_id": {
"description": "The client_id is a public identifier for apps",
"type": "string",
"example": "12345"
},
"token_type": {
"description": "token_type is a parameter in Access Token generate call to Authorization server, which essentially represents how an access_token will be generated and presented for resource access calls",
"type": "string",
"example": "string-value"
},
"access_token": {
"description": "Access tokens are a String which applications use to make API requests on behalf of a user.",
"type": "string",
"example": "string-value"
},
"expires_in": {
"description": "The lifetime in seconds of the access token",
"type": "integer",
"format": "int64",
"example": 1
},
"state": {
"description": "The state",
"type": "string",
"example": "string-value"
},
"scope": {
"description": "Scope is a mechanism in OAuth 2.0 to limit an application's access to a user's account",
"type": "string",
"example": "string-value"
}
},
"example": {
"type": "amadeusOAuth2Token",
"username": "[email protected]",
"application_name": "My Application",
"client_id": "Hs0sNkpTXeu0t2Hw2rLITofK8QELGdfsf",
"token_type": "Bearer",
"access_token": "f8XgboI1oKyNw7w23bnnAbFANidfgC",
"expires_in": 1799,
"state": "approved",
"scope": ""
}
}