Skip to main content
POST
/
oauth2
/
token
Exchange OAuth2 token
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>"
}

Body

multipart/form-data
grant_type
enum<string>
required

The grant type for exchanging an authorization code

Available options:
authorization_code
code
string
required

The authorization code received from the authorize endpoint

redirect_uri
string
required

The redirect URI used in the authorization request

client_id
string<snowflake>
client_secret
string

The application client secret

Response

Success

access_token
string
required

The access token for API authorization

token_type
string
required

The type of token, typically "Bearer"

expires_in
integer<int32>
required

The number of seconds until the access token expires

Required range: 0 <= x <= 2147483647
refresh_token
string
required

The refresh token for obtaining new access tokens

scope
string
required

The space-separated list of granted scopes