Tasks

Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

List compliance tasks

GET/v1/tasks

List compliance tasks with assignments and status so teams can track audit readiness, evidence work, and control implementation.

Query parameters

includeRelationsstring

Include controls and automations with runs

Responses

200Tasks retrieved successfully
idstringrequired

Unique identifier for the task

titlestringrequired

Task title

descriptionstring

Task description

statusenumrequired

Task status

One of: todo in_progress done blocked

createdAtstringrequired

Task creation timestamp

updatedAtstringrequired

Task last update timestamp

taskTemplateIdobject

Task template ID

integrationScheduleFrequencyenumrequired

Cadence for running the integration check attached to this task

One of: daily weekly monthly quarterly yearly

integrationLastRunAtobject

Last successful integration check run timestamp

[
  {
    "id": "tsk_abc123def456",
    "title": "Implement user authentication",
    "description": "Add OAuth 2.0 authentication to the platform",
    "status": "in_progress",
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z",
    "taskTemplateId": "frk_tt_68406e353df3bc002994acef",
    "integrationScheduleFrequency": "daily",
    "integrationLastRunAt": {}
  }
]
401Unauthorized - Invalid authentication
messagestring
{
  "message": "Unauthorized"
}
curl --request GET \
  --url https://api.complianz.ai/v1/tasks \
  --header 'X-API-Key: <api-key>'

Create compliance task

POST/v1/tasks

Create a compliance task for evidence collection, remediation, review, or recurring control work inside an organization.

Request body

titlestringrequired
descriptionstringrequired
assigneeIdstring
frequencyenum

One of: daily weekly monthly quarterly yearly

departmentstring

Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.

controlIdsstring[]
taskTemplateIdstring
vendorIdstring

Vendor ID to connect this task to

Responses

201Task created successfully
idstringrequired

Unique identifier for the task

titlestringrequired

Task title

descriptionstring

Task description

statusenumrequired

Task status

One of: todo in_progress done blocked

createdAtstringrequired

Task creation timestamp

updatedAtstringrequired

Task last update timestamp

taskTemplateIdobject

Task template ID

integrationScheduleFrequencyenumrequired

Cadence for running the integration check attached to this task

One of: daily weekly monthly quarterly yearly

integrationLastRunAtobject

Last successful integration check run timestamp

{
  "id": "tsk_abc123def456",
  "title": "Implement user authentication",
  "description": "Add OAuth 2.0 authentication to the platform",
  "status": "in_progress",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z",
  "taskTemplateId": "frk_tt_68406e353df3bc002994acef",
  "integrationScheduleFrequency": "daily",
  "integrationLastRunAt": {}
}
400Invalid request body
curl --request POST \
  --url https://api.complianz.ai/v1/tasks \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "title": "Implement access controls",
    "description": "Set up role-based access controls for the platform",
    "assigneeId": "mem_abc123",
    "frequency": "monthly",
    "department": "it",
    "controlIds": [
      "ctrl_abc123"
    ],
    "taskTemplateId": "tmpl_abc123",
    "vendorId": "vnd_abc123"
  }'

Get task templates

GET/v1/tasks/templates

Get task templates in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Query parameters

frameworkIdstring

Filter templates by framework ID

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/tasks/templates \
  --header 'X-API-Key: <api-key>'

Update status for multiple tasks

PATCH/v1/tasks/bulk

Update status for multiple tasks in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Request body

taskIdsstring[]required
statusenumrequired

One of: todo in_progress in_review done not_relevant failed

reviewDatestring

Optional review date to set on all tasks

notRelevantJustificationstring

Required justification when marking evidence tasks as not_relevant

Responses

200Tasks updated successfully
updatedCountnumber
{
  "updatedCount": 2
}
400Invalid request body
curl --request PATCH \
  --url https://api.complianz.ai/v1/tasks/bulk \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "taskIds": [
      "tsk_abc123",
      "tsk_def456"
    ],
    "status": "in_progress",
    "reviewDate": "2025-01-01T00:00:00.000Z",
    "notRelevantJustification": "This control is out of scope for our SOC 2 audit."
  }'

Delete multiple tasks

DELETE/v1/tasks/bulk

Delete multiple tasks in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Request body

taskIdsstring[]required

Responses

200Tasks deleted successfully
deletedCountnumber
{
  "deletedCount": 2
}
400Invalid request body
curl --request DELETE \
  --url https://api.complianz.ai/v1/tasks/bulk \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "taskIds": [
      "tsk_abc123",
      "tsk_def456"
    ]
  }'

Update assignee for multiple tasks

PATCH/v1/tasks/bulk/assignee

Update assignee for multiple tasks in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Request body

taskIdsstring[]required
assigneeIdstring

Assignee member ID, or null to unassign

Responses

200Tasks updated successfully
updatedCountnumber
{
  "updatedCount": 2
}
400Invalid request body
curl --request PATCH \
  --url https://api.complianz.ai/v1/tasks/bulk/assignee \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "taskIds": [
      "tsk_abc123",
      "tsk_def456"
    ],
    "assigneeId": "mem_abc123"
  }'

Reorder tasks

PATCH/v1/tasks/reorder

Reorder tasks in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Request body

updatesobject[]required
Show child attributes
idstringrequired
ordernumberrequired
statusenumrequired

One of: todo in_progress in_review done not_relevant failed

Responses

200Tasks reordered successfully
400Invalid request body
curl --request PATCH \
  --url https://api.complianz.ai/v1/tasks/reorder \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "updates": [
      {
        "id": "string",
        "order": 0,
        "status": "todo"
      }
    ]
  }'

Autopilot: draft every open AI-prepared task

POST/v1/tasks/ai-prepare/run-all

Autopilot: draft every open AI-prepared task in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/ai-prepare/run-all \
  --header 'X-API-Key: <api-key>'

Bulk submit tasks for review

POST/v1/tasks/bulk/submit-for-review

Bulk submit tasks for review in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Request body

taskIdsstring[]required
approverIdstringrequired

Member ID of the approver

Responses

200Tasks submitted for review
400Invalid request
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/bulk/submit-for-review \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "taskIds": [
      "tsk_abc123",
      "tsk_def456"
    ],
    "approverId": "mem_abc123"
  }'

Get page options for tasks overview

GET/v1/tasks/options

Get page options for tasks overview in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/tasks/options \
  --header 'X-API-Key: <api-key>'

Get task by ID

GET/v1/tasks/{taskId}

Get task by ID in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

200Task retrieved successfully
idstringrequired

Unique identifier for the task

titlestringrequired

Task title

descriptionstring

Task description

statusenumrequired

Task status

One of: todo in_progress done blocked

createdAtstringrequired

Task creation timestamp

updatedAtstringrequired

Task last update timestamp

taskTemplateIdobject

Task template ID

integrationScheduleFrequencyenumrequired

Cadence for running the integration check attached to this task

One of: daily weekly monthly quarterly yearly

integrationLastRunAtobject

Last successful integration check run timestamp

{
  "id": "tsk_abc123def456",
  "title": "Implement user authentication",
  "description": "Add OAuth 2.0 authentication to the platform",
  "status": "in_progress",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z",
  "taskTemplateId": "frk_tt_68406e353df3bc002994acef",
  "integrationScheduleFrequency": "daily",
  "integrationLastRunAt": {}
}
403Forbidden - Not assigned to this task
404Task not found
messagestring
{
  "message": "Task with ID tsk_abc123def456 not found"
}
curl --request GET \
  --url https://api.complianz.ai/v1/tasks/<taskId> \
  --header 'X-API-Key: <api-key>'

Update a task

PATCH/v1/tasks/{taskId}

Update a task in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

Request body

titlestring

Task title

descriptionstring

Task description

statusenum

One of: todo in_progress in_review done not_relevant failed

assigneeIdstring

Assignee member ID, or null to unassign

approverIdstring

Approver member ID, or null to unassign

frequencyenum

One of: daily weekly monthly quarterly yearly

integrationScheduleFrequencyenum

Cadence for running the integration check attached to this task

One of: daily weekly monthly quarterly yearly

departmentstring

Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.

reviewDatestring
notRelevantJustificationstring

Required justification when marking evidence tasks as not_relevant

Responses

200Task updated successfully
idstringrequired

Unique identifier for the task

titlestringrequired

Task title

descriptionstring

Task description

statusenumrequired

Task status

One of: todo in_progress done blocked

createdAtstringrequired

Task creation timestamp

updatedAtstringrequired

Task last update timestamp

taskTemplateIdobject

Task template ID

integrationScheduleFrequencyenumrequired

Cadence for running the integration check attached to this task

One of: daily weekly monthly quarterly yearly

integrationLastRunAtobject

Last successful integration check run timestamp

{
  "id": "tsk_abc123def456",
  "title": "Implement user authentication",
  "description": "Add OAuth 2.0 authentication to the platform",
  "status": "in_progress",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z",
  "taskTemplateId": "frk_tt_68406e353df3bc002994acef",
  "integrationScheduleFrequency": "daily",
  "integrationLastRunAt": {}
}
400Invalid request body or task not found
404Task not found
curl --request PATCH \
  --url https://api.complianz.ai/v1/tasks/<taskId> \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "title": "Review access controls",
    "description": "Review and update access control policies",
    "status": "in_progress",
    "assigneeId": "mem_abc123",
    "approverId": "mem_abc123",
    "frequency": "monthly",
    "integrationScheduleFrequency": "daily",
    "department": "it",
    "reviewDate": "2025-01-01T00:00:00.000Z",
    "notRelevantJustification": "This control is out of scope for our SOC 2 audit."
  }'

Delete a task

DELETE/v1/tasks/{taskId}

Delete a task in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

200Task deleted successfully
successboolean
messagestring
{
  "success": true,
  "message": "Task deleted successfully"
}
404Task not found
curl --request DELETE \
  --url https://api.complianz.ai/v1/tasks/<taskId> \
  --header 'X-API-Key: <api-key>'

Get policies that reference a task via shared controls

GET/v1/tasks/{taskId}/policies

Get policies that reference a task via shared controls in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/tasks/<taskId>/policies \
  --header 'X-API-Key: <api-key>'

Get task activity

GET/v1/tasks/{taskId}/activity

Get task activity in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

Query parameters

skipstringrequired
takestringrequired

Responses

200Activity retrieved successfully
400Task not found
curl --request GET \
  --url https://api.complianz.ai/v1/tasks/<taskId>/activity?skip=<skip>&take=<take> \
  --header 'X-API-Key: <api-key>'

Latest pending AI draft for a task

GET/v1/tasks/{taskId}/ai-prepare

Latest pending AI draft for a task in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/tasks/<taskId>/ai-prepare \
  --header 'X-API-Key: <api-key>'

Draft task evidence with AI

POST/v1/tasks/{taskId}/ai-prepare

Returns an AI-written draft of the evidence for this task, built only from the organization data. Nothing is saved until a person approves it.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/<taskId>/ai-prepare \
  --header 'X-API-Key: <api-key>'

Discard the pending AI draft

POST/v1/tasks/{taskId}/ai-prepare/discard

Discard the pending AI draft in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/<taskId>/ai-prepare/discard \
  --header 'X-API-Key: <api-key>'

Approve an AI-prepared draft

POST/v1/tasks/{taskId}/ai-prepare/approve

Approve an AI-prepared draft in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

201
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/<taskId>/ai-prepare/approve \
  --header 'X-API-Key: <api-key>'

Regenerate task from template

POST/v1/tasks/{taskId}/regenerate

Regenerate task from template in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

200Task regenerated successfully
400Task has no associated template
404Task not found
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/<taskId>/regenerate \
  --header 'X-API-Key: <api-key>'

Submit task for review

POST/v1/tasks/{taskId}/submit-for-review

Submit task for review in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

Request body

approverIdstringrequired

Member ID of the approver

Responses

200Task submitted for review
400Invalid request
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/<taskId>/submit-for-review \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "approverId": "mem_abc123"
  }'

Approve a task

POST/v1/tasks/{taskId}/approve

Approve a task that is in review. Only the assigned approver can approve. Moves status to done and creates an audit comment.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

200Task approved successfully
400Task is not in review
403Not the assigned approver
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/<taskId>/approve \
  --header 'X-API-Key: <api-key>'

Reject a task review

POST/v1/tasks/{taskId}/reject

Reject a task that is in review. Only the assigned approver can reject. Reverts status to the previous status and creates an audit comment.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

200Task rejected successfully
400Task is not in review
403Not the assigned approver
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/<taskId>/reject \
  --header 'X-API-Key: <api-key>'

Get task attachments

GET/v1/tasks/{taskId}/attachments

Get task attachments in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

200Attachments retrieved successfully
idstringrequired

Unique identifier for the attachment

namestringrequired

Original filename

typestringrequired

File type/MIME type

sizenumberrequired

File size in bytes

downloadUrlstringrequired

Signed URL for downloading the file (temporary)

createdAtstringrequired

Upload timestamp

[
  {
    "id": "att_abc123def456",
    "name": "document.pdf",
    "type": "application/pdf",
    "size": 1024000,
    "downloadUrl": "https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=...",
    "createdAt": "2024-01-15T10:30:00Z"
  }
]
401Unauthorized - Invalid authentication
messagestring
{
  "message": "Unauthorized"
}
404Task not found
messagestring
{
  "message": "Task with ID tsk_abc123def456 not found"
}
curl --request GET \
  --url https://api.complianz.ai/v1/tasks/<taskId>/attachments \
  --header 'X-API-Key: <api-key>'

Upload task evidence

POST/v1/tasks/{taskId}/attachments

Upload an evidence attachment to a task so auditors and reviewers can trace completion back to source documentation.

Path parameters

taskIdstringrequired

Unique task identifier

Request body

fileNamestringrequired

Name of the file

fileTypestringrequired

MIME type of the file

fileDatastring

Base64-encoded file contents. For the web UI / direct callers. AI/MCP clients should instead upload via /v1/uploads/presign (purpose=attachment) and pass `s3Key` — base64 through an LLM is impractically slow and times out. Provide exactly one of fileData or s3Key.

s3Keystring

Key of a file already uploaded via /v1/uploads/presign (purpose=attachment). The server fetches the bytes from storage — no base64 needed. Provide exactly one of fileData or s3Key.

descriptionstring

Description of the attachment

userIdstring

User ID of the user uploading the attachment (required for API key auth, ignored for JWT auth)

Responses

201Attachment uploaded successfully
idstringrequired

Unique identifier for the attachment

namestringrequired

Original filename

typestringrequired

File type/MIME type

sizenumberrequired

File size in bytes

downloadUrlstringrequired

Signed URL for downloading the file (temporary)

createdAtstringrequired

Upload timestamp

{
  "id": "att_abc123def456",
  "name": "document.pdf",
  "type": "application/pdf",
  "size": 1024000,
  "downloadUrl": "https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=...",
  "createdAt": "2024-01-15T10:30:00Z"
}
400Invalid file data or file too large
messagestring
{
  "message": "File exceeds maximum allowed size"
}
401Unauthorized - Invalid authentication
messagestring
{
  "message": "Unauthorized"
}
404Task not found
messagestring
{
  "message": "Task with ID tsk_abc123def456 not found"
}
curl --request POST \
  --url https://api.complianz.ai/v1/tasks/<taskId>/attachments \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "fileName": "document.pdf",
    "fileType": "application/pdf",
    "fileData": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
    "s3Key": "org_abc123/uploads/attachment/1700000000000-rbac-matrix.xlsx",
    "description": "Meeting notes from Q4 planning session",
    "userId": "usr_abc123def456"
  }'

Get task attachment download URL

GET/v1/tasks/{taskId}/attachments/{attachmentId}/download

Generate a signed download URL for an attachment on a compliance task so reviewers can access uploaded evidence.

Path parameters

taskIdstringrequired

Unique task identifier

attachmentIdstringrequired

Unique attachment identifier

Responses

200Download URL generated successfully
downloadUrlstring

Signed URL for downloading the file

expiresInnumber

URL expiration time in seconds

{
  "downloadUrl": "https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=...",
  "expiresIn": 900
}
401Unauthorized - Invalid authentication
messagestring
{
  "message": "Unauthorized"
}
404Task or attachment not found
messagestring
{
  "message": "Task or attachment not found"
}
curl --request GET \
  --url https://api.complianz.ai/v1/tasks/<taskId>/attachments/<attachmentId>/download \
  --header 'X-API-Key: <api-key>'

Delete task attachment

DELETE/v1/tasks/{taskId}/attachments/{attachmentId}

Delete task attachment in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.

Path parameters

taskIdstringrequired

Unique task identifier

attachmentIdstringrequired

Unique attachment identifier

Responses

200Attachment deleted successfully
successboolean
deletedAttachmentIdstring
messagestring
{
  "success": true,
  "deletedAttachmentId": "att_abc123def456",
  "message": "Attachment deleted successfully"
}
401Unauthorized - Invalid authentication
messagestring
{
  "message": "Unauthorized"
}
404Task or attachment not found
messagestring
{
  "message": "Task or attachment not found"
}
curl --request DELETE \
  --url https://api.complianz.ai/v1/tasks/<taskId>/attachments/<attachmentId> \
  --header 'X-API-Key: <api-key>'