AI Customer Support API
Add AI-powered customer support to any application with a single API call. Build chatbots, support systems, or AI assistants on top of Oxaide.
Like Twilio for messaging or Stripe for payments — but for AI support.
Who uses this API? SaaS platforms adding AI support • Agencies building for clients • Developers creating custom chat experiences • Apps needing conversational AI
One API, Full AI Support
Production Ready
Pay Per Message
Quick Start
Get AI responses in your app in under 5 minutes.
1Authentication
Include your API key in the Authorization header of every request.
/api/v1/agentsList your AI agents to get an agent_id for conversations.
curl https://oxaide.com/api/v1/agents \
-H "Authorization: Bearer sk_live_your_api_key"2Create a Conversation
Start a new conversation with an agent. Optionally include customer info.
/api/v1/conversationsCreate a new conversation and get a conversation_id for sending messages.
curl https://oxaide.com/api/v1/conversations \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "123",
"customer": {
"email": "customer@example.com",
"name": "John Doe"
}
}'3Send a Message
Send a message and get an AI response. Uses 1 credit per message.
/api/v1/conversations/{id}/messagesSend a message to the AI and receive an intelligent response.
curl https://oxaide.com/api/v1/conversations/conv_xxx/messages \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"content": "What are your business hours?"
}'OptionalStreaming Responses
Enable streaming for real-time responses using Server-Sent Events (SSE).
/api/v1/conversations/{id}/messagesAdd stream: true to get real-time streaming responses.
curl https://oxaide.com/api/v1/conversations/conv_xxx/messages \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"content": "Tell me about your products",
"stream": true
}'API Reference
Complete list of available endpoints.
API Keys
/api/v1/keysList all API keys/api/v1/keysCreate a new API key/api/v1/keys/{keyId}Get key details/api/v1/keys/{keyId}Update key settings/api/v1/keys/{keyId}Revoke a keyConversations
/api/v1/conversationsList conversations/api/v1/conversationsCreate a conversation/api/v1/conversations/{id}Get conversation with messages/api/v1/conversations/{id}Archive conversationMessages
/api/v1/conversations/{id}/messagesList messages/api/v1/conversations/{id}/messagesSend message, get AI responseAgents
/api/v1/agentsList all agents/api/v1/agents/{id}Get agent detailsUsage
/api/v1/usageGet usage statisticsRate Limits
API keys have configurable rate limits. Default limits are 60 requests per minute and 10,000 requests per day.
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per minute |
X-RateLimit-Remaining | Requests remaining in window |
X-RateLimit-Reset | Unix timestamp when limit resets |
Retry-After | Seconds to wait (when rate limited) |
Error Handling
All errors return a consistent JSON structure with helpful details.
{
"error": {
"message": "Human-readable error message",
"type": "authentication_error",
"code": "invalid_api_key"
}
}| HTTP Status | Error Type | Description |
|---|---|---|
| 400 | api_error | Invalid request parameters |
| 401 | authentication_error | Invalid or missing API key |
| 403 | authorization_error | Insufficient permissions |
| 404 | not_found_error | Resource not found |
| 429 | rate_limit_error | Rate limit exceeded |
| 500 | internal_error | Server error |
Why Build on Oxaide
Focus on your product. Let us handle the AI support infrastructure.
You Build
✓ Your unique user interface
✓ Your business logic and workflows
✓ Your brand experience
✓ Your integrations (CRM, helpdesk, etc.)
Oxaide Handles
✓ AI model training and fine-tuning
✓ Knowledge base and RAG infrastructure
✓ Conversation management and context
✓ Scaling, reliability, and security
Architecture
Same API powers our widget, WhatsApp integration, and now your custom apps.
Ready to Build?
Create your free account and get API keys in minutes. Pay only for what you use — starting at $0.
Questions? Email api@oxaide.dev