API ReferenceAuthentication
Exchange a refresh token for a new session
Call this when the access token expires (every 15 minutes) rather than asking the user to log in again. The refresh token itself rotates on every use - store the new one.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/auth/refresh" \ -H "Content-Type: application/json" \ -d '{ "refreshToken": "string" }'{ "accessToken": "string", "refreshToken": "string"}