Skip to main content
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

For some API key types (e.g. Developer role), environment=development must be passed explicitly. Omitting it will return a 403 error: "Developer can only trigger calls in the development environment". If you receive this error, add ?environment=development to your request.
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 hasDynamicGreeting is true), allowing your server to personalize the opening message.
  • It is returned in the response under response.clientReferenceId.
When 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 parameters
400 Bad Request - Phone number not whitelisted for outbound calls
403 Forbidden - Insufficient permissions
403 Forbidden - Agent not found or not accessible

Use 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.
Use the environment query parameter to direct test calls to your development configuration, keeping production traffic clean.
Save the requestId from every response. You will need it if you contact Inya support to trace a specific request.

Authorizations

x-api-key
string
header
required

API key with 'agents' permission

Path Parameters

botId
string
required

Unique identifier of the agent

Query Parameters

environment
enum<string>

Target environment

Available options:
development,
staging,
production

Body

application/json
phone
string
required
Example:

"9876543210"

countryCode
string
required
Example:

"+91"

name
string
required
Example:

"Jane Doe"

clientReferenceId
string

Optional client-supplied reference ID. Stored against the conversation and forwarded to the dynamic greeting API.

Example:

"my-ref-001"

Response

Call triggered successfully

status
string
Example:

"success"

requestId
string
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

message
string
response
object