Authorization
Authorization
RequiredBearer <token>< Project ID >:< Management Key > as bearer
In: header
Request Body
application/json
RequiredloginId
stringimpersonatorId
stringvalidateConsent
booleancustomClaims
objectselectedTenant
stringrefreshDuration
integerFormat:
"int32"
curl -X POST "https://api.descope.com/v1/mgmt/impersonate" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"loginId": "string",
"impersonatorId": "string",
"validateConsent": true,
"customClaims": {},
"selectedTenant": "string",
"refreshDuration": 0
}'
OK
{
"jwt": "string"
}
Was this helpful?