Task Automations
Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.
Get all automations for a task
/v1/tasks/{taskId}/automationsGet all automations for a task in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.
Path parameters
taskIdstringrequiredUnique task identifier
Responses
200Automations retrieved successfully
curl --request GET \
--url https://api.complianz.ai/v1/tasks/<taskId>/automations \
--header 'X-API-Key: <api-key>'Create evidence automation
/v1/tasks/{taskId}/automationsCreate an automated evidence workflow attached to a task so Complianz can collect recurring proof from connected systems.
Path parameters
taskIdstringrequiredUnique task identifier
Responses
201Automation created successfully
successbooleanautomationobjectShow child attributes
idstringnamestring{
"success": true,
"automation": {
"id": "auto_abc123def456",
"name": "Task Name - Evidence Collection"
}
}400Bad request - Invalid task ID or organization ID
messagestring{
"message": "Invalid task ID or organization ID"
}401Unauthorized - Invalid authentication
messagestring{
"message": "Unauthorized"
}404Task not found
messagestring{
"message": "Task not found"
}curl --request POST \
--url https://api.complianz.ai/v1/tasks/<taskId>/automations \
--header 'X-API-Key: <api-key>'Get automation details
/v1/tasks/{taskId}/automations/{automationId}Get automation details in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.
Path parameters
taskIdstringrequiredUnique task identifier
automationIdstringrequiredUnique automation identifier
Responses
200Automation details retrieved successfully
curl --request GET \
--url https://api.complianz.ai/v1/tasks/<taskId>/automations/<automationId> \
--header 'X-API-Key: <api-key>'Update an existing automation
/v1/tasks/{taskId}/automations/{automationId}Update an existing automation in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.
Path parameters
taskIdstringrequiredUnique task identifier
automationIdstringrequiredUnique automation identifier
Request body
namestringAutomation name
descriptionstringAutomation description
isEnabledbooleanWhether the automation is enabled
evaluationCriteriastringEvaluation criteria for the automation
scheduleFrequencyenumAutomation schedule cadence
One of: daily weekly monthly quarterly yearly
Responses
200Automation updated successfully
successbooleanautomationobjectShow child attributes
idstringnamestringdescriptionstring{
"success": true,
"automation": {
"id": "auto_abc123def456",
"name": "Updated Automation Name",
"description": "Updated description"
}
}400Bad request - Invalid automation ID or data
messagestring{
"message": "Invalid automation data"
}401Unauthorized - Invalid authentication
messagestring{
"message": "Unauthorized"
}404Automation not found
messagestring{
"message": "Automation not found"
}curl --request PATCH \
--url https://api.complianz.ai/v1/tasks/<taskId>/automations/<automationId> \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "GitHub Security Check - Evidence Collection",
"description": "Collects evidence about GitHub repository security settings",
"isEnabled": true,
"evaluationCriteria": "string",
"scheduleFrequency": "daily"
}'Delete an automation
/v1/tasks/{taskId}/automations/{automationId}Delete an automation in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.
Path parameters
taskIdstringrequiredUnique task identifier
automationIdstringrequiredUnique automation identifier
Responses
200Automation deleted successfully
curl --request DELETE \
--url https://api.complianz.ai/v1/tasks/<taskId>/automations/<automationId> \
--header 'X-API-Key: <api-key>'Get all runs for a specific automation
/v1/tasks/{taskId}/automations/{automationId}/runsGet all runs for a specific automation in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.
Path parameters
taskIdstringrequiredTask ID
automationIdstringrequiredAutomation ID
Responses
200Runs retrieved successfully
curl --request GET \
--url https://api.complianz.ai/v1/tasks/<taskId>/automations/<automationId>/runs \
--header 'X-API-Key: <api-key>'Get all versions for an automation
/v1/tasks/{taskId}/automations/{automationId}/versionsGet all versions for an automation in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.
Path parameters
taskIdstringrequiredTask ID
automationIdstringrequiredAutomation ID
Query parameters
limitstringrequiredoffsetstringrequiredResponses
200Versions retrieved successfully
successbooleanversionsobject[]Show child attributes
idstringversionnumberscriptKeystringchangelogstringpublishedBystringcreatedAtstring{
"success": true,
"versions": [
{
"id": "string",
"version": 0,
"scriptKey": "string",
"changelog": "string",
"publishedBy": "string",
"createdAt": "2026-01-01T00:00:00.000Z"
}
]
}curl --request GET \
--url https://api.complianz.ai/v1/tasks/<taskId>/automations/<automationId>/versions?limit=<limit>&offset=<offset> \
--header 'X-API-Key: <api-key>'Create a published version record for an automation
/v1/tasks/{taskId}/automations/{automationId}/versionsCreate a published version record for an automation in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.
Path parameters
taskIdstringrequiredTask ID
automationIdstringrequiredAutomation ID
Request body
versionnumberrequiredVersion number for this published script
scriptKeystringrequiredS3 key of the already-generated & published automation script (returned by the publish step).
changelogstringOptional changelog describing this version
Responses
201
curl --request POST \
--url https://api.complianz.ai/v1/tasks/<taskId>/automations/<automationId>/versions \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"version": 1,
"scriptKey": "org_abc123/tsk_abc123/aut_abc123.v1.js",
"changelog": "string"
}'Get all automation runs for a task
/v1/tasks/{taskId}/automations/runsGet all automation runs for a task in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.
Path parameters
taskIdstringrequiredTask ID
Responses
200Automation runs retrieved successfully
idstringstatusenumOne of: PENDING RUNNING COMPLETED FAILED
triggerenumOne of: MANUAL SCHEDULED EVENT
createdAtstringcompletedAtstringerrorobject[
{
"id": "ear_abc123def456",
"status": "PENDING",
"trigger": "MANUAL",
"createdAt": "2026-01-01T00:00:00.000Z",
"completedAt": "2026-01-01T00:00:00.000Z",
"error": {}
}
]curl --request GET \
--url https://api.complianz.ai/v1/tasks/<taskId>/automations/runs \
--header 'X-API-Key: <api-key>'