Create evidence automation
curl --request POST \
--url https://api.trycomp.ai/v1/tasks/{taskId}/automations \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/tasks/{taskId}/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/tasks/{taskId}/automations"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"automation": {
"id": "auto_abc123def456",
"name": "Task Name - Evidence Collection"
}
}{
"message": "Invalid task ID or organization ID"
}{
"message": "Unauthorized"
}{
"message": "Task not found"
}Task Automations
Create evidence automation | Comp AI API
Create an automated evidence workflow attached to a task so Comp AI can collect recurring proof from connected systems.
POST
/
v1
/
tasks
/
{taskId}
/
automations
Create evidence automation
curl --request POST \
--url https://api.trycomp.ai/v1/tasks/{taskId}/automations \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/tasks/{taskId}/automations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/tasks/{taskId}/automations"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"automation": {
"id": "auto_abc123def456",
"name": "Task Name - Evidence Collection"
}
}{
"message": "Invalid task ID or organization ID"
}{
"message": "Unauthorized"
}{
"message": "Task not found"
}Was this page helpful?

