Trigger outbound test call
Agents API
Trigger Test Call
Initiate an outbound test call using the specified agent
POST
Trigger outbound test call
Overview
Trigger an outbound test call from a voice agent. The agent will call the specified phone number and conduct a conversation based on its current configuration. This endpoint is primarily used for testing and validation purposes.Required Permission
agents
Path Parameters
Query Parameters
Outbound calls can only be placed to phone numbers that have been pre-registered (whitelisted) for your organization. Attempting to call an unregistered number returns HTTP 400. Contact your Inya account manager to register numbers for outbound calling.
Request Body
clientReferenceId Field
clientReferenceId is an optional free-form string that lets you link the Inya call record to your own system’s data (e.g. a CRM lead ID, booking reference, or campaign code). When provided:
- It is stored against the conversation record in the Inya platform.
- It is forwarded to the Dynamic Greeting API webhook (if
hasDynamicGreetingistrue), allowing your server to personalize the opening message. - It is returned in the response under
response.clientReferenceId.
clientReferenceId is omitted, the response field in the success payload will be null.
Example cURL
Response
Success (200) — with clientReferenceId
Success (200) — without clientReferenceId
Error Responses
400 Bad Request - Invalid phone number or parametersUse Cases
- Testing a new agent configuration against a real phone call
- Validating dynamic greeting responses before a production campaign
- Triggering calls with a reference ID to track conversations against your own records
- Verifying voicemail detection and call transfer behaviour
Ensure you have proper consent and comply with local telecommunications regulations before triggering outbound calls. Do not use this endpoint in production for large-scale campaigns.
Save the
requestId from every response. You will need it if you contact Inya support to trace a specific request.Authorizations
API key with 'agents' permission
Path Parameters
Unique identifier of the agent
Query Parameters
Target environment
Available options:
development, staging, production Body
application/json