curl or an SDK.
1. Get an API key
Log into app.yotel.in as a tenant admin
You need the
api_keys:manage permission (TENANT_ADMIN role).2. Create a campaign
3. Push a lead
:bulk suffix — up to 500 leads in one call:
4. Subscribe a webhook (optional)
Webhooks are managed from the dashboard (not the
/api/v1/* path).
Go to app.yotel.in/developer/webhooks → New subscription.call.ended— every completed call with disposition + recording URLcampaign.paused— fired on both manual and auto-pause (checkdata.source)lead.completed— lead reaches a terminal state
signing_secret (shown once). Store it;
you’ll need it to verify signatures.
5. Test the integration
DND-scrub your leads
Predictive campaigns refuse to start until every lead is
scrubbed against the TRAI registry. Run
POST /api/campaigns/{id}/scrub (or use the dashboard).Start the campaign
POST /api/campaigns/{id}/start. Because your key is
yt_test_…, the dialer registers the intent but doesn’t
originate to PSTN.Watch the webhook log
Your dashboard’s webhooks page shows every delivery with
HTTP status + response snippet. If signatures don’t verify,
the customer-side issue is usually clock skew — see
troubleshooting.
Done
You’ve:- Issued an API key
- Created a predictive campaign with custom tunables
- Pushed a lead
- Optionally subscribed a webhook