Learn about the Partner API offered by ChatBotKit, a powerful tool for developing Software as a Service (SaaS) solutions. Discover how the Partner API simplifies SaaS development by providing unique sub-accounts with customizable configurations and restrictions. Explore the key features, integration capabilities, and the process of getting started with the ChatBotKit Partner API. Join us in the era of SaaS development and unleash the power of conversational AI.

The Partner API is a unique feature provided by ChatBotKit to facilitate the development of Software as a Service (SaaS) solutions. It allows the creation of sub-accounts with unique configurations and restrictions, offering a customizable and controlled environment for each of your clients. Each sub-account operates independently, hosting its own conversations and settings.

Our Partner API is designed specifically for creating SaaS solutions atop ChatBotKit, leveraging a dynamic parent-child account relationship. It is the first of its kind, aiming to simplify the development of AI SaaS solutions.

Key Features

  • Effortless SaaS Development: Simplify your SaaS solutions with our Partner API. Create separate sub-accounts with unique limits, restrictions, and configurations.
  • Unique Account Management: Each sub-account operates independently, hosting its own conversations and settings, providing greater customization and control.
  • Comprehensive SDK Implementation: Fully implemented within our SDK, the Partner API offers a seamless and efficient integration experience.
  • Integration with Popular Frameworks: We support direct integrations with popular frameworks such as NextAuth.js, making it even easier to incorporate our Partner API into your projects.

Getting Started

First you need to get your Partner account setup. This is only a temporary measure while the feature is still in BETA.

To get started with the ChatBotKit Partner API, first you will need to generate and provide an Authorization Bearer token. This token will be used in the header of your requests to authenticate your account.

Here's an example of how to create a new sub-account under a partner account:

POST /v1/partner/user/create HTTP/1.1 Host: api.chatbotkit.com Authorization: Bearer {your_token_here} Content-Type: application/json { "name": "New SaaS Client" }

The API will return the ID of the sub-account after it has been successfully created:

HTTP/1.1 200 OK Content-Type: application/json { "id": "sub_account_user_id" }

When interacting with these sub-accounts, you will need to add an extra header to your request. Here's an example of how to complete a specific conversation within the context of a sub-account:

POST /v1/conversation/{conversation_id}/complete HTTP/1.1 Host: api.chatbotkit.com Authorization: Bearer {your_token_here} X-RunAs-UserId: {sub_account_user_id} Content-Type: application/json { "text": "Hi there!" }

Further Reading

Are you ready to start building your SaaS solution with conversational AI? Our comprehensive Partner API documentation provides everything you need to get started. Dive deeper into our Partner API documentation and visit our OpenAPI specification page for the full experience.

Join us in the era of SaaS development. Unleash the power of ChatBotKit Partner API - because when it comes to building SaaS solutions, we believe in making things easier, not harder.

Contact Us

We invite you to reach out to our dedicated support team to get early access to the partner program. We are here to help you with any questions or issues you may have as you navigate through the Partner API and build your SaaS solution. We look forward to embarking on this journey with you!