Refresh JWT by re-exchanging the service account api-key (refreshToken required for contract compatibility)
POST/v1/auth/refresh
Send the same api-key header and the previous refreshToken in the body. IAM is called with the api-key. refreshToken must be a non-empty string. Call this before expiresIn elapses. The response is a new pair, and expiresIn starts again from the returned value.
Request
Responses
- 201
- 400
- 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 body is missing, or refreshToken is missing, empty, or not a string. message is a list of validation errors.
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.