For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/auth/refresh-token.md.
Refresh access token
Exchange a valid refresh token for a new access/refresh token pair
application/json- body
refresh_token*stringThe refresh token to exchange
Tokens refreshed successfully
application/json- response
access_token*stringJWT access token
refresh_token*stringJWT refresh token
expires_in*stringAccess token expiration timestamp
date-timetoken_type*stringToken type (always "Bearer")
device_token?stringMarks this client as signed in to the inbox by email; send it back as X-Device-Token. Present only on an email sign-in.
turnkey_session?A Turnkey session on the public key a provider sign-in sent. Absent when none was asked for or none could be issued.
curl -X POST 'https://api.truemarkets.co/v1/auth/token/refresh' \ -H 'Content-Type: application/json' \ -d '{ "refresh_token": "string"}'{ "access_token": "string", "refresh_token": "string", "expires_in": "2019-08-24T14:15:22Z", "token_type": "Bearer", "device_token": "string", "turnkey_session": { "expires_at": 0 }}Authentication REST
Exchange an API key signature for a token, and refresh it.
Exchange API key for tokens POST
Verify an ECDSA P-256 signature and issue JWT tokens. The client signs the message {key_id}.{unix_timestamp} with their private key using ES256. The timestamp must be within ±30 seconds of the server time.