Task Automations

Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.

Get all automations for a task

GET/v1/tasks/{taskId}/automations

Get all automations for a task in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.

Path parameters

taskIdstringrequired

Unique 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

POST/v1/tasks/{taskId}/automations

Create an automated evidence workflow attached to a task so Complianz can collect recurring proof from connected systems.

Path parameters

taskIdstringrequired

Unique task identifier

Responses

201Automation created successfully
successboolean
automationobject
Show child attributes
idstring
namestring
{
  "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

GET/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

taskIdstringrequired

Unique task identifier

automationIdstringrequired

Unique 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

PATCH/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

taskIdstringrequired

Unique task identifier

automationIdstringrequired

Unique automation identifier

Request body

namestring

Automation name

descriptionstring

Automation description

isEnabledboolean

Whether the automation is enabled

evaluationCriteriastring

Evaluation criteria for the automation

scheduleFrequencyenum

Automation schedule cadence

One of: daily weekly monthly quarterly yearly

Responses

200Automation updated successfully
successboolean
automationobject
Show child attributes
idstring
namestring
descriptionstring
{
  "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

DELETE/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

taskIdstringrequired

Unique task identifier

automationIdstringrequired

Unique 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

GET/v1/tasks/{taskId}/automations/{automationId}/runs

Get all runs for a specific automation in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.

Path parameters

taskIdstringrequired

Task ID

automationIdstringrequired

Automation 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

GET/v1/tasks/{taskId}/automations/{automationId}/versions

Get all versions for an automation in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.

Path parameters

taskIdstringrequired

Task ID

automationIdstringrequired

Automation ID

Query parameters

limitstringrequired
offsetstringrequired

Responses

200Versions retrieved successfully
successboolean
versionsobject[]
Show child attributes
idstring
versionnumber
scriptKeystring
changelogstring
publishedBystring
createdAtstring
{
  "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

POST/v1/tasks/{taskId}/automations/{automationId}/versions

Create a published version record for an automation in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.

Path parameters

taskIdstringrequired

Task ID

automationIdstringrequired

Automation ID

Request body

versionnumberrequired

Version number for this published script

scriptKeystringrequired

S3 key of the already-generated & published automation script (returned by the publish step).

changelogstring

Optional 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

GET/v1/tasks/{taskId}/automations/runs

Get all automation runs for a task in Complianz. Create, version, run, and inspect automated evidence collection workflows attached to compliance tasks.

Path parameters

taskIdstringrequired

Task ID

Responses

200Automation runs retrieved successfully
idstring
statusenum

One of: PENDING RUNNING COMPLETED FAILED

triggerenum

One of: MANUAL SCHEDULED EVENT

createdAtstring
completedAtstring
errorobject
[
  {
    "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>'