Reference

Numbers and merchants

Manage outbound phone numbers, merchant records, and phone number blacklists.

Outbound numbers

Outbound numbers are the caller IDs used when placing calls. Each number is associated with a telephony provider and has a status indicating availability.

OutboundNumber Fields

FieldTypeDescription
phone_numberstringE.164 formatted phone number.
providerstringTelephony provider: TWILIO, EXOTEL, or PLIVO.
statusstringCurrent status: AVAILABLE, IN_USE, or DISABLED.
channelstringChannel type (e.g. voice).

Create Number

POST /numbers
json
{
  "phone_number": "+14155551234",
  "provider": "TWILIO",
  "status": "AVAILABLE",
  "channel": "voice"
}

List Numbers

GET /numbers

Update Number

PUT /numbers/{id}

Delete Number

DELETE /numbers/{id}

In-Use Numbers

Numbers with status IN_USE are currently assigned to active call sessions. Avoid deleting or disabling them mid-call.

Merchants

Merchants represent business entities under a reseller. Templates and leads are scoped to a merchant.

Create Merchant

POST /merchants
json
{
  "name": "Acme Corp",
  "reseller_id": "res_001",
  "contact_email": "ops@acme.com"
}

List Merchants

GET /merchants

Update Merchant

PUT /merchants/{id}

Delete Merchant

DELETE /merchants/{id}

Blacklist

The blacklist prevents outbound calls to specific phone numbers. When enforce_blacklist is enabled on a call execution configuration, any lead with a blacklisted number is automatically skipped.

Add to Blacklist

POST /blacklist
json
{
  "phone_numbers": ["+919876543210", "+14155559999"]
}

List Blacklisted Numbers

GET /blacklist

Remove from Blacklist

DELETE /blacklist
json
{
  "phone_numbers": ["+919876543210"]
}

Error responses

StatusMeaningCommon Cause
400Bad RequestInvalid phone number format or missing required fields.
404Not FoundResource ID does not exist.
409ConflictPhone number already exists.
Was this helpful?