API ReferenceTasks and Checklists

Create a task

POST
/api/v1/orgs/{orgId}/tasks

Creates a task in the organization. dealId is optional; packageId and submissionId require a deal.

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. dealId is optional:

    { "title": "Closing checklist", "type": "checklist" }
  2. Create each item with the taskId from step 1:

    { "title": "Order title search", "parentId": "<checklist taskId>" }

parentId must point to a checklist (422 PARENT_NOT_CHECKLIST) whose deal matches, including when both are unset (400 ASSOCIATION_MISMATCH).

A template deal accepts dealId and packageId (not submissionId). Its tasks are copied into deals created from the template and never notify assignees.

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token using a Clai API key secret (clai_live_*).

In: header

Path Parameters

NameTypeDescription
orgId
required
string

Organization ID the key is operating in

Header Parameters

NameTypeDescription
Idempotency-Key
required
string

Required client-supplied idempotency key for safe create-task retries

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

NameTypeDescription
title
required
string
Length1 <= length <= 500
descriptionstring
Lengthlength <= 5000
typestring

general (default) or checklist. Use checklist for a checklist parent; create line items in separate requests with parentId.

Allowed"general""checklist"Default"general"
dealIdstring
Formatuuid
packageIdstring
Formatuuid
submissionIdstring
Formatuuid
parentIdstring

Parent checklist task for a checklist line item. The parent must have type checklist. The item's deal must match the parent's, and both may be unset.

Formatuuid
dueDatestring
Formatdate-time
assigneesarray<object>
Itemsitems <= 1
One of type: "user"
type
required
"user"
idstring
Length1 <= length
emailstring
Formatemail
namestring
Lengthlength <= 255
One of type: "team"
type
required
"team"
id
required
string
Formatuuid
namestring
Lengthlength <= 255
One of type: "participant"
type
required
"participant"
id
required
string
Length1 <= length
namestring
Lengthlength <= 255
approversarray<object>
Itemsitems <= 1
One of type: "user"
type
required
"user"
idstring
Length1 <= length
emailstring
Formatemail
namestring
Lengthlength <= 255
One of type: "team"
type
required
"team"
id
required
string
Formatuuid
namestring
Lengthlength <= 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/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": {}
  }
}