Refresh token
POST /account/refresh_token/
Operation ID: account_refresh_token_create
⚠️ Important: Tokens expire after 60 days. Ensure you refresh your token before this time elapses, otherwise you will need to authenticate again using /api/account/login/
.
Refresh the token. We use JWT with a 60-day expiration period. You can refresh the token by calling this API with your current token.
Request Body
{
"token": "string"
}
Parameters
Field
Type
Required
Description
token
string
Yes
Current authentication token
Response
Success Response (200)
{
"token": "string"
}
Field
Type
Description
token
string
Refreshed token with extended expiration period
Usage
curl -X POST "https://betmatic.app/api/account/refresh_token/" \
-H "Content-Type: application/json" \
-H "Authorization: Token your_current_token" \
-d '{
"token": "your_current_token"
}'
Potential Use Cases
Long-running Applications: Automated systems that need to maintain authentication over extended periods
Bot Operations: Betting bots that run continuously and need to refresh tokens before expiration
API Client Libraries: SDK implementations that handle token refresh automatically
Last updated