cURL
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 }
Exchange your API token for a JWT token that can be used for authenticated requests. JWT tokens are valid for 24 hours.
Your API token from the admin panel
"api_1234567890abcdef1234567890abcdef12345678"
Token exchange successful
JWT token for authentication
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Bearer
"Bearer"
Token expiration time in seconds
86400