跳至主要内容

Create JWT access token

POST 

/platform/solutions/api/v1/auth/tokens

Exchanges an existing authentication credential (header or token) for a JWT access token.

  • Use the Authorization Bearer header with a JWT token to perform the token exchange.
  • Use the request body with token (JWT token) to perform the token exchange.
  • Use the request body with refreshToken (JWT token) to obtain a new JWT.

Parameters

  • grant_type: must be refresh_token when using a refresh token in the request body to obtain a new JWT.
  • refreshToken (string, optional): required when grant_type is refresh_token. Provide a valid Refresh Token to obtain a new JWT.
  • token (string, optional): provide a valid Token to exchange for a JWT.

Responses

  • 201 Created: successfully returns a new access_token
  • 403 Forbidden No valid credentials found

Security

  • This API requires either a valid Authorization header or a valid Refresh Token.
  • Applicable for both public and internal applications, but authentication is required.

Request

Responses

Created