Refresh Token
Auth
Refresh Token
Exchange a refresh token for a new token pair
POST
Refresh Token
Uses a valid refresh token to obtain a new access token and refresh token pair. The previous refresh token is invalidated (token rotation) to prevent replay attacks.Documentation Index
Fetch the complete documentation index at: https://docs.bunship.com/llms.txt
Use this file to discover all available pages before exploring further.
Auth
None required. The refresh token in the request body serves as authentication.Rate Limit
20 requests per minute per IP.Request Body
The refresh token received from a previous login or refresh response.
Response
New JWT access token. Expires in 15 minutes.
New JWT refresh token. Expires in 7 days. Store this for the next rotation.
Access token expiry in seconds (900).
Errors
| Status | Code | Description |
|---|---|---|
401 | AUTHENTICATION_ERROR | Refresh token is invalid, expired, or already used |

