Post a request to the token endpoint to retrieve a token
POST/token
exchange a code for an access token
Request
Header Parameters
Possible values: Value must match regular expression ^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d{4} \d{2}:\d{2}:\d{2} (GMT|UTC)$
The time when the PSU last logged in with the TPP. All dates in the HTTP headers are represented as RFC 7231 Full Dates. An example is below: Sun, 10 Sep 2017 19:43:31 UTC
The PSU's IP address if the PSU is currently logged in with the TPP.
An RFC4122 UID used as a correlation id.
Indicates the user-agent that the PSU is using.
- application/x-www-form-urlencoded
Body
required
Client Access Token Request
Possible values: non-empty
, [client_credentials
, private_key_jwt
, tls_client_auth
, urn:ietf:params:oauth:grant-type:device_code
]
Default value: client_credentials
The Grant Type
Possible values: non-empty
and <= 255 characters
Required with grant_type private_key_jwt
Possible values: non-empty
and <= 160 characters
, [urn:ietf:params:oauth:client-assertion-type:jwt-bearer
]
Required with grant_type private_key_jwt
Possible values: non-empty
The assertion that is used to get a token, required with grant_type private_key_jwt
Responses
- 200
- 400
- 404
- 406
- 429
- 500
- 502
- 504
Access token response
Response Headers
x-fapi-interaction-id
string
- application/json
- Schema
- Example (from schema)
Schema
Access token
lifetime in seconds
{
"access_token": "string",
"expires_in": 0,
"token_type": "string",
"scope": "string"
}
Bad Request
Response Headers
x-fapi-interaction-id
string
- application/json
- Schema
- Example (from schema)
Schema
Validation Error
Validation Error description
{
"error": "string",
"error_description": "string"
}
Not found
Response Headers
x-fapi-interaction-id
string
- application/json
- Schema
- Example (from schema)
Schema
Validation Error messages
{
"errors": [
"string"
]
}
Not Acceptable
Response Headers
x-fapi-interaction-id
string
Too many requests, maximum capacity reached. Requests are now throttled.
Response Headers
x-fapi-interaction-id
string
Internal Server Error
Response Headers
x-fapi-interaction-id
string
Bad Gateway
Response Headers
x-fapi-interaction-id
string
Upstream timeout, insufficient capacity to serve request. More capacity being brought online. Please try again.
Response Headers
x-fapi-interaction-id
string