Flireo AI
WebsiteLinkedin
WebsiteLinkedin
  1. Core concepts
  • 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. Core concepts

Calls

Calls represent phone conversations handled by your AI agents. Flireo supports both inbound calls (someone calls your number) and outbound calls (your agent calls someone).

Call Lifecycle#

Inbound Calls#

1.
Ringing - Call comes in to your registered number
2.
Assistant Request - If configured, webhook is called to customize the agent
3.
In Progress - Call is answered and conversation begins
4.
Ended - Call ends (customer hung up, agent ended, or transfer)
5.
Report - End-of-call webhook sent with summary and analysis

Outbound Calls#

1.
Dialing - Agent initiates call to destination
2.
In Progress - Destination answers, conversation begins
3.
Ended - Call ends
4.
Report - End-of-call webhook sent

Call Properties#

PropertyTypeDescription
idstringUnique call identifier
caller_phonestringCaller's phone number (E.164)
assistant_phonestringAgent's phone number (E.164)
statusstringconnecting, in-progress, ended, failed
errorstringError message if call failed
started_atdatetimeWhen call was answered
ended_atdatetimeWhen call ended
duration_secondsintegerCall duration
summarystringAI-generated call summary
agent_namestringName of agent that handled call
business_namestringBusiness name of agent

Listing Calls#

Response:
{
  "calls": [
    {
      "id": "call-_+31612345678_abc123",
      "caller_phone": "+31612345678",
      "assistant_phone": "+31850835037",
      "status": "ended",
      "duration_seconds": 84,
      "summary": "Klant vroeg naar openingstijden en wilde een afspraak maken.",
      "agent_name": "Customer Support",
      "business_name": "Acme Corp",
      "started_at": "2025-12-13T10:00:00.000Z",
      "ended_at": "2025-12-13T10:01:24.000Z",
      "created_at": "2025-12-13T09:59:55.000Z"
    }
  ],
  "pagination": {
    "total": 150,
    "limit": 50,
    "offset": 0
  }
}

Filtering Calls#

Filter by status:
Filter by date range:
See List Calls for all parameters.

Initiating Outbound Calls#

Make your agent call someone:
Response:
{
  "success": true,
  "call_id": "call-outbound-abc123",
  "room_name": "outbound-abc12345",
  "status": "dialing"
}

Outbound Call Parameters#

ParameterRequiredDescription
destinationYesPhone number to call (E.164 format)
agent_idYesAgent to use for the call
first_messageNoCustom greeting (overrides agent default)
contextNoAdditional context for the agent

Use Cases for Outbound Calls#

Appointment reminders
Customer follow-ups
Survey calls
Delivery notifications
Payment reminders
See Initiate Outbound Call for details.

Real-time Call Control#

Send commands to active calls. The call must have status in-progress.

Inject Context#

Add information to the agent's context without speaking:

Make Agent Speak#

End Call#

Transfer Call#

See Send Control Command to Active Call for details.

Related#

Agents - Configure agents that handle calls
Call Status Webhook - Receive real-time status updates
End of Call Report - Get post-call summaries
Modified at 2025-12-29 14:20:41
Previous
Phone numbers
Next
Webhooks
Built with