For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
EnterpriseQuick Start
API ReferenceTutorials
  • Introduction
    • Getting started
  • API Reference
      • GETList API tokens
      • POSTCreate API token
      • POSTBlacklist a JWT refresh token
      • POSTRefresh JWT token
      • POSTRotate JWT refresh token
LogoLogo
EnterpriseQuick Start
API ReferenceTokens

Refresh JWT token

POST
http://localhost:8000/api/token/refresh/
POST
/api/token/refresh/
$curl -X POST http://localhost:8000/api/token/refresh/ \
> -H "Content-Type: application/json" \
> -d '{
> "refresh": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNjg3MjM0NTY3fQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
>}'
200Successful
1{
2 "access": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNjg3MjM0NTY3LCJleHAiOjE2ODcyMzgxNjd9.dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk"
3}
Get a new access token, using a refresh token.
Was this page helpful?
Previous

Rotate JWT refresh token

Next
Built with

Request

This endpoint expects an object.
refreshstringRequired>=1 character

Response

accessstring