API Reference
Complete reference for the Trillet AI Platform API
Overview
The Trillet AI API provides programmatic access to create and manage AI agents, conversation flows, voice calls, and SMS messaging. Our REST API uses standard HTTP methods and returns JSON responses.
Base URL
bash https://api.trillet.ai
Authentication
All API requests require authentication using an API key in the x-api-key
header:
Your API key for authentication. Include this in the request headers.
Must be set to application/json
.
Get your API key from Trillet Settings Dashboard
API Resources
Call Agents API
Create and manage conversational call agents with unique voices and personalities through our REST API
Omni Flow Agents API
Create and manage messaging AI agents with unique through our REST API
Call Flows API
Design and control call & conversation flows programmatically
Message Flows API
Design and control call & conversation flows programmatically
Voice Calls API
Initiate and manage voice calls via REST endpoints
Conversations API
Design and control customer interactions through conversations programmatically
Rate Limits
The API has rate limits based on your plan. Contact the Trillet team to increase your limits.
Plan | Requests per minute | Concurrent calls |
---|---|---|
Developer | 60 | 1 |
Webhooks [Coming Soon!]
Configure webhooks to receive real-time updates about events in your account. Each webhook request includes an event type and relevant data:
Webhook Events
call.started
- When a call beginscall.completed
- When a call endscall.failed
- When a call fails to connectsms.sent
- When an SMS is sentsms.delivered
- When an SMS is deliveredagent.created
- When a new agent is createdagent.updated
- When an agent is updatedflow.created
- When a new flow is createdflow.updated
- When a flow is updated
Webhook Security
Verify webhook signatures using the signature in the X-Trillet-Signature
header:
Error Handling
The API uses conventional HTTP response codes:
200
- Success400
- Bad request401
- Unauthorized403
- Forbidden404
- Not found429
- Too many requests500
- Server error
Error responses include a message and error code:
Need Help?
API Status [Coming Soon!]
Check our API status and uptime
Support
Get technical support