Zapier API reference

These are the endpoints the MyCallDesk app in Zapier uses. They are scoped to one business: the API key identifies it, and every response contains that business's data only. All requests and responses are JSON over HTTPS.

Authentication

The account owner opens Settings → Integrations → Zapier in MyCallDesk and presses Generate key. The key starts with mcd_zap_ and is shown once. Send it in the X-API-Key header of every request. Making a new key, or revoking it, stops the old key at once. A missing or invalid key returns 401.

Base URL:  https://mycalldesk-api-cc-prod-dca7dqcncrbud6du.canadacentral-01.azurewebsites.net
Header:    X-API-Key: mcd_zap_xxxxxxxxxxxxxxxx

Test the connection

GET /api/zapier/me — used by Zapier to check the key. Returns the business the key belongs to.

curl -H "X-API-Key: mcd_zap_..." https://mycalldesk-api-cc-prod-dca7dqcncrbud6du.canadacentral-01.azurewebsites.net/api/zapier/me

200 OK
{ "business_id": "0b0f...", "business_name": "Acme Plumbing" }

Triggers (webhook subscriptions)

The four triggers use REST hooks. When a Zap is turned on, Zapier subscribes a webhook URL; MyCallDesk then POSTs each new record to it. When the Zap is turned off, Zapier removes the subscription.

Subscribe

POST /api/zapier/hooks

FieldTypeDescription
eventstringOne of new_call, new_lead, new_appointment, new_login.
target_urlstringThe https://hooks.zapier.com/… URL to POST to. Only Zapier hook URLs are accepted.
POST /api/zapier/hooks
{ "event": "new_call", "target_url": "https://hooks.zapier.com/hooks/standard/123/abc/" }

201 Created
{ "id": "6f1c0d5e-..." }

Subscribing the same event and URL again returns the existing id. Invalid input returns 400 with { "success": false, "msg": "…" }.

Unsubscribe

DELETE /api/zapier/hooks/{id} — returns 200 with { "success": true }.

Delivery

MyCallDesk POSTs the record as a JSON object (fields below) to the subscribed URL as soon as it exists: a call after the AI has finished analysing it, a lead when it is created, an appointment when it is booked, a login when a user of the business signs in. Each record is sent once per subscription. If Zapier answers 410 Gone, the subscription is removed. Dates are ISO-8601 UTC.

Sample data

GET /api/zapier/triggers/{event} — the newest records (up to 5) for the Zap editor. event is new_call, new_lead, new_appointment or new_login; anything else returns 404. When the business has no records yet, sample records are returned.

new_call fields

FieldTypeDescription
idstringCall id.
directionstringInbound or Outbound.
statusstringCall status.
from_number / to_numberstringCaller and business numbers.
started_at / ended_atstringISO-8601 UTC.
duration_secondsnumberCall length.
caller_name / caller_phonestringWho called.
service_requested / problem_details / addressstringWhat the AI captured.
urgencystringUrgency the AI assigned.
scorestringHot, Warm or Cold.
wants_callback / appointment_requestedbooleanFlags from the AI analysis.
summary / sentiment / recommended_actionstringAI summary and next step.
transcriptstringFull transcript (up to 8,000 characters).
lead_id / customer_idstringRelated records.
dashboard_urlstringLink to the Calls page.

new_lead fields

FieldTypeDescription
idstringLead id.
statusstringLead status.
sourcestringCall, SMS or Manual.
contact_name / contact_phone / contact_emailstringThe contact.
service_requested / service_addressstringThe request.
urgency / score / notesstringUrgency, Hot / Warm / Cold score and notes.
call_id / customer_idstringRelated records.
created_atstringISO-8601 UTC.
dashboard_urlstringLink to the Leads page.

new_appointment fields (the "New Job" trigger)

Sent when a job is booked, by the AI on a call or text, or by your team in MyCallDesk.

FieldTypeDescription
idstringAppointment id.
title / statusstringTitle and status.
scheduled_start / scheduled_endstringISO-8601 UTC.
service_address / urgency / notesstringJob details.
customer_name / customer_phonestringThe customer.
assigned_technicianstringTechnician name, if assigned.
lead_id / call_id / customer_idstringRelated records.
created_atstringISO-8601 UTC.
dashboard_urlstringLink to the Appointments page.

new_login fields

Sent when any user of the business (owner, admin or technician) signs in.

FieldTypeDescription
idstringLogin record id.
user_id / user_name / user_email / user_rolestringWho signed in.
methodstringHow they signed in (password or Google).
ip_address / country / region / citystringWhere they signed in from, when known.
logged_in_atstringISO-8601 UTC.
dashboard_urlstringLink to the Team Members page.

Action: Create Lead

POST /api/zapier/actions/create-lead — adds a lead to MyCallDesk. The customer is matched by phone number, or created if new. The lead is created with source Manual and status New.

FieldTypeDescription
contact_phonestringRequired. At least 7 digits.
contact_namestringOptional, up to 200 characters.
contact_emailstringOptional, up to 320 characters.
service_requestedstringOptional, up to 250 characters.
service_addressstringOptional, up to 250 characters.
urgencystringOptional: Low, Medium, High or Emergency (case-insensitive). Other values are ignored.
notesstringOptional, up to 1,000 characters.
POST /api/zapier/actions/create-lead
{ "contact_name": "Sam Lee", "contact_phone": "+15551234567", "service_requested": "Water heater repair" }

200 OK
{ "id": "…", "status": "New", "source": "Manual", "contact_name": "Sam Lee", "contact_phone": "+15551234567", … }   (same shape as new_lead)

400 Bad Request
{ "success": false, "msg": "contact_phone is required and must be a valid phone number." }

Errors

FieldTypeDescription
400Bad RequestInvalid input. The body is { "success": false, "msg": "…" }.
401UnauthorizedMissing, invalid or revoked API key.
404Not FoundUnknown event.

Questions? Contact us at mycalldesk.net/contact.

Need help?