Exchange service account api-key for JWT access and refresh tokens
POST/v1/auth/token
Send the service account api-key in the api-key header. There is no request body. The response carries the access token, the refresh token, expiresIn in seconds, and the service account id. Sessions, consumers, charge points, and webhooks authenticate with Authorization: Bearer and that access token.
Request
Responses
- 201
- 401
- 403
- 500
- 502
- 503
- 504
Token pair issued. expiresIn is the access token lifetime in seconds (3600, one hour, in the current contract).
The api-key header is missing or empty (message is Missing api-key), or IAM rejected the credential (UNAUTHENTICATED). In the second case message is the detail returned by IAM.
IAM returned PERMISSION_DENIED. message is the detail returned by IAM.
The authentication service returned an empty response, or the failure could not be classified.
The authentication service returned an unexpected failure.
IAM is unavailable.
The authentication service did not respond before the deadline.