Skip to content

Create evidence automation

POST
/v1/tasks/{taskId}/automations
curl --request POST \
--url https://api.varman.io/v1/tasks/tsk_abc123def456/automations \
--header 'X-API-Key: <X-API-Key>'

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

taskId
required
string

Example

tsk_abc123def456

Unique task identifier

Automation created successfully

Media typeapplication/json
object
success
boolean
automation
object
id
string
name
string

Example

{
"success": true,
"automation": {
"id": "auto_abc123def456",
"name": "Task Name - Evidence Collection"
}
}

Bad request - Invalid task ID or organization ID

Media typeapplication/json
object
message
string

Example

{
"message": "Invalid task ID or organization ID"
}

Unauthorized - Invalid authentication

Media typeapplication/json
object
message
string

Example

{
"message": "Unauthorized"
}

Task not found

Media typeapplication/json
object
message
string

Example

{
"message": "Task not found"
}