Skip to main content
Exchange an access key for a JWT token for authentication with the GraphQL API.

exchangeAccessToken

This query exchanges a dedicated access key for a JWT token that can be used to authenticate subsequent GraphQL API requests.

Signature

Parameters

String!
required
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 the Authorization 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.

GraphQL API Overview

Complete GraphQL API authentication guide

Embed Chat

Authentication for embedded chat integrations