Exchanges authorization code or other grant type for access tokens. Supports authorization code, refresh token, and client credentials flows. Client authentication via authorization header or client credentials.
curl --request POST \
--url https://api.fluxer.app/v1/oauth2/token \
--header 'Content-Type: multipart/form-data' \
--form grant_type=authorization_code \
--form 'code=<string>' \
--form 'redirect_uri=<string>' \
--form 'client_id=<string>' \
--form 'client_secret=<string>'{
"access_token": "<string>",
"token_type": "<string>",
"expires_in": 1073741823,
"refresh_token": "<string>",
"scope": "<string>"
}The grant type for exchanging an authorization code
authorization_code The authorization code received from the authorize endpoint
The redirect URI used in the authorization request
^(0|[1-9][0-9]*)$The application client secret
Success
The access token for API authorization
The type of token, typically "Bearer"
The number of seconds until the access token expires
0 <= x <= 2147483647The refresh token for obtaining new access tokens
The space-separated list of granted scopes
curl --request POST \
--url https://api.fluxer.app/v1/oauth2/token \
--header 'Content-Type: multipart/form-data' \
--form grant_type=authorization_code \
--form 'code=<string>' \
--form 'redirect_uri=<string>' \
--form 'client_id=<string>' \
--form 'client_secret=<string>'{
"access_token": "<string>",
"token_type": "<string>",
"expires_in": 1073741823,
"refresh_token": "<string>",
"scope": "<string>"
}