curl --request POST \
--url https://api.other.page/v1/connect/token \
--header 'Content-Type: application/json' \
--data '{
"grant_type": "authorization_code",
"client_id": "<string>",
"client_secret": "<string>",
"redirect_uri": "<string>",
"code": "<string>",
"code_verifier": "<string>"
}'
{
"token_type": "Bearer",
"expires_in": 123,
"access_token": "<string>",
"refresh_token": "<string>",
"scope": "<string>"
}
Retrieve an OAuth2 JWT Bearer access_token
, refresh_token
, and id_token
(if using OpenID). Tokens can be obtained by passing an authorization_code
or a refresh_token
.
curl --request POST \
--url https://api.other.page/v1/connect/token \
--header 'Content-Type: application/json' \
--data '{
"grant_type": "authorization_code",
"client_id": "<string>",
"client_secret": "<string>",
"redirect_uri": "<string>",
"code": "<string>",
"code_verifier": "<string>"
}'
{
"token_type": "Bearer",
"expires_in": 123,
"access_token": "<string>",
"refresh_token": "<string>",
"scope": "<string>"
}
The response is of type object
.