Flireo AI
WebsiteLinkedin
WebsiteLinkedin
  1. Get started
  • 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. Get started

Introduction

Welcome to the Flireo API! Build powerful AI voice agents that can handle phone calls, execute custom functions, and integrate seamlessly with your applications.
📞
Flireo enables you to create intelligent voice agents that understand natural language, execute custom functions, and provide human-like conversational experiences over the phone.

What is Flireo?#

Flireo is a voice AI platform that allows you to:
Create AI Voice Agents - Build intelligent agents with custom personalities and instructions
Handle Phone Calls - Receive and make calls with natural conversation flow
Execute Custom Functions - Let agents perform actions via webhooks and tool calls
Analyze Conversations - Get structured insights from call transcripts
Integrate Anywhere - Connect with your existing systems via REST API and webhooks
Agents
Create and manage AI voice agents
Calls
Monitor and control active calls
Webhooks
Receive real-time events
Phone Numbers
Connect your phone numbers
Usage
Track usage and billing
BYOK
Bring your own API keys

Authentication#

All API requests require authentication using an API key in the Authorization header.
cURL
JavaScript
Python
PHP
Keep your API key secure. Never expose it in client-side code or public repositories.
Get Your API Key:
1.
Sign up at flireo.com
2.
Navigate to Settings → API Keys
3.
Generate a new API key
4.
Store it securely in your environment variables
export FLIREO_API_KEY=your_api_key_here

Quick Start#

Get your first AI voice agent running in 5 minutes.
1
Create an Agent
Create your first AI voice agent with the Create Agent endpoint.
Response:
Agent

2
Add a Phone Number
Connect a SIP phone number to your agent using the Register Number endpoint.
{
  "number": "+31201234567",
  "agent_id": "agent_abc123"
}
You need to configure SIP forwarding with your provider to route calls to Flireo. See the Phone Numbers section for details.
3
Set Up Webhooks (Optional)
Configure webhooks in your agent to receive real-time events and execute custom functions.
{
  "webhook_url": "https://your-domain.com/webhook",
  "webhook_events": ["tool-calls", "end-of-call-report"]
}
See Webhooks Documentation for details.
4
Test Your Agent
Call your configured phone number to test the agent. You can also use the Create Outbound Call endpoint for outbound calls.
Start with a simple system prompt and iterate based on real call data

Core Concepts#

Agents#

Agents are the foundation of Flireo. Each agent has:
System Prompt - Instructions that define the agent's personality and behavior
LLM Configuration - Language model settings (provider, model, temperature)
TTS Configuration - Text-to-speech settings (provider, voice, speed)
Tools - Custom functions the agent can execute during calls
Analysis Plan - Structured data extraction from call transcripts
Agent

View Agent Endpoints →

Calls#

Calls represent phone conversations handled by your agents. Track:
Real-time status updates
Complete transcripts
Function calls executed
Call duration and costs
Analysis results
Call

View Call Endpoints →

Webhooks#

Webhooks enable real-time integration with your systems. Receive events for:
Assistant Request
Override agent config before call starts
Tool Calls
Execute custom functions during calls
Status Updates
Get notified of call state changes
End of Call Report
Receive complete call summary
Always verify webhook signatures to ensure requests come from Flireo. See webhook security documentation.

API Architecture#


Key Features#

Bring Your Own Key (BYOK)
Custom Tools & Functions
Structured Analysis
Call Controls

Rate Limits#

Current Limits:
100 requests per minute per API key
10 call control commands per minute per active call
Rate limits are applied per API key. Response headers include X-RateLimit-Remaining and X-RateLimit-Reset for tracking usage.
Implement exponential backoff when approaching rate limits to maintain reliability

Error Handling#

All errors follow a consistent format:
{
  "error": {
    "code": "invalid_request",
    "message": "Missing required field: system_prompt",
    "param": "system_prompt",
    "type": "validation_error"
  }
}
Common HTTP Status Codes:
CodeDescription
401 UnauthorizedInvalid or missing API key
400 Bad RequestMalformed request body or parameters
403 ForbiddenPermission denied
404 Not FoundResource doesn't exist
409 ConflictResource already exists (e.g., phone number)
500 Server ErrorInternal server error
Implement exponential backoff for rate limit errors
Don't retry authentication errors - check your API key instead

Webhooks Security#

Always verify webhook signatures to prevent spoofing:
Node.js
Python
Use timing-safe comparison functions to prevent timing attacks

Best Practices#

System Prompts
✅ Be specific and clear
✅ Define expected behavior
✅ Include examples
✅ Set boundaries
❌ Don't be vague
❌ Avoid contradictions
Webhook Handlers
✅ Respond within 5 seconds
✅ Process asynchronously
✅ Implement retries
✅ Log all attempts
❌ Don't perform heavy processing
❌ Don't ignore signatures
Error Handling
✅ Handle all error codes
✅ Use exponential backoff
✅ Log errors properly
✅ Monitor error rates
❌ Don't retry indefinitely
❌ Don't ignore rate limits
Security
✅ Store API keys securely
✅ Verify webhook signatures
✅ Use HTTPS everywhere
✅ Rotate keys regularly
❌ Never expose keys in code
❌ Don't skip validation

Need Help?#

Documentation#

Agent Configuration
Phone Numbers Setup
Webhook Integration
BYOK Configuration

Support#

Email: support@flireo.com
Live Docs: doc.flireo.com
Dashboard: flireo.com

Resources#

API Reference
OpenAPI Spec
GitHub Examples (Coming Soon)

What's Next?#

1
Explore Agent Endpoints
Learn how to create and configure AI agents
View Agent API →
2
Set Up Phone Numbers
Connect your SIP provider and start receiving calls
View Phone Numbers API →
3
Integrate Webhooks
Build real-time integrations with your systems
View Webhook Events →
4
Configure BYOK
Use your own API keys for LLM, STT, TTS, and email
Learn About BYOK →
🚀
Ready to build? Get your API key and create your first agent in minutes!
Modified at 2026-01-09 14:53:14
Previous
Quickstart
Next
Authentication
Built with