Skip to main content
POST
Exchange a refresh token for a session, optionally acting for an account

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

user-agent
string | null

Body

application/json
userId
string | null

Account to act for; omit it to continue acting as the authenticated account.

Pattern: ^(?:cl_)?[A-Za-z0-9._:\-]{1,216}$
Example:

"cl_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41"

Response

Successful Response

accessToken
string
required

Short-lived bearer token used to authorize API requests.

expiresIn
integer
required

Number of seconds until the access token expires.

userId
string
required

Account selected for the issued session.

Pattern: ^(?:cl_)?[A-Za-z0-9._:\-]{1,216}$
Example:

"cl_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41"