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

Call control

Send real-time commands to active calls.

Send Control Command#

Send a command to an active call. The call must have status in-progress.
POST /calls/{id}/control

Parameters#

NameInTypeDescription
idpathstringCall ID

Command Types#

TypeDescription
inject-contextAdd information to agent's memory without speaking
sayMake the agent speak specific text
end-callEnd the call with optional message
transferTransfer to another number

Inject Context#

Add information to the agent's context without the agent speaking. Use for SMS verification codes, CRM data lookups, or any silent context updates.

Request#

Fields#

FieldTypeRequiredDescription
typestringYesinject-context
contentstringYesContext to inject
trigger_responsebooleanYesIf true, agent responds immediately

Say#

Make the agent speak specific text.

Request#

Fields#

FieldTypeRequiredDescription
typestringYessay
contentstringYesText for the agent to speak
end_afterbooleanYesEnd call after speaking

End Call#

End the active call, optionally with a final message.

Request#

Fields#

FieldTypeRequiredDescription
typestringYesend-call
messagestringNoFinal message before ending

Transfer#

Transfer the call to another phone number or SIP endpoint.

Request#

Fields#

FieldTypeRequiredDescription
typestringYestransfer
destinationstringYesPhone number or SIP URI
messagestringNoMessage before transfer

Response#

All commands return:
{
  "success": true,
  "message": "Command sent successfully"
}

Errors#

StatusDescription
400Invalid command or call not active
404Call not found
See CallControlCommand Schema for complete details.
Modified at 2025-12-29 14:18:06
Previous
Calls
Next
Usage
Built with