API Endpoints
Complete reference for all Trillet AI API endpoints
Agents
Virtual AI assistants that handle voice interactions.
Create Agent
Create a new AI agent by selecting voice model characteristics and the underlying language model for script execution.
List Agents
Retrieve a paginated list of all available agents in your account.
Get Agent
Fetch detailed configuration and status information for a specific agent.
Update Agent
Modify an existing agent’s properties like name, voice settings, or personality.
Delete Agent
Permanently remove an agent from your account.
Flows
Complex flows that define how agents handle calls and route conversations.
Create Flow
Create a new call flow by defining flows for call handling and routing logic.
List Flows
Get a paginated list of all call flows in your account.
Get Flow
Retrieve detailed configuration for a specific call flow including routing logic.
Update Flow
Modify an existing call flow and routing rules.
Delete Flow
Permanently remove a call flow from your account.
Calls
Manage outbound voice calls using agents and flows.
Send Call
Initiate a new outbound call using an AI agent.
Request Body
The unique identifier of the AI agent that will handle the call
The phone number to call in E.164 format (e.g., +1234567890)
Response
Will be “success” if the call was initiated successfully
A unique identifier for the call
Internal room identifier for the call session
The phone number the call will be placed from
The destination phone number
Example Response
Error Responses
Notes
- The agent must have an active phone number configured
- The agent must have an active flow configured
- All phone numbers should be in E.164 format (+[country code][number])
- Calls are recorded by default unless specified otherwise
- Maximum call duration is typically 1 hour