This guide walks you through creating your first AI voice agent and making it available on a phone number.Prerequisites#
A Flireo account with an API key
A phone number configured to forward calls to Flireo (contact support for SIP configuration)
Step 1: Get Your API Key#
Find your API key in the dashboard under Settings > API Keys. You'll use this for all API requests.Step 2: Create an Agent#
Create a new AI agent with a simple POST request:{
"agent": {
"id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
"name": "Customer Support Agent",
"business_name": "Acme Corp",
"first_message": "Hallo, welkom bij Acme. Waarmee kan ik u helpen?",
"is_active": true,
"stt_config": { ... },
"llm_config": { ... },
"tts_config": { ... },
"created_at": "2025-12-13T10:00:00.000Z",
"updated_at": "2025-12-13T10:00:00.000Z"
}
}
Save the id - you'll need it to assign a phone number.Step 3: Register a Phone Number#
Register your phone number and assign the agent:{
"number": {
"id": "abc12345-1234-5678-9012-abcdef123456",
"phone_number": "+31850835037",
"name": "Main Support Line",
"agent_id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
"created_at": "2025-12-13T10:05:00.000Z"
}
}
Step 4: Test Your Agent#
Call the phone number you registered. Your AI agent will answer and greet the caller with the configured first message.Step 5: View Call History#
After the call, view it in your call history:{
"calls": [
{
"id": "call-_+31612345678_abc123",
"caller_phone": "+31612345678",
"assistant_phone": "+31850835037",
"status": "ended",
"duration_seconds": 45,
"summary": "Klant vroeg naar openingstijden.",
"agent_name": "Customer Support Agent",
"created_at": "2025-12-13T10:10:00.000Z"
}
],
"pagination": {
"total": 1,
"limit": 100,
"offset": 0
}
}
Next Steps#
Modified at 2026-01-09 15:20:03