Skip to main content
POST
Create a campaign agent
An agent is a reusable webhook configuration shared by multiple campaigns. It defines what Vobiz calls when a contact answers and, optionally, when the call ends.
Authentication required
  • X-Auth-ID — your Vobiz account ID
  • X-Auth-Token — your Vobiz auth token
string
required
Your Vobiz account ID. Use the same value in X-Auth-ID.
string
required
Your Vobiz account ID, for example MA_XXXXXXXX.
string
required
Agent name. Unique per account, maximum 100 characters.
string
required
HTTPS URL called when the contact answers. Must return Vobiz XML.
string
default:"POST"
HTTP method for answer_url. GET or POST.
string
URL called when the call ends.
string
default:"POST"
HTTP method for hangup_url. GET or POST.
array
Array of { key, value } objects sent as SIP headers on every call placed by this agent.

Example

cURL

Response

201 Created
Save the returned id and pass it as agent_id when you create a campaign.
A launch takes a frozen agent snapshot. Editing an agent does not change campaigns that are already running or queued — the next launch uses the updated values.