POST /api/userAuth/refresh-token
Issues a new access token using the current refresh token. The refresh token is automatically rotated — the old one is invalidated and a new one is issued.
Required Header
x-api-key: your pk_live_… key.
Two Modes
Depending on your client type, you send the refresh token differently.Web (browser)
The refresh token is stored in an HTTP-only cookie set during login. You do not need to read or send it manually — just includecredentials: 'include' so the browser attaches the cookie automatically.
Mobile / non-browser
Include the refresh token in thex-refresh-token header, and set x-refresh-token-mode to 'header' to tell urBackend to read it from there.
Response Fields
true when a new access token was issued.Human-readable status message.
Code Examples
Success Response
Errors
| Status | Cause |
|---|---|
401 Unauthorized | Refresh token missing, invalid, or already rotated |
