Create evidence automation
POST
/v1/tasks/{taskId}/automations
const url = 'https://api.varman.io/v1/tasks/tsk_abc123def456/automations';const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskId
required
string
Example
tsk_abc123def456Unique task identifier
Responses
Section titled “Responses”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"}