Skip to main content
POST
/
management
/
v2.0
/
users
/
{userId}
/
impersonate
Impersonate a user.
curl --request POST \
  --url https://api-trial.cognigy.ai/new/management/v2.0/users/{userId}/impersonate \
  --header 'Authorization: Basic <encoded-value>'
{
  "access_token": "<string>",
  "expires_in": 123,
  "refresh_token": "<string>",
  "token_type": "<string>"
}

Authorizations

Authorization
string
header
required

Basic Authentication used by routes designed for the Management-UI.

Headers

Accept
enum<string>

The default media type is application/hal+json. Use application/json for pure data results.

Available options:
application/json,
application/hal+json,
application/xml,
text/xml,
text/csv

Path Parameters

userId
string
required

The Id of the User

Required string length: 24

Response

Token pair for the user.

access_token
string
expires_in
number
refresh_token
string
token_type
string
I