Lead timeline
Calls, WhatsApp messages and orders, tickets, notes, lead changes and callbacks for one lead, newest first. Page with `cursor`; the first page also lists open callbacks.
Calls, WhatsApp messages and orders, tickets, notes, lead changes and callbacks for one lead, newest first. Page with cursor; the first page also lists open callbacks.
X-API-Key<token>Create in the console: Settings → API & webhooks.
lead_id*Lead IdLead ID.
cursor?|nextCursor from the previous page.
limit?LimitItems per page, 1 to 100 (default 30).
1 <= value <= 10030types?|Comma list of call, whatsapp, ticket, note, change, callback.
OK
application/json- response
One page of a lead's timeline, newest first.
hasMore?|True when another page follows.
items*array<>Events on this page.
nextCursor?|Pass as cursor for the next page; null on the last.
success?SuccessAlways true on a 2xx response.
trueupcomingCallbacks?array<>|First page only: open callbacks and reminders, soonest first (callbackId, kind, channel, status, dueAt, dialAt, purpose, note, overdue).
[key: string]?anycurl -X GET 'https://api.callmitra.ai/api/v1/leads/string/timeline'{ "hasMore": true, "items": [ { "at": "string", "body": "string", "href": "string", "id": "string", "meta": {}, "title": "string", "type": "string" } ], "nextCursor": "string", "success": true, "upcomingCallbacks": [ {} ]}Get a lead GET
One lead with its campaigns, owner and the text of its latest notes.
List custom lead fields GET
Every custom field defined in the workspace. Send values for these keys in a lead's `attributes` object on createLead and updateLead; pushLead takes them as top-level fields. `valueType` says how they are stored and compared in audience rules.