curl --request POST \
--url https://api.getsly.ai/v1/v1/ucp/identity/authorize/consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"authorization_request_id": "<string>",
"approved_scopes": [
"<string>"
],
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"code": "<string>",
"redirect_uri": "<string>",
"state": "<string>"
}Called from the consent UI after the user approves the requested scopes. Returns the authorization code.
curl --request POST \
--url https://api.getsly.ai/v1/v1/ucp/identity/authorize/consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"authorization_request_id": "<string>",
"approved_scopes": [
"<string>"
],
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"code": "<string>",
"redirect_uri": "<string>",
"state": "<string>"
}API key (pk_test_* or pk_live_), JWT session, agent token (agent_), Ed25519 session (sess_), or portal token (portal_).