Base URL
All API requests are made to:Authentication
API requests require authentication using an API key. Include your API key in theAuthorization header:
Getting an API Key
1
Navigate to Settings
In the dashboard, go to your team settings.
2
API Keys Section
Click on API Keys in the sidebar.
3
Create Key
Click Create API Key and give it a name.
4
Copy Key
Copy the generated key - it won’t be shown again.
5
Store Securely
Store the key in your environment variables or secrets manager.
Keep your API key secret. Anyone with the key has full access to your team’s resources.
Making Requests
Example: List Bots
Example: Create Bot
Available Resources
Bots
Manage chatbot instances:GET /bots- List all botsPOST /bots- Create a botGET /bots/{id}- Get bot detailsPATCH /bots/{id}- Update botDELETE /bots/{id}- Delete bot
Integrations
Configure AI backend connections:GET /bots/{bot_id}/integrations- List integrationsPOST /bots/{bot_id}/integrations- Create integrationGET /integrations/{id}- Get integration detailsPATCH /integrations/{id}- Update integrationDELETE /integrations/{id}- Delete integration
Channels
Connect to messaging platforms:GET /bots/{bot_id}/channels- List channelsPOST /bots/{bot_id}/channels- Create channelGET /channels/{id}- Get channel detailsPATCH /channels/{id}- Update channelDELETE /channels/{id}- Delete channel
Conversations
Access conversation history:GET /bots/{bot_id}/conversations- List conversationsGET /conversations/{id}- Get conversation detailsGET /conversations/{id}/messages- Get messagesDELETE /conversations/{id}- Delete conversation
Agent Loops
Manage autonomous workflows:GET /agent-loops- List agent loopsPOST /agent-loops- Create agent loopGET /agent-loops/{id}- Get detailsPOST /agent-loops/{id}/run- Execute agent loopGET /agent-loops/{id}/executions- List executionsPATCH /agent-loops/{id}- Update agent loopDELETE /agent-loops/{id}- Delete agent loop
Pagination
List endpoints support pagination using query parameters:page- Page number (default: 1)per_page- Items per page (default: 20, max: 100)
Filtering
Some endpoints support filtering:Error Handling
API errors return appropriate HTTP status codes and JSON error objects:Status Codes
Rate Limits
API requests are rate limited per API key:
Rate limit headers are included in responses:
Webhooks
The API also sends webhooks for certain events:- Bot message received
- Integration failed
- Agent loop completed
- Channel disconnected
SDKs and Libraries
Official SDKs (coming soon):- JavaScript/TypeScript
- Python
- Go
- Ruby
Support
- Documentation: Full API reference at docs.chatbotplatform.io/api-reference
- Issues: Report bugs on GitHub
- Email: support@chatbotplatform.io
Next Steps
Authentication
Learn about API authentication
Bot Management
API endpoints for bots (coming soon)
Agent Loops API
Trigger agents programmatically (coming soon)