cURL
curl --request POST \ --url https://api.getsly.ai/v1/v1/ucp/identity/token \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "grant_type": "authorization_code", "code": "<string>", "client_id": "<string>", "client_secret": "<string>", "redirect_uri": "<string>" } '
{ "access_token": "<string>", "token_type": "Bearer", "expires_in": 123, "scope": "<string>", "refresh_token": "<string>" }
Exchange authorization code for access token, or refresh an existing token.
API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).
authorization_code
Token
Bearer