List Tasks
Returns tasks using the standard list envelope. Ordering depends on the filters:
- Default (
status=alloropen): bydueAt, earliest first. status=completed: bycompletedAt, most recent first.dueAfter/dueBeforeare ignored.- When
createdAfterorcreatedBeforeis set: bycreatedAt, newest first, with the status and due-date filters still applied.
When a page is full, pagination.nextPageToken is set; pass it as pageToken to get the next page.
query Parameters
prospectIdstringOptional. Only tasks for this prospect.
Example: c1a7e9d34b8f4c2aa6d15e0f7b3c9d42assignedTostringOptional. Only tasks assigned to this user id (or
hiringcenterAi).Example: b2e7a1d94c3f4a8eb6d05c1f9a7e2d45userIdstringOptional. Only tasks created by this user (matches
createdBy). Must be a user in the account (400 otherwise).Example: b2e7a1d94c3f4a8eb6d05c1f9a7e2d45statusstring · enumOptional completion filter.
openreturns tasks that are not complete,completedonly completed tasks, andalleverything. Ignored whenincompleteOnlyis sent.Enum values:opencompletedallDefault: allincompleteOnlybooleanOptional.
trueis the same asstatus=open;falseis the same asstatus=all. Takes precedence overstatus.Example: truedueBeforeOptional inclusive upper bound for
dueAtas Unix epoch milliseconds/seconds or a date string. Not applied withstatus=completed.dueAfterOptional inclusive lower bound for
dueAtas Unix epoch milliseconds/seconds or a date string. Not applied withstatus=completed.createdAfterOptional inclusive lower bound for
createdAtas Unix epoch milliseconds/seconds or a date string.createdBeforeOptional inclusive upper bound for
createdAtas Unix epoch milliseconds/seconds or a date string. Must not be earlier thancreatedAfter.limitinteger · min: 1 · max: 200Page size.
Example: 25Default: 50pageTokenstringOpaque pagination token returned from a prior
GET /tasksresponse.Example: eyJpZCI6ImUzZjlhMWM3NGIyZDRlOGFhNmQwNWMxZjdiOWUyZDQzIn0=fieldsstringOptional comma-separated list of top-level field names to include in each list item. Use this to reduce response payload size for large list requests.
idis always included when present. Nested paths are not supported, and the accepted names depend on the endpoint. Unknown field names or invalid syntax (for example nested selectors) return HTTP 400 withinvalidFieldsand/orinvalidSyntaxin the error body.Example: id,prospectId,hireDate
Responses
OK
successboolean · requireditemsobject[] · requiredpaginationobject · requiredPagination metadata. Fields are included only when that resource supports them; some list endpoints return an empty object.
Example: {"nextPageToken":"opaque-page-token-example","hasMore":true,"totalCount":125}
Create Task
Creates a task on a prospect and fires the task.created webhook event. When userId is set, the prospect owner is notified that a task was added.
HTML tags and control characters are stripped from task; it must not be empty afterward. assignedTo must be a
user in the account (users removed from the account are refused) or hiringcenterAi (400 otherwise). A prospectId
that is not in the account returns 404 and nothing is created.
Headers
X-Idempotency-KeystringOptional. Client-generated key that makes retries of this request safe. The first response for the key is stored for 24 hours and replayed for retries with the same method, path, query, and body. Reuse a key only when retrying the exact same request.
Example: idem_prospect_create_01HV6W0J7Y7A5Q3T4J6N8M2P
Request Body
prospectIdstring · requiredProspect the task belongs to.
assignedTostring · requiredUser id in the account who should do the task, or
hiringcenterAito assign it to HiringCenter AI, which works on it when it is due.taskstring · requiredTask text.
userIdstringOptional user creating the task. Stored as
createdByandassignedBy; both are null when omitted and the task is credited to the API key (createdByApiKeyName). Does not set the assignee; useassignedTo.dueAtOptional due time as Unix epoch milliseconds/seconds or a date string. Defaults to now.
Responses
Created
successboolean · requireditemobject · requiredExample: {"id":"e3f9a1c74b2d4e8aa6d05c1f7b9e2d43","prospectId":"c1a7e9d34b8f4c2aa6d15e0f7b3c9d42","task":"Call prospect after webinar","assignedTo":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","assignedBy":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdBy":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdAt":1717010800000,"dueAt":1717097200000,"completedAt":null,"completedBy":null,"createdByApi":true,"createdByApiKeyId":"8f4c2a19d7e34b6f9a1c5e2d7b3f8c4a","createdByApiKeyName":"Zapier production key"}
Get Task by ID
Returns one task in item.
path Parameters
taskIdstring · requiredExample: e3f9a1c74b2d4e8aa6d05c1f7b9e2d43
Responses
OK
successboolean · requireditemobject · requiredExample: {"id":"e3f9a1c74b2d4e8aa6d05c1f7b9e2d43","prospectId":"c1a7e9d34b8f4c2aa6d15e0f7b3c9d42","task":"Call prospect after webinar","assignedTo":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","assignedBy":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdBy":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdAt":1717010800000,"dueAt":1717097200000,"completedAt":null,"completedBy":null,"createdByApi":true,"createdByApiKeyId":"8f4c2a19d7e34b6f9a1c5e2d7b3f8c4a","createdByApiKeyName":"Zapier production key"}
Update Task
Updates or completes a task and returns the whole task in item.
complete: truemarks the task complete (completedAtnow,completedByset touserId), ignores the other fields, and fires thetask.completedwebhook event. WhenuserIdis set, the prospect owner is notified. A completed task cannot be reopened through the API.- Otherwise at least one of
task,assignedTo, ordueAtis required (400 "No valid fields to update"), and thetask.updatedwebhook event fires. A newassignedTomust be a user in the account orhiringcenterAi(400 otherwise).
path Parameters
taskIdstring · requiredExample: e3f9a1c74b2d4e8aa6d05c1f7b9e2d43
Headers
X-Idempotency-KeystringOptional. Client-generated key that makes retries of this request safe. The first response for the key is stored for 24 hours and replayed for retries with the same method, path, query, and body. Reuse a key only when retrying the exact same request.
Example: idem_prospect_create_01HV6W0J7Y7A5Q3T4J6N8M2P
Request Body
userIdstringOptional user making the change. Stored as
updatedBy, and ascompletedBywhen completing.completebooleanIf true, marks the task complete.
taskstringNew task text. HTML tags are stripped; ignored if empty afterward.
assignedTostringNew assignee user id, or
hiringcenterAi.dueAtNew due time as Unix epoch milliseconds/seconds or a date string.
Responses
OK
successboolean · requireditemobject · requiredExample: {"id":"e3f9a1c74b2d4e8aa6d05c1f7b9e2d43","prospectId":"c1a7e9d34b8f4c2aa6d15e0f7b3c9d42","task":"Call prospect after webinar","assignedTo":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","assignedBy":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdBy":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdAt":1717010800000,"dueAt":1717097200000,"completedAt":null,"completedBy":null,"createdByApi":true,"createdByApiKeyId":"8f4c2a19d7e34b6f9a1c5e2d7b3f8c4a","createdByApiKeyName":"Zapier production key"}
Delete Task
Deletes a task and fires the task.deleted webhook event. Deleting a task that does not exist also returns 200.
path Parameters
taskIdstring · requiredExample: e3f9a1c74b2d4e8aa6d05c1f7b9e2d43
Headers
X-Idempotency-KeystringOptional. Client-generated key that makes retries of this request safe. The first response for the key is stored for 24 hours and replayed for retries with the same method, path, query, and body. Reuse a key only when retrying the exact same request.
Example: idem_prospect_create_01HV6W0J7Y7A5Q3T4J6N8M2P
Responses
OK
successboolean · requiredmessagestring · required

