Authentication

Exchange authorization code for access token

OAuth2 v2 token endpoint for authorization code exchange.

post/api/v1/oauth2_v2/token

Request

  • Base URL
    https://toolkit.browserstack.com
  • Auth
    none required

Request body application/x-www-form-urlencoded

string required

Response

Token response returned

access_tokenstring required
token_typestring required
expires_ininteger required
refresh_tokenstring nullable
scopestring nullable
created_atinteger required

Example response

{
  "access_token": "jwt.token.value",
  "token_type": "Bearer",
  "expires_in": 7200,
  "refresh_token": "refresh-token",
  "scope": "read write",
  "created_at": 1732000000
}

Changes

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