Skip to main content
POST
/
token
/
exchange
Exchange API token for JWT token
curl --request POST \
  --url https://api.flowent.chat/api/v1/gateway/token/exchange \
  --header 'Content-Type: application/json' \
  --data '
{
  "api_token": "api_1234567890abcdef1234567890abcdef12345678"
}
'
{
  "jwt_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer",
  "expires_in": 86400
}

Body

application/json
api_token
string
required

Your API token from the admin panel

Example:

"api_1234567890abcdef1234567890abcdef12345678"

Response

Token exchange successful

jwt_token
string

JWT token for authentication

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

token_type
enum<string>
Available options:
Bearer
Example:

"Bearer"

expires_in
integer

Token expiration time in seconds

Example:

86400