Flireo AI
WebsiteLinkedin
WebsiteLinkedin
  1. Call Control
  • 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
        POST
    • 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. Call Control

Send control command to active call

POST
https://api.flireo.com/api/v1/calls/{id}/control
Call Control
Last modified:2026-01-09 14:25:39
Maintainer:Not configured
Send real-time commands to an active call. The call must be in "in-progress" status.
⚠️ IMPORTANT: xAI Realtime Model Limitations
Call control has significant limitations when using xAI Realtime (grok-realtime-v1) due to its speech-to-speech architecture:
❌ inject-context: Limited effectiveness - context may not influence responses reliably
❌ say: Does not work reliably - commands often timeout or fail to trigger speech
✅ end-call: Works reliably
⚠️ transfer: Partial support - announcement may not work, but transfer executes
Why the limitations?
xAI Realtime is an end-to-end audio model that processes speech directly without intermediate text. It expects continuous audio input and cannot reliably respond to text-based control commands mid-conversation.
Recommendation:
If you need full call control support (inject-context, say, transfer with announcements), use the traditional pipeline:
Provider: openai with gpt-4o or gpt-4o-mini
STT: Deepgram (nova-3-general)
TTS: ElevenLabs or OpenAI TTS
Result: All control commands work reliably
Command Types:
inject-context: Silently add information to the agent's context (traditional models only)
say: Make the agent speak specific text (traditional models only)
end-call: End the call with an optional final message (works with all models)
transfer: Transfer the call to another destination (partial xAI Realtime support)
Use Cases:
SMS verification: Inject received codes into the conversation
CRM integration: Add customer context mid-call
Human escalation: Transfer to a live agent
Emergency end: Gracefully terminate problematic calls

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Command executed successfully
Body

🟠400
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flireo.com/api/v1/calls//control' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "inject-context",
    "content": "The customer has been verified as John Smith, account #12345",
    "trigger_response": true
}'
Response Response Example
200 - Example 1
{
    "success": true,
    "message": "Command sent successfully"
}
Modified at 2026-01-09 14:25:39
Previous
Initiate outbound call
Next
Get usage logs
Built with