Create API Access Token
Exchange a refresh token for a short-lived JWT access token used to authorize Developer API requests.
Body
required
application/json
- Type: stringrefreshtokenrequired
Responses
- application/json
Request Example for post/api/token
curl https://api.chartmetric.com/api/token \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"refreshtoken": ""
}'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_in": 3600,
"refresh_token": "<refresh-token>",
"scope": "api"
}