Skip to main content
Version: 2.0.0

Token Refresh

POST

  https://api.apptenticate.com/api/token/refresh/



This endpoint is used to renew a previously obtained JWT token. By providing the associated refresh token, you can obtain a new JWT token without the need to re-authenticate. This process is useful for maintaining user authentication, even after the original JWT token has expired.

Request data​

FieldTypeDescription
refreshstringRefresh token obtained when requesting the JWT access token

Request example​

Request
curl --location 'https://api.apptenticate.com/api/token/refresh/' \
--form 'refresh=<refresh_token>'

Request data​

FieldTypeDescription
accessstringJWT access token

Example of a successful request​

status_code 200
{
"access": "eyJhbGciOiJJ0b2tlbl90eXBlI6IkpXVCJ9.eyJ0b2tlbl90eXBlIj..."
}

Example of a failed request​

status_code 401
{
"detail": "Token is invalid or expired",
"code": "token_not_valid"
}