Authentication

OAuth2 token endpoint

Exchanges an authorization code for an access/refresh token pair (grant_type: authorization_code) or refreshes an expired access token (grant_type: refresh_token). Returns access_token, token_type: Bearer, expires_in (seconds), and refresh_token.

post/auth/oauth/token

Request

  • Base URL: https://test.boost.space/api
  • URL: https://test.boost.space/api/auth/oauth/token
  • Auth: HTTP bearer

Request body

grant_type'authorization_code' | 'refresh_token' required

Grant type

client_idstring required

OAuth2 client ID

client_secretstring required

OAuth2 client secret

codestring

Authorization code (required for authorization_code grant)

redirect_uristring

Redirect URI (required for authorization_code grant)

refresh_tokenstring

Refresh token (required for refresh_token grant)

Response

Token response

access_tokenstring

Access token

token_typestring

Token type

expires_ininteger

Token expiration time in seconds

refresh_tokenstring

Refresh token

scopestring

Granted scopes

Example response

{
  "token_type": "Bearer"
}

Changes

No recorded changes to this operation across all 1 revision of this API.