Field | Type | Required | Description | Example |
---|---|---|---|---|
UserId |
string | ✔️ | The ID of the user being impersonated. | user_1a2b3c |
Actor |
Models.Operations.Actor | ✔️ | The actor payload. It needs to include a sub property which should contain the ID of the actor. This whole payload will be also included in the JWT session token. |
{ "sub": "user_2OEpKhcCN1Lat9NQ0G6puh7q5Rb" } |
ExpiresInSeconds |
long | ➖ | Optional parameter to specify the life duration of the actor token in seconds. By default, the duration is 1 hour. |
3600 |
SessionMaxDurationInSeconds |
long | ➖ | The maximum duration that the session which will be created by the generated actor token should last. By default, the duration of a session created via an actor token, lasts 30 minutes. |
1800 |