POST https://3ati2ak.com/api/refresh

Exchange your current token for a new one before it expires.

Requires authentication. Pass your current token in the Authorization header. The old token is invalidated after a successful refresh.

Headers

Accept application/json
Authorization Bearer {your_token}

Request Body

No request body required.

Response 200 OK

Returns a brand-new token. Use this going forward — the old token is now invalid.

{
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
    "token_type": "bearer",
    "expires_in": 604800
}

Error Responses

401 Unauthorized Token is missing, expired, or invalid
{"success": false, "message": "Token has expired"}