API Reference/Access Keys (API Keys)
POST
/v1/auth/accesskey/exchange

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
loginOptionsobject
curl -X POST "https://api.descope.com/v1/auth/accesskey/exchange" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "loginOptions": {
      "customClaims": {}
    }
  }'

OK

{
  "keyId": "string",
  "sessionJwt": "string"
}

Was this helpful?