What is the AgentClara API?
The AgentClara API lets you build your own applications that work with Clara. You can:- Create conversations - Programmatically start chats
- Fetch contacts - Get customer data
- Manage conversations - Read, update, close conversations
- Track webhooks - React to events in real-time (appointment booked, message received, etc.)
REST API
AgentClara uses a REST API. If you know HTTP, you know how to use it. Base URL:Rate Limiting
- 1,000 requests per minute per API key
- Burst limit: 100 requests in 10 seconds
429 Too Many Requests error. Wait a moment and retry.
Response Format
All API responses return JSON:HTTP Status Codes
| Code | Meaning |
|---|---|
| 200 | OK - Request succeeded |
| 201 | Created - Resource created |
| 400 | Bad Request - Missing or invalid parameters |
| 401 | Unauthorized - Invalid/missing API key |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource doesn’t exist |
| 429 | Rate Limited - Too many requests |
| 500 | Server Error - Something went wrong |
Available Endpoints
Conversations
Read, create, update conversations
Contacts
Fetch and manage customer contacts
Webhooks
Subscribe to real-time events
Getting Started
1. Get Your API Key
Go to https://agentclara.app/settings/advanced > API Keys Click “Create New Key” and copy it. Keep it secret. Don’t share it publicly.2. Make Your First Call
ReplaceYOUR_API_KEY with your actual key:
3. Read the Docs
Each endpoint has:- Description - What it does
- Parameters - What to send
- Response - What you get back
- Examples - Code samples
Webhook Events
Webhooks notify your app when events happen: Available events:conversation.created- New conversation startedconversation.updated- Conversation data changedmessage.received- New message arrivedappointment.booked- Clara booked an appointmentconversation.closed- Conversation marked resolved
SDKs & Libraries
We provide:- JavaScript/TypeScript SDK - For Node.js and browser
- Python SDK - For Python applications
- REST API - For any language
Common Use Cases
Use Case 1: Sync Contacts to Your CRM
- Call GET /contacts to get all your customers
- Loop through and sync to your CRM (HubSpot, Salesforce, etc.)
- Run this daily to keep data fresh
Use Case 2: Create a Custom Dashboard
- Call GET /conversations every minute
- Extract metrics (new conversations, appointment rate)
- Display in your custom dashboard
Use Case 3: React to Bookings
- Set up a webhook for
appointment.booked - When an appointment is booked, your app:
- Sends a confirmation email
- Adds it to your accounting system
- Notifies your team
Use Case 4: Build a Mobile App
- Use the API to fetch your customer conversations
- Display them in a mobile interface
- Send replies back through the API
Environments
Production:Errors & Troubleshooting
“401 Unauthorized”- API key is invalid or expired
- Missing
Authorizationheader - Check your key at Settings > Advanced
- You’re making too many requests per minute
- Back off and retry with exponential backoff
- The resource doesn’t exist
- Check the conversation/contact ID is correct
- Something went wrong on our end
- Try again in a few seconds
- Email support@agentclara.ai if it persists
Support
API questions? Email support@agentclara.ai Technical issues? Include:- Your API key (first 8 characters, redact the rest)
- The exact API call you made
- The error message
- Timestamp when it happened
Next Steps
- Get your API key - See Authentication
- Read conversation docs - See Conversations
- Set up webhooks - See Webhooks
Questions? Email support@agentclara.ai