API referenceLeads
Delete a lead
Permanently deletes the lead. Past calls stay in call history.
DELETE
Permanently deletes the lead. Past calls stay in call history.
header
X-API-Key<token>Create in the console: Settings → API & webhooks.
lead_id*Lead IdLead ID.
OK
application/json- response
The lead was deleted.
message?|Lead deleted.
success?SuccessAlways true on a 2xx response.
Default
true[key: string]?anycurl -X DELETE 'https://api.callmitra.ai/api/v1/leads/string'Example Response
{ "message": "Lead deleted", "success": true}Create a lead POST
Creates one lead and optionally adds it to campaigns. The phone is stored in E.164 form (a 10-digit number gets `+91`, as in a CSV upload); a number that cannot be read is refused with `invalid_phone_number`. The number is not checked for duplicates. Values that could not be saved as sent (an unknown status, a mistyped field) come back in `warnings`.
Get a lead GET
One lead with its campaigns, owner and the text of its latest notes.