Tasks
Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
List compliance tasks
/v1/tasksList compliance tasks with assignments and status so teams can track audit readiness, evidence work, and control implementation.
Query parameters
includeRelationsstringInclude controls and automations with runs
Responses
200Tasks retrieved successfully
idstringrequiredUnique identifier for the task
titlestringrequiredTask title
descriptionstringTask description
statusenumrequiredTask status
One of: todo in_progress done blocked
createdAtstringrequiredTask creation timestamp
updatedAtstringrequiredTask last update timestamp
taskTemplateIdobjectTask template ID
integrationScheduleFrequencyenumrequiredCadence for running the integration check attached to this task
One of: daily weekly monthly quarterly yearly
integrationLastRunAtobjectLast 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
/v1/tasksCreate a compliance task for evidence collection, remediation, review, or recurring control work inside an organization.
Request body
titlestringrequireddescriptionstringrequiredassigneeIdstringfrequencyenumOne of: daily weekly monthly quarterly yearly
departmentstringBuilt-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.
controlIdsstring[]taskTemplateIdstringvendorIdstringVendor ID to connect this task to
Responses
201Task created successfully
idstringrequiredUnique identifier for the task
titlestringrequiredTask title
descriptionstringTask description
statusenumrequiredTask status
One of: todo in_progress done blocked
createdAtstringrequiredTask creation timestamp
updatedAtstringrequiredTask last update timestamp
taskTemplateIdobjectTask template ID
integrationScheduleFrequencyenumrequiredCadence for running the integration check attached to this task
One of: daily weekly monthly quarterly yearly
integrationLastRunAtobjectLast 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
/v1/tasks/templatesGet task templates in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Query parameters
frameworkIdstringFilter 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
/v1/tasks/bulkUpdate status for multiple tasks in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Request body
taskIdsstring[]requiredstatusenumrequiredOne of: todo in_progress in_review done not_relevant failed
reviewDatestringOptional review date to set on all tasks
notRelevantJustificationstringRequired 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
/v1/tasks/bulkDelete multiple tasks in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Request body
taskIdsstring[]requiredResponses
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
/v1/tasks/bulk/assigneeUpdate assignee for multiple tasks in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Request body
taskIdsstring[]requiredassigneeIdstringAssignee 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
/v1/tasks/reorderReorder tasks in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Request body
updatesobject[]requiredShow child attributes
idstringrequiredordernumberrequiredstatusenumrequiredOne 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
/v1/tasks/ai-prepare/run-allAutopilot: 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
/v1/tasks/bulk/submit-for-reviewBulk submit tasks for review in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Request body
taskIdsstring[]requiredapproverIdstringrequiredMember 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
/v1/tasks/optionsGet 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
/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
taskIdstringrequiredUnique task identifier
Responses
200Task retrieved successfully
idstringrequiredUnique identifier for the task
titlestringrequiredTask title
descriptionstringTask description
statusenumrequiredTask status
One of: todo in_progress done blocked
createdAtstringrequiredTask creation timestamp
updatedAtstringrequiredTask last update timestamp
taskTemplateIdobjectTask template ID
integrationScheduleFrequencyenumrequiredCadence for running the integration check attached to this task
One of: daily weekly monthly quarterly yearly
integrationLastRunAtobjectLast 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
/v1/tasks/{taskId}Update a task in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Path parameters
taskIdstringrequiredUnique task identifier
Request body
titlestringTask title
descriptionstringTask description
statusenumOne of: todo in_progress in_review done not_relevant failed
assigneeIdstringAssignee member ID, or null to unassign
approverIdstringApprover member ID, or null to unassign
frequencyenumOne of: daily weekly monthly quarterly yearly
integrationScheduleFrequencyenumCadence for running the integration check attached to this task
One of: daily weekly monthly quarterly yearly
departmentstringBuilt-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.
reviewDatestringnotRelevantJustificationstringRequired justification when marking evidence tasks as not_relevant
Responses
200Task updated successfully
idstringrequiredUnique identifier for the task
titlestringrequiredTask title
descriptionstringTask description
statusenumrequiredTask status
One of: todo in_progress done blocked
createdAtstringrequiredTask creation timestamp
updatedAtstringrequiredTask last update timestamp
taskTemplateIdobjectTask template ID
integrationScheduleFrequencyenumrequiredCadence for running the integration check attached to this task
One of: daily weekly monthly quarterly yearly
integrationLastRunAtobjectLast 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
/v1/tasks/{taskId}Delete a task in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Path parameters
taskIdstringrequiredUnique task identifier
Responses
200Task deleted successfully
successbooleanmessagestring{
"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
/v1/tasks/{taskId}/policiesGet 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
taskIdstringrequiredUnique 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
/v1/tasks/{taskId}/activityGet task activity in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Path parameters
taskIdstringrequiredUnique task identifier
Query parameters
skipstringrequiredtakestringrequiredResponses
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
/v1/tasks/{taskId}/ai-prepareLatest pending AI draft for a task in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Path parameters
taskIdstringrequiredResponses
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
/v1/tasks/{taskId}/ai-prepareReturns 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
taskIdstringrequiredUnique 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
/v1/tasks/{taskId}/ai-prepare/discardDiscard the pending AI draft in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Path parameters
taskIdstringrequiredResponses
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
/v1/tasks/{taskId}/ai-prepare/approveApprove an AI-prepared draft in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Path parameters
taskIdstringrequiredUnique 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
/v1/tasks/{taskId}/regenerateRegenerate task from template in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Path parameters
taskIdstringrequiredUnique 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
/v1/tasks/{taskId}/submit-for-reviewSubmit task for review in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Path parameters
taskIdstringrequiredUnique task identifier
Request body
approverIdstringrequiredMember 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
/v1/tasks/{taskId}/approveApprove a task that is in review. Only the assigned approver can approve. Moves status to done and creates an audit comment.
Path parameters
taskIdstringrequiredUnique 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
/v1/tasks/{taskId}/rejectReject 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
taskIdstringrequiredUnique 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
/v1/tasks/{taskId}/attachmentsGet task attachments in Complianz. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity history.
Path parameters
taskIdstringrequiredUnique task identifier
Responses
200Attachments retrieved successfully
idstringrequiredUnique identifier for the attachment
namestringrequiredOriginal filename
typestringrequiredFile type/MIME type
sizenumberrequiredFile size in bytes
downloadUrlstringrequiredSigned URL for downloading the file (temporary)
createdAtstringrequiredUpload 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
/v1/tasks/{taskId}/attachmentsUpload an evidence attachment to a task so auditors and reviewers can trace completion back to source documentation.
Path parameters
taskIdstringrequiredUnique task identifier
Request body
fileNamestringrequiredName of the file
fileTypestringrequiredMIME type of the file
fileDatastringBase64-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.
s3KeystringKey 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.
descriptionstringDescription of the attachment
userIdstringUser ID of the user uploading the attachment (required for API key auth, ignored for JWT auth)
Responses
201Attachment uploaded successfully
idstringrequiredUnique identifier for the attachment
namestringrequiredOriginal filename
typestringrequiredFile type/MIME type
sizenumberrequiredFile size in bytes
downloadUrlstringrequiredSigned URL for downloading the file (temporary)
createdAtstringrequiredUpload 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
/v1/tasks/{taskId}/attachments/{attachmentId}/downloadGenerate a signed download URL for an attachment on a compliance task so reviewers can access uploaded evidence.
Path parameters
taskIdstringrequiredUnique task identifier
attachmentIdstringrequiredUnique attachment identifier
Responses
200Download URL generated successfully
downloadUrlstringSigned URL for downloading the file
expiresInnumberURL 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
/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
taskIdstringrequiredUnique task identifier
attachmentIdstringrequiredUnique attachment identifier
Responses
200Attachment deleted successfully
successbooleandeletedAttachmentIdstringmessagestring{
"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>'