Sessions
Your sessions and devices: list, name, revoke; device sessions with rotating refresh tokens for apps.
Device sessions: new access and refresh tokens
The refresh token is the credential (no Authorization header). Both tokens rotate; the old access token stops at once (an open stream with it closes with 4401: reconnect with the new one). Send one refresh at a time: a refresh token used a second time ends the device session (401 refresh_reused).
Device sessions: new access and refresh tokens › Responses
OK
sessionThe new access token (rps_…); the previous one stops working at once.
refreshTokenThe new refresh token (rpr_…), shown only here. Keep it in the device's secure storage.
expiresAtWhen the access token stops working (RP_CUSTOMER_DEVICE_ACCESS_HOURS, default 24 h).
refreshExpiresAtWhen the refresh token stops working unless used (RP_CUSTOMER_DEVICE_REFRESH_DAYS, default 90 days).
sessionIdThe device session's id (stays the same across refreshes).
Your sessions and devices
Your sessions and devices › Responses
OK
Register this session as a device (get a refresh token)
Call right after signing in (within 15 minutes; after the 2FA step when there is one). The session's token is replaced by the answer's session; keep refreshToken in secure storage. 409 sign_in_too_old or already_device.
Register this session as a device (get a refresh token) › Request Body
namee.g. "Ada's iPhone".
platformRegister this session as a device (get a refresh token) › Responses
Registered.
sessionThe new access token (rps_…); the previous one stops working at once.
refreshTokenThe new refresh token (rpr_…), shown only here. Keep it in the device's secure storage.
expiresAtWhen the access token stops working (RP_CUSTOMER_DEVICE_ACCESS_HOURS, default 24 h).
refreshExpiresAtWhen the refresh token stops working unless used (RP_CUSTOMER_DEVICE_REFRESH_DAYS, default 90 days).
sessionIdThe device session's id (stays the same across refreshes).
Rename a session
path Parameters
id^\d{1,18}$ · requiredSession id.
Rename a session › Responses
OK
idkindweb: a sign-in session (30 days, no refresh); device: an app's session with a refresh token.
createdAtexpiresAtWhen the access token stops working.
currentThe session of this request.
nameThe device name the app or person chose.
platformuserAgentipThe address it was first used from.
lastUsedAtUpdated at most once a minute.
refreshExpiresAtDevice sessions: when the refresh token stops working.