GraphQL

ChatBotKit comes with a powerful GraphQL API that allows you to programmatically interact with all aspects of the platform. You can use the API to manage bots, datasets, skillsets, files, secrets, portals, blueprints, and integrations.

To get access to the GraphQL API, you'll need to generate an API key from the ChatBotKit dashboard. Once you have an API key, you can use it to authenticate your requests to the GraphQL endpoint.

To send a request to the GraphQL API, use the following endpoint:

POST /api/v1/graphql Content-Type: application/json { "query": "...", "variables": { ... } }

http

A basic example of a mutation to create a bot is shown below:

mutation { createBot(input: { name: "My First Bot", description: "This is my first bot created via the GraphQL API" }) { id name description } }

graphql