authorization_code and refresh_token.
Credentials can also be passed as
client_id and client_secret body fields if Basic auth is awkward in your HTTP client, where client_secret is your API key.
Exchange an Authorization Code
Refresh a Token Pair
cURL
Response
The response is identical for both grants.
Responses are sent with
cache-control: no-store and pragma: no-cache.
The pair returned here is bound to the API key you authenticated with. Refreshing on a different key rebinds it, and revoking a key invalidates every token that key issued. See Rotating a Key.
Errors
Errors may include an
error_description field with more detail.