Impersonate allows you to authenticate as a different user by generating a nonrefreshable auth token.

Only superusers can perform this action.

API details
POST
/api/collections/collectionIdOrName/impersonate/id
Requires Authorization:TOKEN
Path parameters
Param Type Description
collectionIdOrName String ID or name of the auth collection.
id String ID of the auth record to impersonate.
Body Parameters
Param Type Description
Optional duration
Number Optional custom JWT duration for the exp claim (in seconds).
If not set or 0, it fallbacks to the default collection auth token duration option.
Body parameters could be sent as JSON or multipart/form-data.
Query parameters
Param Type Description
Responses
{#each responses as response (response.code)} {/each}
{#each responses as response (response.code)}
{/each}