API Reference
Build custom integrations with our REST API
The AgentPro API allows you to programmatically manage your chatbots, conversations, and knowledge base. Use our REST API to build custom integrations and extend the platform's capabilities.
Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header:
curl -X GET "https://agentpro.chat/api/v1/chatbots" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Note: You can generate API keys from your Dashboard → Settings → API Keys.
Base URL
https://agentpro.chatEndpoints
/api/v1/chatChatSend a message and receive an AI response
/api/v1/conversationsConversationsList all conversations for a chatbot
/api/v1/conversations/:idConversationsGet a specific conversation with messages
/api/v1/chatbotsChatbotsCreate a new chatbot
/api/v1/chatbotsChatbotsList all chatbots in your organization
/api/v1/chatbots/:idChatbotsUpdate a chatbot configuration
/api/v1/knowledgeKnowledgeAdd knowledge to a chatbot
/api/v1/analyticsAnalyticsGet analytics and usage statistics
Example: Send a Message
Send a message to your chatbot and receive an AI-generated response:
curl -X POST "https://agentpro.chat/api/v1/chat" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chatbotId": "your-chatbot-id",
"message": "Hello, how can I track my order?",
"sessionId": "user-session-123"
}'Response:
{
"success": true,
"data": {
"response": "I'd be happy to help you track your order! Please provide your order number and I'll look it up for you.",
"conversationId": "conv-abc123",
"messageId": "msg-xyz789",
"tokensUsed": 45
}
}Rate Limits
| Plan | Rate Limit | Burst Limit |
|---|---|---|
| Free | 100 requests/minute | 10 requests/second |
| Pro | 1,000 requests/minute | 50 requests/second |
| Enterprise | Custom | Custom |
Need Help?
Have questions about the API? Our developer support team is here to help you build amazing integrations.