Back to Documentation

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.chat

Endpoints

POST/api/v1/chatChat

Send a message and receive an AI response

GET/api/v1/conversationsConversations

List all conversations for a chatbot

GET/api/v1/conversations/:idConversations

Get a specific conversation with messages

POST/api/v1/chatbotsChatbots

Create a new chatbot

GET/api/v1/chatbotsChatbots

List all chatbots in your organization

PUT/api/v1/chatbots/:idChatbots

Update a chatbot configuration

POST/api/v1/knowledgeKnowledge

Add knowledge to a chatbot

GET/api/v1/analyticsAnalytics

Get 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

PlanRate LimitBurst Limit
Free100 requests/minute10 requests/second
Pro1,000 requests/minute50 requests/second
EnterpriseCustomCustom

Need Help?

Have questions about the API? Our developer support team is here to help you build amazing integrations.