List Tasks
Returns tasks ordered by due date (oldest first) using the standard list envelope. When incompleteOnly is omitted, defaults to false and all tasks are returned.
query Parameters
prospectIdstringOptional. When provided, only tasks for this prospect are returned.
Example: c1a7e9d34b8f4c2aa6d15e0f7b3c9d42assignedTostringOptional. When provided, only tasks assigned to this user id are returned.
Example: b2e7a1d94c3f4a8eb6d05c1f9a7e2d45userIdstringOptional. When provided, only tasks created by this user id are returned (matches
createdBy).Example: b2e7a1d94c3f4a8eb6d05c1f9a7e2d45incompleteOnlybooleanOptional completion filter.
truereturns only open/incomplete tasks (completedAtis null).falsereturns all statuses. When this parameter is provided, it takes precedence overstatus.Example: truedueBeforeOptional upper bound for due date (
dueAt, inclusive). Applied for non-completedstatus queries.dueAfterOptional lower bound for due date (
dueAt, inclusive). Applied for non-completedstatus queries.limitinteger · max: 200Optional page size.
Example: 25Default: 50pageTokenstringOpaque pagination token returned from a prior
GET /tasksresponse.Example: eyJpZCI6InRhc2tfMDFIVjZXNldSNU44SzJNNFQ3WTlQMUMifQ==
Responses
Create Task
Accepts required prospectId, assignedTo, and task text with optional fields and creates a task.
Headers
X-Idempotency-Keystring · maxLength: 512Optional. Client-generated key used to make mutation retries safe. Reuse the same key only when retrying the exact same request.
Example: idem_prospect_create_01HV6W0J7Y7A5Q3T4J6N8M2P
Request Body
prospectIdstring · requiredProspect id the task belongs to.
assignedTostring · requiredUser id assigned to complete the task.
taskstring · requiredTask title or instruction text.
userIdstringOptional user id creating the task. When omitted, the task is created with
createdBy/assignedByset to null,createdByApi=true, and includes API key attribution metadata when available.dueAtOptional due timestamp as Unix epoch milliseconds (integer) or ISO 8601 date string. If omitted, 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,"updatedAt":1717010900000,"dueAt":1717097200000,"completedAt":null,"completedBy":null,"createdByApi":false,"createdByApiKeyId":null,"createdByApiKeyName":null}
Get Task by ID
Accepts a required taskId path parameter, looks up the matching task record, and returns it in item when found.
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,"updatedAt":1717010900000,"dueAt":1717097200000,"completedAt":null,"completedBy":null,"createdByApi":false,"createdByApiKeyId":null,"createdByApiKeyName":null}
Update Task
Accepts a required taskId plus mutable task fields, updates the existing task, and returns the updated fields in item.
path Parameters
taskIdstring · requiredExample: e3f9a1c74b2d4e8aa6d05c1f7b9e2d43
Headers
X-Idempotency-Keystring · maxLength: 512Optional. Client-generated key used to make mutation retries safe. Reuse the same key only when retrying the exact same request.
Example: idem_prospect_create_01HV6W0J7Y7A5Q3T4J6N8M2P
Request Body
userIdstringOptional acting user id for audit context.
completebooleanIf true, marks the task as completed.
taskstringUpdated task title or instruction text.
assignedTostringUpdated assignee user id.
dueAtUpdated due timestamp as Unix epoch milliseconds (integer) or ISO 8601 date string.
Responses
OK
successboolean · requireditemobject · requiredExample: {"id":"e3f9a1c74b2d4e8aa6d05c1f7b9e2d43","prospectId":"c1a7e9d34b8f4c2aa6d15e0f7b3c9d42","task":"Call prospect after webinar","assignedTo":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","assignedBy":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdBy":"b2e7a1d94c3f4a8eb6d05c1f9a7e2d45","createdAt":1717010800000,"updatedAt":1717010900000,"dueAt":1717097200000,"completedAt":null,"completedBy":null,"createdByApi":false,"createdByApiKeyId":null,"createdByApiKeyName":null}
Delete Task
Accepts a required taskId path parameter and deletes the specified task.
path Parameters
taskIdstring · requiredExample: e3f9a1c74b2d4e8aa6d05c1f7b9e2d43
Headers
X-Idempotency-Keystring · maxLength: 512Optional. Client-generated key used to make mutation retries safe. Reuse the same key only when retrying the exact same request.
Example: idem_prospect_create_01HV6W0J7Y7A5Q3T4J6N8M2P
Responses
OK
successboolean · requiredmessagestring · required

