Markdown for agents
This page as plain markdown, ready to paste into an LLM.
Tasks
Follow-up work items, anchored to a lead and owned by a person.
Tasks, filterable by lead, assignee, due date, status
curl -sS https://api.leadarc.io/v1/workspaces/airpay/tasks?limit=25 \
-H "Authorization: Bearer $LEADARC_API_KEY"Query parameters. Anything else is 400 unsupported_filter.
assignee_id cursor due_after due_before lead_id limit order status task_type
Errors from this endpoint, on top of the common ones: invalid_cursor, invalid_request, not_found, unprocessable.
{
"object": "list",
"data": [{
"object": "task",
"id": "tsk_i-_uD-R7uXULK8lecjVGbgq71OpftiUkqXfdvx",
"workspace": "airpay",
"lead_id": "lead_BP2vnPmKyttNP2OlH_mWL78t1o6nBVC6oVbHny",
"reply_id": "rep_Dk9dw7dVABGNJm9HK9onvZKXLneRRpj9MIB-C3",
"title": null,
"notes": "Send the onboarding one-pager and the Loom.",
"task_type": null,
"due_date": "2026-07-29",
"due_time": "10:30",
"status": "open",
"creator_id": "usr_zaDRRpdu8EPZSU3i89lvZgKPkVQo4uBFA_KOhm",
"assignee_id": "usr_zaDRRpdu8EPZSU3i89lvZgKPkVQo4uBFA_KOhm",
"completed_at": null,
"created_at": "2026-07-27T09:30:00Z",
"sequence": null
}],
"has_more": false,
"next_cursor": null
}Notes.
taskshas noclient_idcolumn. Every query derives the tenant throughtasks.response_id→responses_index.client_id, and addsisNotNull(tasks.response_id)unconditionally.response_idis nullable so a task can hang off a CRMcompany_idinstead. The CRM is dead but the rows exist, and a company-anchored task has no lead, no reply, and no workspace derivable this way. Those rows are invisible to the API.
taskshas nostatuscolumn. Status is derived: open iscompleted_at IS NULL AND deleted_at IS NULL.deleted_atrows are filtered out and never surfaced as a status.
taskshas notitlecolumn.titleis present in the object for shape stability and is alwaysnullfor a manually created task. The only source isfollowup_sequence_steps.title, so it is populated only on a task materialized by a sequence.POSTandPATCHrejecttitlewith400 invalid_requestrather than accepting it and dropping it.
due_timeis a wall-clocktextstring in the viewer's local timezone, not an instant.tasks.due_timeistextholding"HH:MM"in 24-hour form.tasks.due_dateis adatecolumn withmode:"date", a calendar day. A task withdue_date: "2026-07-29"anddue_time: nullis due by calendar day only.
sequenceis the only sanctioned view of the materialization internals. When a task came from a sequence it is{ "id": "seq_…", "name": "Interested follow-up", "step_index": 2 }. The rawsequence_id,enrollment_id,sequence_step_id,email_template_id,email_body, andlinkedin_textcolumns are withheld.
Create a task on a lead
curl -sS https://api.leadarc.io/v1/workspaces/airpay/tasks \
-X POST \
-H "Authorization: Bearer $LEADARC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"lead_id":"lead_BP2vnPmKyttNP2OlH_mWL78t1o6nBVC6oVbHny","due_date":"...","due_time":"..."}'Body fields. An unknown field is rejected.
lead_id due_date due_time notes assignee_id
Errors from this endpoint, on top of the common ones: invalid_cursor, invalid_request, not_found, unprocessable.
{
"lead_id": "lead_BP2vnPmKyttNP2OlH_mWL78t1o6nBVC6oVbHny",
"due_date": "2026-07-29",
"due_time": "10:30",
"notes": "Send the onboarding one-pager and the Loom.",
"assignee_id": "usr_zaDRRpdu8EPZSU3i89lvZgKPkVQo4uBFA_KOhm"
}201 with the created task. creator_id is the key's owner.
assignee_id is validated against the workspace's assignable members. company_id and opportunity_id are never accepted.
Not idempotent. A retry creates a second task.
Edit due date, time, notes, assignee
curl -sS https://api.leadarc.io/v1/workspaces/airpay/tasks/tsk_i-_uD-R7uXULK8lecjVGbgq71OpftiUkqXfdvx \
-X PATCH \
-H "Authorization: Bearer $LEADARC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"due_date":"...","due_time":"...","notes":"..."}'Body fields. An unknown field is rejected.
due_date due_time notes assignee_id
Errors from this endpoint, on top of the common ones: invalid_request, not_found.
Complete a task
curl -sS https://api.leadarc.io/v1/workspaces/airpay/tasks/tsk_i-_uD-R7uXULK8lecjVGbgq71OpftiUkqXfdvx/complete \
-X POST \
-H "Authorization: Bearer $LEADARC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"completed":"..."}'Body fields. An unknown field is rejected.
completed
Errors from this endpoint, on top of the common ones: invalid_request.
Soft-delete a task
curl -sS https://api.leadarc.io/v1/workspaces/airpay/tasks/tsk_i-_uD-R7uXULK8lecjVGbgq71OpftiUkqXfdvx \
-X DELETE \
-H "Authorization: Bearer $LEADARC_API_KEY"Errors from this endpoint, on top of the common ones: invalid_request, not_found.
There is no hard delete for anything in this API.