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

Phone numbers

Manage phone numbers and their agent assignments.

Endpoints#

MethodEndpointDescription
GET/numbersList all phone numbers
POST/numbersRegister a phone number
GET/numbers/{id}Get a phone number
PATCH/numbers/{id}Update a phone number
DELETE/numbers/{id}Delete a phone number

List All Phone Numbers#

Retrieve all phone numbers in your account with their assigned agents and transfer trunks.
GET /numbers

Request#

Response#

{
  "numbers": [
    {
      "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"
    }
  ]
}

Register a Phone Number#

Register a new phone number in your account. The number must be configured with your SIP provider to forward calls to Flireo.
POST /numbers

Request Body#

FieldTypeRequiredDescription
phone_numberstringYesPhone number in E.164 format
namestringNoDisplay name
agent_idUUIDNoAgent to assign
transfer_trunk_idUUIDNoSIP trunk for transfers

Example Request#

Response (201 Created)#

{
  "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"
  }
}

Errors#

StatusDescription
400Invalid phone number format
409Phone number already registered

Get a Phone Number#

Retrieve a specific phone number by ID.
GET /numbers/{id}

Parameters#

NameInTypeDescription
idpathUUIDPhone number UUID

Request#


Update a Phone Number#

Update agent assignment or transfer trunk for a phone number.
PATCH /numbers/{id}

Parameters#

NameInTypeDescription
idpathUUIDPhone number UUID

Request Body#

FieldTypeDescription
namestringDisplay name
agent_idUUIDAgent to assign (null to unassign)
transfer_trunk_idUUIDSIP trunk for transfers

Example: Change Agent#

Example: Unassign Agent#


Delete a Phone Number#

Remove a phone number from your account.
DELETE /numbers/{id}

Parameters#

NameInTypeDescription
idpathUUIDPhone number UUID

Request#

Response#

{
  "success": true
}
See PhoneNumber Schema for complete details.
Modified at 2025-12-29 14:21:02
Previous
Agents
Next
Sip trunks
Built with