Skip to main content
POST
/
v1
/
tasks
/
{taskId}
/
automations
Create a new evidence automation
curl --request POST \
  --url https://api.trycomp.ai/v1/tasks/{taskId}/automations \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "automation": {
    "id": "auto_abc123def456",
    "name": "Task Name - Evidence Collection"
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Path Parameters

taskId
string
required

Unique task identifier

Example:

"tsk_abc123def456"

Response

Automation created successfully

success
boolean
Example:

true

automation
object
I