Phone numbers are the entry point for your AI agents. When a call comes in to a registered number, the assigned agent handles the conversation.How It Works#
1.
You configure a phone number with your SIP provider to forward calls to Flireo
2.
You register the number in Flireo via the API
3.
You assign an agent to the number
4.
Incoming calls are automatically handled by the assigned agent
Phone Number Properties#
| Property | Type | Description |
|---|
id | UUID | Unique identifier |
phone_number | string | Phone number in E.164 format (e.g., +31850835037) |
name | string | Display name for the number |
agent_id | UUID | Assigned agent (nullable) |
transfer_trunk_id | UUID | SIP trunk for call transfers (nullable) |
Registering a Phone Number#
{
"number": {
"id": "abc12345-1234-5678-9012-abcdef123456",
"phone_number": "+31850835037",
"name": "Main Support Line",
"agent_id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
"transfer_trunk_id": null,
"created_at": "2025-12-13T10:00:00.000Z",
"updated_at": "2025-12-13T10:00:00.000Z"
}
}
Updating Agent Assignment#
Change which agent handles calls for a number:To unassign an agent (calls will not be handled):Configuring Call Transfers#
To enable call transfers from this number, assign a SIP trunk:Listing All Numbers#
{
"numbers": [
{
"id": "abc12345-...",
"phone_number": "+31850835037",
"name": "Main Support Line",
"agent_id": "17a0cb75-...",
"transfer_trunk_id": null
},
{
"id": "def67890-...",
"phone_number": "+31201234567",
"name": "Sales Line",
"agent_id": "28b1dc86-...",
"transfer_trunk_id": "trunk-123-..."
}
]
}
Deleting a Phone Number#
Agents - Create agents to assign to numbers Calls - View call history for your numbers Modified at 2025-12-29 14:21:17