impersonateUser
This query exchanges a dedicated access key for a JWT token that can be used to authenticate subsequent GraphQL API requests while impersonating a specific user. This is useful for embedding scenarios where you need to authenticate as a particular user.Signature
Parameters
The dedicated access key provided by WisdomAI for your organization. Contact
support@askwisdom.ai
to obtain your access key. The access key will have impersonation permissions.The email address of the user to impersonate. This user must exist in the WisdomAI system and the access token must have impersonation permissions.
Response
Returns a JWT token as a string that should be used in theAuthorization
header for subsequent API requests. This JWT will authenticate as the impersonated user.
Usage Example
JWT tokens have a limited lifetime. You will need to exchange your access key for a new JWT token periodically.