Flireo AI
WebsiteLinkedin
WebsiteLinkedin
  1. Api's
  • API Reference
    • Agents
      • List all agents
      • Create a new agent
      • Get an agent
      • Update an agent
      • Delete an agent
    • Tool Templates
      • List all tool templates
      • Create a new tool template
      • Get a tool template
      • Update a tool template
      • Delete a tool template
    • Numbers
      • List all phone numbers
      • Register a phone number
      • Get a phone number
      • Update a phone number
      • Delete a phone number
    • Calls
      • List calls
      • Get call by ID
      • Initiate outbound call
    • Call Control
      • Send control command to active call
    • Usage
      • Get usage logs
    • SIP Trunks
      • List SIP trunks
      • Create a SIP trunk
      • Get a SIP trunk
      • Delete a SIP trunk
    • Voices
      • List available voices
    • BYOK
      • Get BYOK configurations
      • Add BYOK configuration
      • Delete BYOK configuration
      • Get BYOK provider configurations
    • Domains
      • Get your domain
      • Add a domain
      • Delete your domain
      • List available Resend domains
      • Select and sync a Resend domain
      • Verify domain DNS records
      • Refresh domain status
    • Webhooks
      • Dynamic assistant configuration webhook
      • Tool/Function Call
      • Call Status Update
      • End of Call Report
    • Analysis Templates
      • List analysis templates
      • Create analysis template
      • Get analysis template
      • Update analysis template
      • Delete analysis template
    • Organization
      • Get organization information
    • Campaigns
      • List all campaigns
      • Create a campaign
      • Get a campaign
      • Update a campaign
      • Delete a campaign
      • List campaign leads
      • Add a lead
      • Remove a lead
  • Documentation
    • Get started
      • Quickstart
      • Introduction
      • Authentication
    • Core concepts
      • Agents
      • Phone numbers
      • Calls
      • Webhooks
    • Api's
      • Organization
      • Agents
      • Phone numbers
      • Sip trunks
      • Calls
      • Call control
      • Usage
      • Voices
      • BYOK
      • Domains
      • Analysis templates
      • Tool templates
    • Webhooks
      • Overview
      • Assistant request
      • Tool calls
      • Status update
      • End of call report
      • Security
    • Guides
      • BYOK Setup
      • Call analysis
      • Custom Tools
      • Call Transfers
      • xAI Realtime Integration
      • Analysis templates
      • Billing
      • Error codes
      • Rate limits
      • Sip Trunks
      • Tool templates
      • Troubleshooting
WebsiteLinkedin
WebsiteLinkedin
  1. Api's

Agents

Manage AI voice agents with custom STT, LLM, and TTS configurations.

Endpoints#

MethodEndpointDescription
GET/agentsList all agents
POST/agentsCreate a new agent
GET/agents/{id}Get an agent
PATCH/agents/{id}Update an agent
DELETE/agents/{id}Delete an agent

List All Agents#

Retrieve all AI voice agents in your account.
GET /agents

Request#

Response#

{
  "agents": [
    {
      "id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
      "name": "Customer Support Agent",
      "business_name": "Acme Corp",
      "is_active": true,
      "first_message": "Hallo, welkom bij Acme. Waarmee kan ik u helpen?",
      "stt_config": {
        "provider": "deepgram",
        "model": "nova-3-general",
        "language": "nl"
      },
      "llm_config": {
        "provider": "openai",
        "model": "gpt-4o-mini",
        "temperature": 0.7,
        "messages": [...]
      },
      "tts_config": {
        "provider": "openai",
        "voiceId": "alloy"
      },
      "created_at": "2025-12-13T10:00:00.000Z",
      "updated_at": "2025-12-13T10:00:00.000Z"
    }
  ]
}

Create a New Agent#

Create a new AI voice agent. Only name is required.
POST /agents

Request Body#

FieldTypeRequiredDescription
namestringYesAgent display name
business_namestringNoBusiness the agent represents
notification_emailemailNoEmail for call notifications
first_messagestringNoInitial greeting message
is_activebooleanNoWhether agent is active (default: true)
webhook_urlURLNoWebhook URL for call events
webhook_secretstringNoSecret for webhook signatures
webhook_eventsarrayNoEvents to send to webhook
stt_configobjectNoSpeech-to-text configuration
llm_configobjectNoLanguage model configuration
tts_configobjectNoText-to-speech configuration

Example Request#

Response (201 Created)#

{
  "agent": {
    "id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
    "name": "Customer Support Agent",
    "business_name": "Acme Corp",
    "is_active": true,
    ...
  }
}

Get an Agent#

Retrieve a specific agent by ID.
GET /agents/{id}

Parameters#

NameInTypeDescription
idpathUUIDAgent UUID

Request#

Response#

{
  "agent": {
    "id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
    "name": "Customer Support Agent",
    ...
  }
}

Update an Agent#

Update an existing agent. Only provided fields will be updated.
PATCH /agents/{id}

Parameters#

NameInTypeDescription
idpathUUIDAgent UUID

Request Body#

All fields are optional. Only include fields you want to update.

Example Request#

Response#

{
  "agent": {
    "id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
    "first_message": "Goedemiddag, u spreekt met Acme support.",
    "is_active": false,
    ...
  }
}

Delete an Agent#

Delete an agent. Any phone numbers assigned to this agent will have their agent_id set to null.
DELETE /agents/{id}

Parameters#

NameInTypeDescription
idpathUUIDAgent UUID

Request#

Response#

{
  "success": true
}

Schemas#

STTConfig#

FieldTypeRequiredDescription
providerstringYesdeepgram
modelstringYese.g., nova-3-general
languagestringYese.g., nl, en

LLMConfig#

FieldTypeRequiredDescription
providerstringYesopenai, anthropic, groq
modelstringYese.g., gpt-4o-mini
temperaturenumberNo0-2, default 0.7
messagesarrayNoSystem prompts
toolsarrayNoAvailable tools

TTSConfig#

FieldTypeRequiredDescription
providerstringYesopenai, elevenlabs, cartesia
voiceIdstringYesVoice identifier
modelstringNoModel name
See Agent Schema for complete details.
Modified at 2025-12-29 14:17:15
Previous
Organization
Next
Phone numbers
Built with