exchangeAccessToken
query exchanges a dedicated access key for a JWT token that can be used to authenticate subsequent GraphQL API requests.
Deprecation Notice
For embedding use cases, use the Impersonate User API instead, which provides better security and user context.
For embedding use cases, use the Impersonate User API instead, which provides better security and user context.
Signature
Parameters
The dedicated access key provided by WisdomAI for your organization. Contact
support@askwisdom.ai
to obtain your access key.Response
Returns a JWT token as a string that should be used in theAuthorization
header for subsequent API requests.
Usage Example
JWT tokens have a limited lifetime. You will need to exchange your access key for a new JWT token periodically.