POST
/
campaign
/
trigger-call
curl --request POST \
  --url https://subverseai.com/api/campaign/trigger-call \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "phone_number": "+912298765432",
  "metadata": {
    "email": "[email protected]",
    "name": "John Doe",
    "id": "JD75816540"
  },
  "botNumber": "+912298765432",
  "useCase": "test_case",
  "options": {
    "transcriptLanguage": "hi",
    "allowedOverallInterruptions": "True",
    "allowedInterruptionsInitially": "False",
    "ttsLanguage": "hi",
    "voiceId": "IvLWq57RKibBrqZGpQrC",
    "speed": "2",
    "transferNumber": "+912298765432",
    "communicationMethod": "two_way",
    "dtmfEnabled": "False",
    "initialMessage": "Hi, ${name} how can I assist you today?",
    "additionalContext": "The caller is asking about a refund request submitted yesterday."
  }
}'
{
  "responseCode": 200,
  "message": "Call triggered successfully",
  "data": null
}

Authorizations

x-api-key
string
header
required

Authentication header containing API key from SubVerse dashboard.

Body

application/json
phone_number
string
required

User's phone number. Must be a valid phone number with country code, with or without '+' prefix.

useCase
string
required

Use case to be used for the call, find it in Voice Agents sections in dashboard.

metadata
object

Customer's details to be used in the call, use them in voice agent initial and system prompt as ${variable_name} format. These will be replaced by actual value of the variables.

botNumber
string

Voice agent phone number used to place call. Default value: bot number mentioned in Voice Agents sections in dashboard. Must be a valid phone number with country code, with or without '+' prefix.

options
object

Default values as defined in the Voice Agents section in dashboard. Use this if you want to override those options. E.g. if you want to change the language, voice, initial prompt, etc.

Response

200 - application/json
Returns error or success response
responseCode
integer
required

Always returns 200 value, with error or success response details in message.

message
string
required

Success or error message with description.

data
any | null

Additional details if available.