Create 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.
-
Create the checklist:
{ "title": "Closing checklist", "type": "checklist" } -
Create each item with the
taskIdfrom step 1:{ "title": "Order title search", "parentId": "<checklist taskId>" }
parentId must point to a checklist (422 PARENT_NOT_CHECKLIST) on this deal (400 ASSOCIATION_MISMATCH).
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 |
dealIdrequired | string | Deal ID Format uuid |
Header Parameters
| Name | Type | Description |
|---|---|---|
Idempotency-Keyrequired | string | Required client-supplied idempotency key for safe create-task retries Length 1 <= length |
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
| Name | Type | Description |
|---|---|---|
titlerequired | string | Length 1 <= length <= 500 |
description | string | Length length <= 5000 |
type | string |
Allowed "general""checklist"Default"general" |
packageId | string | Format uuid |
submissionId | string | Format uuid |
parentId | string | Parent checklist task for a checklist line item. The parent must have Format uuid |
dueDate | string | Format date-time |
assignees | array<object> | Items items <= 1 |
One of type: "user" | ||
typerequired | "user" | |
id | string | Length 1 <= length |
email | string | Format email |
name | string | Length length <= 255 |
One of type: "team" | ||
typerequired | "team" | |
idrequired | string | Format uuid |
name | string | Length length <= 255 |
One of type: "participant" | ||
typerequired | "participant" | |
idrequired | string | Length 1 <= length |
name | string | Length length <= 255 |
approvers | array<object> | Items items <= 1 |
One of type: "user" | ||
typerequired | "user" | |
id | string | Length 1 <= length |
email | string | Format email |
name | string | Length length <= 255 |
One of type: "team" | ||
typerequired | "team" | |
idrequired | string | Format uuid |
name | string | Length length <= 255 |
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://app.goclai.com/api/v1/orgs/org_2abc123/deals/550e8400-e29b-41d4-a716-446655440010/tasks" \ -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \ -H "Content-Type: application/json" \ -d '{ "title": "Order title search", "type": "general", "dueDate": "2026-09-15T17:00:00-04:00" }'{
"taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",
"title": "string",
"description": "string",
"type": "general",
"status": "string",
"dealId": "f480fdfe-5c44-458b-b537-f3d9f40f9678",
"packageId": "471cc1d4-ec27-4504-b7c2-949af95662bc",
"submissionId": "23243110-f447-42f4-a433-27cb8d276b19",
"parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",
"dueDate": "2019-08-24T14:15:22Z",
"assignees": [
{
"type": "user",
"id": "string",
"name": "string"
}
],
"approvers": [
{
"type": "user",
"id": "string",
"name": "string"
}
],
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z"
}{
"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": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {}
}
}GETList tasks for a deal
Deal-scoped alias for listTasks. The path `dealId` is applied as a filter; a conflicting `dealId` query param returns `400` (`ASSOCIATION_MISMATCH`). ## Checklists Checklists are left out of results by default; their items are included. - `type=checklist` returns only checklists. - `parentId=<checklist taskId>` returns the items of one checklist. Requires the `api_tasks_list` scope.
GETList 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`.