List task assignee candidates
Preparatory lookup before v1 task create or PATCH assignee fields. Returns org members, teams, and optional deal or package flow participants. Pass dealId (and optionally packageId) to include participant placeholders. Does not assign anyone. A top-level teamId field is not supported on create/update bodies; set team assignees via assignees/approvers (for example { "type": "team", "id": "<teamId>" }) or claim a team slot with POST .../claim. Requires api_tasks_create or api_tasks_update.
Authorization
bearerAuth Bearer token using a Clai API key secret (clai_live_*).
In: header
Path Parameters
| Name | Type | Description |
|---|---|---|
orgIdrequired | string | Organization ID the key is operating in |
Query Parameters
| Name | Type | Description |
|---|---|---|
dealId | string | When set, include document-flow participants for this deal Format uuid |
packageId | string | When set with dealId, limit participants to this package's flows Format uuid |
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://app.goclai.com/api/v1/orgs/org_2abc123/tasks/assignee-candidates"{
"candidates": [
{
"type": "user",
"id": "string",
"email": "string",
"name": "string"
}
]
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}POSTCreate a task on a deal
Deal-scoped alias for createTask. The path `dealId` anchors the task; `packageId` and `submissionId` remain optional body fields. Requires the `api_tasks_create` scope and an `Idempotency-Key` header for safe retries. ## Checklists A checklist is a task with `type: "checklist"`. Its items are tasks with `parentId` set to the `taskId` of the checklist. 1. Create the checklist: ```json { "title": "Closing checklist", "type": "checklist" } ``` 2. Create each item with the `taskId` from step 1: ```json { "title": "Order title search", "parentId": "<checklist taskId>" } ``` `parentId` must point to a checklist (`422 PARENT_NOT_CHECKLIST`) on this deal (`400 ASSOCIATION_MISMATCH`).
GETGet a task
Returns a single task in the specified organization. Requires the `api_tasks_list` scope. ## Checklists Checklists and their items return like any other task. A checklist has `type: "checklist"`; an item has `parentId` set to the `taskId` of its checklist. To get every item of a checklist, list tasks with `parentId`.