API Reference/Management/Users
POST
/v1/mgmt/auth/anonymous

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
customClaimsobject
selectedTenantstring
refreshDurationinteger
Format: "int32"
curl -X POST "https://api.descope.com/v1/mgmt/auth/anonymous" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "customClaims": {},
    "selectedTenant": "string",
    "refreshDuration": 0
  }'

OK

{
  "sessionJwt": "string",
  "refreshJwt": "string",
  "cookieDomain": "string",
  "cookiePath": "string",
  "cookieMaxAge": 0,
  "cookieExpiration": 0
}

Was this helpful?