API ReferenceAccess Keys (API Keys)
POST
/v1/auth/accesskey/exchange

Authorization

Descope Project ID:Access Key
AuthorizationBearer <token>

Project ID:Access Key as bearer token.

In: header

Request Body

application/json

loginOptions?object

Exchange API key for access token

This API Endpoint will take an API key for the project and provide an access token to be used for accessing the application. The session token JWT token will be valid for the configured Session Token Timeout, and its expiration time will be provided in the expiration field of the response object.

curl -X POST "https://api.descope.com/v1/auth/accesskey/exchange" \  -H "Content-Type: application/json" \  -d '{}'
{  "keyId": "string",  "sessionJwt": "string"}
export interface Response {keyId?: stringsessionJwt?: string}
Was this helpful?