Rotate the current refresh token.
POST
/v1/auth/refresh
const url = 'https://api.dev.iot-sens.schlossers.at/v1/auth/refresh';const options = { method: 'POST', headers: {cookie: '__Host-sens_refresh=<__Host-sens_refresh>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.dev.iot-sens.schlossers.at/v1/auth/refresh \ --cookie __Host-sens_refresh=<__Host-sens_refresh>Requires the refresh cookie and an Origin header that exactly matches the configured allowlist. A successful rotation extends the session’s seven-day inactivity deadline.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”A short-lived access token and rotated refresh cookie.
Media typeapplication/json
object
accessToken
required
string
tokenType
required
string
expiresInSeconds
required
integer
refreshIdleExpiresAt
required
string format: date-time
passwordChangeRequired
required
boolean
Example
{ "tokenType": "Bearer", "expiresInSeconds": 1800}Headers
Section titled “Headers”Cache-Control
string
Set-Cookie
string
Host-only HttpOnly refresh cookie; never contains an access token.
A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string
A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string
The same refresh token is already rotating in a short race window.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string
Retry-After
integer
A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string
A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string