Automation
CompozyOS Automation HTTP endpoints.
22 endpoints32 pages in API Reference
Endpoints22
- GET
/api/automation/jobsList automation jobs - POST
/api/automation/jobsCreate an automation job - GET
/api/automation/jobs/{id}Get one automation job - PATCH
/api/automation/jobs/{id}Update one automation job - DELETE
/api/automation/jobs/{id}Delete one automation job - GET
/api/automation/jobs/{id}/runsList run history for one automation job - POST
/api/automation/jobs/{id}/triggerStart one automation job and return its admission receipt - GET
/api/automation/runsList automation runs - GET
/api/automation/runs/{id}Get one automation run - POST
/api/automation/runs/{id}/cancelCancel an orphaned automation run - GET
/api/automation/suggestionsList consent-first automation suggestions for one workspace - GET
/api/automation/triggersList automation triggers
GET/api/automation/jobs
List automation jobs
httpuds
Query parameters
scope?stringFilter by automation scope
"global""workspace""user""@user"workspace_id?stringFilter by workspace id
all_workspaces?booleanRead every definition
workspace_ids?array<string>Project IDs or @user; requires all_workspaces=true
source?stringFilter by job source
"config""package""dynamic"target?stringFilter by target kind; task matches jobs with a task target
"agent""loop""task"enabled?booleanFilter by enabled state
q?stringSearch jobs by name, agent, prompt, scope, source, or schedule
cursor?stringContinue after this automation job cursor
limit?integerMaximum number of records to return
int32profile?stringRead one profile's rows by name
all_profiles?booleanRead the owner-labeled all-profiles aggregate
loop?stringFilter by Loop target name
Responses
- 200
- OK
- 400
- Invalid automation filter
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
jobs*array<>page*curl -X GET 'http://localhost:2123/api/automation/jobs'{ "jobs": [ { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "next_run": "2019-08-24T14:15:22Z", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "schedule": { "catch_up_policy": "skip_missed", "expr": "string", "interval": "string", "misfire_grace_seconds": 0, "mode": "cron", "time": "string" }, "scheduler": { "catch_up_policy": "skip_missed", "consecutive_resume_failures": 0, "job_id": "string", "last_fire_id": "string", "last_misfire_at": "2019-08-24T14:15:22Z", "last_run_at": "2019-08-24T14:15:22Z", "last_scheduled_at": "2019-08-24T14:15:22Z", "misfire_count": 0, "misfire_grace_seconds": 0, "next_run_at": "2019-08-24T14:15:22Z", "registered": true, "updated_at": "2019-08-24T14:15:22Z" }, "scope": "global", "source": "config", "target_kind": "string", "task": { "description": "string", "owner": { "kind": "human", "ref": "string" }, "title": "string" }, "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" } ], "page": { "has_more": true, "limit": 0, "next_cursor": "string", "total": 0 }}POST/api/automation/jobs
Create an automation job
httpuds
Query parameters
profile?stringAct as this profile by name
Request body
JSON request body
application/json- body
agent_name*string^(?:|[a-z][a-z0-9_-]{0,105})$length <= 106enabled?boolean|nullfire_limit?|loop_target?|name*stringprompt*stringretry?|schedule*scope*string"global""workspace""user""@user"target_kind?stringtask?|workspace_id?stringResponses
- 201
- Created
- 400
- Invalid automation job request
- 409
- Automation job conflict
- 422
- Automation Loop target validation failed
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
Created
application/json- response
job*curl -X POST 'http://localhost:2123/api/automation/jobs' \ -H 'Content-Type: application/json' \ -d '{ "agent_name": "string", "name": "string", "prompt": "string", "schedule": { "mode": "cron" }, "scope": "global"}'{ "job": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "next_run": "2019-08-24T14:15:22Z", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "schedule": { "catch_up_policy": "skip_missed", "expr": "string", "interval": "string", "misfire_grace_seconds": 0, "mode": "cron", "time": "string" }, "scheduler": { "catch_up_policy": "skip_missed", "consecutive_resume_failures": 0, "job_id": "string", "last_fire_id": "string", "last_misfire_at": "2019-08-24T14:15:22Z", "last_run_at": "2019-08-24T14:15:22Z", "last_scheduled_at": "2019-08-24T14:15:22Z", "misfire_count": 0, "misfire_grace_seconds": 0, "next_run_at": "2019-08-24T14:15:22Z", "registered": true, "updated_at": "2019-08-24T14:15:22Z" }, "scope": "global", "source": "config", "target_kind": "string", "task": { "description": "string", "owner": { "kind": "human", "ref": "string" }, "title": "string" }, "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" }}GET/api/automation/jobs/{id}
Get one automation job
httpuds
Path parameters
id*stringAutomation job id
Query parameters
profile?stringRead one profile's rows by name
all_profiles?booleanRead the owner-labeled all-profiles aggregate
Responses
- 200
- OK
- 404
- Automation job not found
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
job*curl -X GET 'http://localhost:2123/api/automation/jobs/string'{ "job": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "next_run": "2019-08-24T14:15:22Z", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "schedule": { "catch_up_policy": "skip_missed", "expr": "string", "interval": "string", "misfire_grace_seconds": 0, "mode": "cron", "time": "string" }, "scheduler": { "catch_up_policy": "skip_missed", "consecutive_resume_failures": 0, "job_id": "string", "last_fire_id": "string", "last_misfire_at": "2019-08-24T14:15:22Z", "last_run_at": "2019-08-24T14:15:22Z", "last_scheduled_at": "2019-08-24T14:15:22Z", "misfire_count": 0, "misfire_grace_seconds": 0, "next_run_at": "2019-08-24T14:15:22Z", "registered": true, "updated_at": "2019-08-24T14:15:22Z" }, "scope": "global", "source": "config", "target_kind": "string", "task": { "description": "string", "owner": { "kind": "human", "ref": "string" }, "title": "string" }, "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" }}PATCH/api/automation/jobs/{id}
Update one automation job
httpuds
Path parameters
id*stringAutomation job id
Query parameters
profile?stringAct as this profile by name
Request body
JSON request body
application/json- body
enabled?boolean|nullfire_limit?|loop_target?|name?string|nullprompt?string|nullretry?|schedule?|task?|Responses
- 200
- OK
- 400
- Invalid automation job update
- 404
- Automation job not found
- 409
- Automation job conflict
- 422
- Automation Loop target validation failed
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
job*curl -X PATCH 'http://localhost:2123/api/automation/jobs/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "job": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "next_run": "2019-08-24T14:15:22Z", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "schedule": { "catch_up_policy": "skip_missed", "expr": "string", "interval": "string", "misfire_grace_seconds": 0, "mode": "cron", "time": "string" }, "scheduler": { "catch_up_policy": "skip_missed", "consecutive_resume_failures": 0, "job_id": "string", "last_fire_id": "string", "last_misfire_at": "2019-08-24T14:15:22Z", "last_run_at": "2019-08-24T14:15:22Z", "last_scheduled_at": "2019-08-24T14:15:22Z", "misfire_count": 0, "misfire_grace_seconds": 0, "next_run_at": "2019-08-24T14:15:22Z", "registered": true, "updated_at": "2019-08-24T14:15:22Z" }, "scope": "global", "source": "config", "target_kind": "string", "task": { "description": "string", "owner": { "kind": "human", "ref": "string" }, "title": "string" }, "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" }}DELETE/api/automation/jobs/{id}
Delete one automation job
httpuds
Path parameters
id*stringAutomation job id
Query parameters
profile?stringAct as this profile by name
Responses
- 204
- No Content
- 400
- Invalid automation job delete request
- 404
- Automation job not found
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
No Content
curl -X DELETE 'http://localhost:2123/api/automation/jobs/string'{ "blockers": [ { "id": "string", "kind": "string", "name": "string" } ], "code": "string", "config_path": "string", "current_turn_id": "string", "details": { "property1": "string", "property2": "string" }, "diagnostic": { "category": "string", "code": "string", "data_freshness": "string", "doc_url": "string", "evidence": { "property1": null, "property2": null }, "id": "string", "message": "string", "severity": "string", "suggested_command": "string", "title": "string" }, "error": "string", "unknown_keys": [ "string" ]}GET/api/automation/jobs/{id}/runs
List run history for one automation job
httpuds
Path parameters
id*stringAutomation job id
Query parameters
status?stringFilter by run status
"scheduled""running""delegated""completed""failed""canceled"since?stringOnly runs started since this timestamp
date-timeuntil?stringOnly runs started before this timestamp
date-timecursor?stringContinue after page.next_cursor with unchanged filters
limit?integerPage size (default 50, maximum 200; zero uses default)
int32profile?stringRead one profile's rows by name
all_profiles?booleanRead the owner-labeled all-profiles aggregate
Responses
- 200
- OK
- 400
- Invalid automation run filter
- 404
- Automation job not found
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
page?|runs*array<>curl -X GET 'http://localhost:2123/api/automation/jobs/string/runs'{ "page": { "has_more": true, "limit": 0, "next_cursor": "string" }, "runs": [ { "attempt": 0, "attribution": "string", "delivery_error": "string", "delivery_error_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "error": "string", "fire_id": "string", "id": "string", "job_id": "string", "loop_run_id": "string", "metadata": { "property1": null, "property2": null }, "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "scheduled_at": "2019-08-24T14:15:22Z", "session_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled", "task_id": "string", "task_run_id": "string", "trigger_id": "string", "workspace_id": "string" } ]}POST/api/automation/jobs/{id}/trigger
Start one automation job and return its admission receipt
httpuds
Path parameters
id*stringAutomation job id
Query parameters
wait?booleanWait for completion (default false); execution continues after the wait ends
timeout?stringCompletion wait budget when wait=true (default 1m; positive duration up to 24h). On expiry returns the running admission receipt
profile?stringAct as this profile by name
Responses
- 200
- Admitted run with id and running status, or final result when wait=true; task and Loop targets retain delegated status
- 400
- Invalid wait or completion budget
- 404
- Automation job not found
- 409
- Automation run conflict
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
Admitted run with id and running status, or final result when wait=true; task and Loop targets retain delegated status
application/json- response
run*curl -X POST 'http://localhost:2123/api/automation/jobs/string/trigger'{ "run": { "attempt": 0, "attribution": "string", "delivery_error": "string", "delivery_error_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "error": "string", "fire_id": "string", "id": "string", "job_id": "string", "loop_run_id": "string", "metadata": { "property1": null, "property2": null }, "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "scheduled_at": "2019-08-24T14:15:22Z", "session_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled", "task_id": "string", "task_run_id": "string", "trigger_id": "string", "workspace_id": "string" }}GET/api/automation/runs
List automation runs
httpuds
Query parameters
workspace_id?stringFilter by source project; @user selects User
all_workspaces?booleanRead every run, including unknown attribution
workspace_ids?array<string>Source project IDs or @user; excludes unknown attribution
cursor?stringOpaque source-filter-bound cursor
job_id?stringFilter by automation job id
trigger_id?stringFilter by automation trigger id
status?stringFilter by run status
"scheduled""running""delegated""completed""failed""canceled"since?stringOnly runs started since this timestamp
date-timeuntil?stringOnly runs started before this timestamp
date-timelimit?integerPage size (default 50, maximum 200; zero uses default)
int32profile?stringRead one profile's rows by name
all_profiles?booleanRead the owner-labeled all-profiles aggregate
Responses
- 200
- OK
- 400
- Invalid automation run filter
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
page?|runs*array<>curl -X GET 'http://localhost:2123/api/automation/runs'{ "page": { "has_more": true, "limit": 0, "next_cursor": "string" }, "runs": [ { "attempt": 0, "attribution": "string", "delivery_error": "string", "delivery_error_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "error": "string", "fire_id": "string", "id": "string", "job_id": "string", "loop_run_id": "string", "metadata": { "property1": null, "property2": null }, "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "scheduled_at": "2019-08-24T14:15:22Z", "session_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled", "task_id": "string", "task_run_id": "string", "trigger_id": "string", "workspace_id": "string" } ]}GET/api/automation/runs/{id}
Get one automation run
httpuds
Path parameters
id*stringAutomation run id
Query parameters
profile?stringRead one profile's rows by name
all_profiles?booleanRead the owner-labeled all-profiles aggregate
Responses
- 200
- OK
- 404
- Automation run not found
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
run*curl -X GET 'http://localhost:2123/api/automation/runs/string'{ "run": { "attempt": 0, "attribution": "string", "delivery_error": "string", "delivery_error_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "error": "string", "fire_id": "string", "id": "string", "job_id": "string", "loop_run_id": "string", "metadata": { "property1": null, "property2": null }, "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "scheduled_at": "2019-08-24T14:15:22Z", "session_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled", "task_id": "string", "task_run_id": "string", "trigger_id": "string", "workspace_id": "string" }}POST/api/automation/runs/{id}/cancel
Cancel an orphaned automation run
httpuds
Path parameters
id*stringAutomation run id
Query parameters
profile?stringAct as this profile by name
Responses
- 200
- Canceled run or unchanged terminal run
- 404
- Automation run not found
- 409
- Run may still be executing or changed concurrently
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
Canceled run or unchanged terminal run
application/json- response
run*curl -X POST 'http://localhost:2123/api/automation/runs/string/cancel'{ "run": { "attempt": 0, "attribution": "string", "delivery_error": "string", "delivery_error_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "error": "string", "fire_id": "string", "id": "string", "job_id": "string", "loop_run_id": "string", "metadata": { "property1": null, "property2": null }, "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "scheduled_at": "2019-08-24T14:15:22Z", "session_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled", "task_id": "string", "task_run_id": "string", "trigger_id": "string", "workspace_id": "string" }}GET/api/automation/suggestions
List consent-first automation suggestions for one workspace
httpuds
Query parameters
all_workspaces?booleanRead all projects and User rows
workspace_ids?array<string>Repeatable project IDs or @user; requires all_workspaces=true
status?stringFilter by suggestion status
"pending""accepted""dismissed"Responses
- 200
- OK
- 400
- Invalid suggestion status
- 404
- Workspace not found
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
suggestions*array<>curl -X GET 'http://localhost:2123/api/automation/suggestions'{ "suggestions": [ { "created_at": "2019-08-24T14:15:22Z", "dedup_key": "string", "id": "string", "payload": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "next_run": "2019-08-24T14:15:22Z", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "schedule": { "catch_up_policy": "skip_missed", "expr": "string", "interval": "string", "misfire_grace_seconds": 0, "mode": "cron", "time": "string" }, "scheduler": { "catch_up_policy": "skip_missed", "consecutive_resume_failures": 0, "job_id": "string", "last_fire_id": "string", "last_misfire_at": "2019-08-24T14:15:22Z", "last_run_at": "2019-08-24T14:15:22Z", "last_scheduled_at": "2019-08-24T14:15:22Z", "misfire_count": 0, "misfire_grace_seconds": 0, "next_run_at": "2019-08-24T14:15:22Z", "registered": true, "updated_at": "2019-08-24T14:15:22Z" }, "scope": "global", "source": "config", "target_kind": "string", "task": { "description": "string", "owner": { "kind": "human", "ref": "string" }, "title": "string" }, "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" }, "profile_id": "string", "resolved_at": "2019-08-24T14:15:22Z", "source": "string", "status": "string", "workspace_id": "string" } ]}GET/api/automation/triggers
List automation triggers
httpuds
Query parameters
scope?stringFilter by automation scope
"global""workspace""user""@user"workspace_id?stringFilter by workspace id
all_workspaces?booleanRead every definition
workspace_ids?array<string>Project IDs or @user; requires all_workspaces=true
source?stringFilter by trigger source
"config""package""dynamic"target?stringFilter by target kind; task matches no trigger
"agent""loop""task""agent_instance"enabled?booleanFilter by enabled state
event?stringFilter by trigger event
q?stringSearch triggers by definition or filter fields
cursor?stringContinue after this automation trigger cursor
limit?integerMaximum number of records to return
int32profile?stringRead one profile's rows by name
all_profiles?booleanRead the owner-labeled all-profiles aggregate
loop?stringFilter by Loop target name
Responses
- 200
- OK
- 400
- Invalid automation filter
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
page*triggers*array<>curl -X GET 'http://localhost:2123/api/automation/triggers'{ "page": { "has_more": true, "limit": 0, "next_cursor": "string", "total": 0 }, "triggers": [ { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "endpoint_slug": "string", "event": "string", "filter": { "property1": "string", "property2": "string" }, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "ingress": { "confirmed_at": "2019-08-24T14:15:22Z", "confirmed_endpoint_generation": 0, "enable_path": "string", "endpoint_generation": 0, "reachability": "string", "scope_kind": "string", "subject_id": "string", "subject_kind": "string", "url": "string", "workspace_id": "string" }, "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "scope": "global", "source": "config", "target_instance_scope": "string", "target_kind": "string", "updated_at": "2019-08-24T14:15:22Z", "webhook_id": "string", "webhook_secret_hash": "string", "webhook_secret_present": true, "workspace_id": "string" } ]}POST/api/automation/triggers
Create an automation trigger
httpuds
Query parameters
profile?stringAct as this profile by name
Request body
JSON request body
application/json- body
agent_name*string^(?:|[a-z][a-z0-9_-]{0,105})$length <= 106enabled?boolean|nullendpoint_slug?stringevent*stringfilter?fire_limit?|loop_target?|name*stringprompt?stringretry?|scope*string"global""workspace""user""@user"target_instance_scope?stringtarget_kind?stringwebhook_id?stringwebhook_secret_value?stringworkspace_id?stringResponses
- 201
- Created
- 400
- Invalid automation trigger request
- 409
- Automation trigger conflict
- 422
- Automation Loop target validation failed
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
Created
application/json- response
trigger*curl -X POST 'http://localhost:2123/api/automation/triggers' \ -H 'Content-Type: application/json' \ -d '{ "agent_name": "string", "event": "string", "name": "string", "scope": "global"}'{ "trigger": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "endpoint_slug": "string", "event": "string", "filter": { "property1": "string", "property2": "string" }, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "ingress": { "confirmed_at": "2019-08-24T14:15:22Z", "confirmed_endpoint_generation": 0, "enable_path": "string", "endpoint_generation": 0, "reachability": "string", "scope_kind": "string", "subject_id": "string", "subject_kind": "string", "url": "string", "workspace_id": "string" }, "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "scope": "global", "source": "config", "target_instance_scope": "string", "target_kind": "string", "updated_at": "2019-08-24T14:15:22Z", "webhook_id": "string", "webhook_secret_hash": "string", "webhook_secret_present": true, "workspace_id": "string" }}GET/api/automation/triggers/{id}
Get one automation trigger
httpuds
Path parameters
id*stringAutomation trigger id
Query parameters
profile?stringRead one profile's rows by name
all_profiles?booleanRead the owner-labeled all-profiles aggregate
Responses
- 200
- OK
- 404
- Automation trigger not found
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
trigger*curl -X GET 'http://localhost:2123/api/automation/triggers/string'{ "trigger": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "endpoint_slug": "string", "event": "string", "filter": { "property1": "string", "property2": "string" }, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "ingress": { "confirmed_at": "2019-08-24T14:15:22Z", "confirmed_endpoint_generation": 0, "enable_path": "string", "endpoint_generation": 0, "reachability": "string", "scope_kind": "string", "subject_id": "string", "subject_kind": "string", "url": "string", "workspace_id": "string" }, "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "scope": "global", "source": "config", "target_instance_scope": "string", "target_kind": "string", "updated_at": "2019-08-24T14:15:22Z", "webhook_id": "string", "webhook_secret_hash": "string", "webhook_secret_present": true, "workspace_id": "string" }}PATCH/api/automation/triggers/{id}
Update one automation trigger
httpuds
Path parameters
id*stringAutomation trigger id
Query parameters
profile?stringAct as this profile by name
Request body
JSON request body
application/json- body
enabled?boolean|nullendpoint_slug?string|nullevent?string|nullfilter?fire_limit?|loop_target?|name?string|nullprompt?string|nullretry?|target_instance_scope?string|nullwebhook_id?string|nullwebhook_secret_value?string|nullResponses
- 200
- OK
- 400
- Invalid automation trigger update
- 404
- Automation trigger not found
- 409
- Automation trigger conflict
- 422
- Automation Loop target validation failed
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
trigger*curl -X PATCH 'http://localhost:2123/api/automation/triggers/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "trigger": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "endpoint_slug": "string", "event": "string", "filter": { "property1": "string", "property2": "string" }, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "ingress": { "confirmed_at": "2019-08-24T14:15:22Z", "confirmed_endpoint_generation": 0, "enable_path": "string", "endpoint_generation": 0, "reachability": "string", "scope_kind": "string", "subject_id": "string", "subject_kind": "string", "url": "string", "workspace_id": "string" }, "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "scope": "global", "source": "config", "target_instance_scope": "string", "target_kind": "string", "updated_at": "2019-08-24T14:15:22Z", "webhook_id": "string", "webhook_secret_hash": "string", "webhook_secret_present": true, "workspace_id": "string" }}DELETE/api/automation/triggers/{id}
Delete one automation trigger
httpuds
Path parameters
id*stringAutomation trigger id
Query parameters
profile?stringAct as this profile by name
Responses
- 204
- No Content
- 400
- Invalid automation trigger delete request
- 404
- Automation trigger not found
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
No Content
curl -X DELETE 'http://localhost:2123/api/automation/triggers/string'{ "blockers": [ { "id": "string", "kind": "string", "name": "string" } ], "code": "string", "config_path": "string", "current_turn_id": "string", "details": { "property1": "string", "property2": "string" }, "diagnostic": { "category": "string", "code": "string", "data_freshness": "string", "doc_url": "string", "evidence": { "property1": null, "property2": null }, "id": "string", "message": "string", "severity": "string", "suggested_command": "string", "title": "string" }, "error": "string", "unknown_keys": [ "string" ]}GET/api/automation/triggers/{id}/runs
List run history for one automation trigger
httpuds
Path parameters
id*stringAutomation trigger id
Query parameters
status?stringFilter by run status
"scheduled""running""delegated""completed""failed""canceled"since?stringOnly runs started since this timestamp
date-timeuntil?stringOnly runs started before this timestamp
date-timecursor?stringContinue after page.next_cursor with unchanged filters
limit?integerPage size (default 50, maximum 200; zero uses default)
int32profile?stringRead one profile's rows by name
all_profiles?booleanRead the owner-labeled all-profiles aggregate
Responses
- 200
- OK
- 400
- Invalid automation run filter
- 404
- Automation trigger not found
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
page?|runs*array<>curl -X GET 'http://localhost:2123/api/automation/triggers/string/runs'{ "page": { "has_more": true, "limit": 0, "next_cursor": "string" }, "runs": [ { "attempt": 0, "attribution": "string", "delivery_error": "string", "delivery_error_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "error": "string", "fire_id": "string", "id": "string", "job_id": "string", "loop_run_id": "string", "metadata": { "property1": null, "property2": null }, "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "scheduled_at": "2019-08-24T14:15:22Z", "session_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled", "task_id": "string", "task_run_id": "string", "trigger_id": "string", "workspace_id": "string" } ]}POST/api/webhooks/global/{endpoint}
Deliver one global automation webhook
http
Path parameters
endpoint*stringWebhook endpoint slug and id
Query parameters
profile?stringAct as this profile by name
Header parameters
X-Compozy-Webhook-Delivery-ID*stringUnique webhook delivery id
X-Compozy-Webhook-Timestamp*stringSigned webhook timestamp
X-Compozy-Webhook-Signature*stringSigned webhook HMAC signature
Request body
JSON request body
application/json- body
[key: string]?unknownResponses
- 200
- OK
- 400
- Invalid webhook request
- 401
- Webhook authentication failed
- 404
- Webhook trigger not found
- 409
- Webhook delivery is disabled or already claimed
- 413
- Payload too large
- 429
- Rate limited
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
result*curl -X POST 'http://localhost:2123/api/webhooks/global/string' \ -H 'X-Compozy-Webhook-Delivery-ID: string' \ -H 'X-Compozy-Webhook-Timestamp: string' \ -H 'X-Compozy-Webhook-Signature: string' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "result": { "matched": 0, "runs": [ { "attempt": 0, "attribution": "string", "delivery_error": "string", "delivery_error_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "error": "string", "fire_id": "string", "id": "string", "job_id": "string", "loop_run_id": "string", "metadata": { "property1": null, "property2": null }, "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "scheduled_at": "2019-08-24T14:15:22Z", "session_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled", "task_id": "string", "task_run_id": "string", "trigger_id": "string", "workspace_id": "string" } ] }}POST/api/webhooks/workspaces/{workspace_id}/{endpoint}
Deliver one workspace-scoped automation webhook
http
Path parameters
workspace_id*stringWorkspace id
endpoint*stringWebhook endpoint slug and id
Query parameters
profile?stringAct as this profile by name
Header parameters
X-Compozy-Webhook-Delivery-ID*stringUnique webhook delivery id
X-Compozy-Webhook-Timestamp*stringSigned webhook timestamp
X-Compozy-Webhook-Signature*stringSigned webhook HMAC signature
Request body
JSON request body
application/json- body
[key: string]?unknownResponses
- 200
- OK
- 400
- Invalid webhook request
- 401
- Webhook authentication failed
- 404
- Webhook trigger not found
- 409
- Webhook delivery is disabled or already claimed
- 413
- Payload too large
- 429
- Rate limited
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
result*curl -X POST 'http://localhost:2123/api/webhooks/workspaces/string/string' \ -H 'X-Compozy-Webhook-Delivery-ID: string' \ -H 'X-Compozy-Webhook-Timestamp: string' \ -H 'X-Compozy-Webhook-Signature: string' \ -H 'Content-Type: application/json' \ -d '{ "property1": null, "property2": null}'{ "result": { "matched": 0, "runs": [ { "attempt": 0, "attribution": "string", "delivery_error": "string", "delivery_error_at": "2019-08-24T14:15:22Z", "ended_at": "2019-08-24T14:15:22Z", "error": "string", "fire_id": "string", "id": "string", "job_id": "string", "loop_run_id": "string", "metadata": { "property1": null, "property2": null }, "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "scheduled_at": "2019-08-24T14:15:22Z", "session_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled", "task_id": "string", "task_run_id": "string", "trigger_id": "string", "workspace_id": "string" } ] }}GET/api/workspaces/{workspace_id}/automation/suggestions
List consent-first automation suggestions for one workspace
httpuds
Path parameters
workspace_id*stringWorkspace id
Query parameters
status?stringFilter by suggestion status
"pending""accepted""dismissed"Responses
- 200
- OK
- 400
- Invalid suggestion status
- 404
- Workspace not found
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
suggestions*array<>curl -X GET 'http://localhost:2123/api/workspaces/string/automation/suggestions'{ "suggestions": [ { "created_at": "2019-08-24T14:15:22Z", "dedup_key": "string", "id": "string", "payload": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "next_run": "2019-08-24T14:15:22Z", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "schedule": { "catch_up_policy": "skip_missed", "expr": "string", "interval": "string", "misfire_grace_seconds": 0, "mode": "cron", "time": "string" }, "scheduler": { "catch_up_policy": "skip_missed", "consecutive_resume_failures": 0, "job_id": "string", "last_fire_id": "string", "last_misfire_at": "2019-08-24T14:15:22Z", "last_run_at": "2019-08-24T14:15:22Z", "last_scheduled_at": "2019-08-24T14:15:22Z", "misfire_count": 0, "misfire_grace_seconds": 0, "next_run_at": "2019-08-24T14:15:22Z", "registered": true, "updated_at": "2019-08-24T14:15:22Z" }, "scope": "global", "source": "config", "target_kind": "string", "task": { "description": "string", "owner": { "kind": "human", "ref": "string" }, "title": "string" }, "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" }, "profile_id": "string", "resolved_at": "2019-08-24T14:15:22Z", "source": "string", "status": "string", "workspace_id": "string" } ]}POST/api/workspaces/{workspace_id}/automation/suggestions/{suggestion_id}/accept
Accept one automation suggestion and create its Job
httpuds
Path parameters
workspace_id*stringWorkspace id
suggestion_id*stringAutomation suggestion id
Responses
- 200
- OK
- 400
- Invalid suggested Job
- 404
- Workspace or automation suggestion not found
- 409
- Automation suggestion is already resolved
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
job*suggestion*curl -X POST 'http://localhost:2123/api/workspaces/string/automation/suggestions/string/accept'{ "job": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "next_run": "2019-08-24T14:15:22Z", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "schedule": { "catch_up_policy": "skip_missed", "expr": "string", "interval": "string", "misfire_grace_seconds": 0, "mode": "cron", "time": "string" }, "scheduler": { "catch_up_policy": "skip_missed", "consecutive_resume_failures": 0, "job_id": "string", "last_fire_id": "string", "last_misfire_at": "2019-08-24T14:15:22Z", "last_run_at": "2019-08-24T14:15:22Z", "last_scheduled_at": "2019-08-24T14:15:22Z", "misfire_count": 0, "misfire_grace_seconds": 0, "next_run_at": "2019-08-24T14:15:22Z", "registered": true, "updated_at": "2019-08-24T14:15:22Z" }, "scope": "global", "source": "config", "target_kind": "string", "task": { "description": "string", "owner": { "kind": "human", "ref": "string" }, "title": "string" }, "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" }, "suggestion": { "created_at": "2019-08-24T14:15:22Z", "dedup_key": "string", "id": "string", "payload": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "next_run": "2019-08-24T14:15:22Z", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "schedule": { "catch_up_policy": "skip_missed", "expr": "string", "interval": "string", "misfire_grace_seconds": 0, "mode": "cron", "time": "string" }, "scheduler": { "catch_up_policy": "skip_missed", "consecutive_resume_failures": 0, "job_id": "string", "last_fire_id": "string", "last_misfire_at": "2019-08-24T14:15:22Z", "last_run_at": "2019-08-24T14:15:22Z", "last_scheduled_at": "2019-08-24T14:15:22Z", "misfire_count": 0, "misfire_grace_seconds": 0, "next_run_at": "2019-08-24T14:15:22Z", "registered": true, "updated_at": "2019-08-24T14:15:22Z" }, "scope": "global", "source": "config", "target_kind": "string", "task": { "description": "string", "owner": { "kind": "human", "ref": "string" }, "title": "string" }, "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" }, "profile_id": "string", "resolved_at": "2019-08-24T14:15:22Z", "source": "string", "status": "string", "workspace_id": "string" }}POST/api/workspaces/{workspace_id}/automation/suggestions/{suggestion_id}/dismiss
Durably dismiss one automation suggestion
httpuds
Path parameters
workspace_id*stringWorkspace id
suggestion_id*stringAutomation suggestion id
Responses
- 200
- OK
- 404
- Workspace or automation suggestion not found
- 409
- Automation suggestion is already resolved
- 500
- Internal server error
- 503
- Automation manager is not configured
Response body
OK
application/json- response
suggestion*curl -X POST 'http://localhost:2123/api/workspaces/string/automation/suggestions/string/dismiss'{ "suggestion": { "created_at": "2019-08-24T14:15:22Z", "dedup_key": "string", "id": "string", "payload": { "agent_name": "string", "created_at": "2019-08-24T14:15:22Z", "enabled": true, "fire_limit": { "max": 0, "window": "string" }, "id": "string", "last_run": { "ended_at": "2019-08-24T14:15:22Z", "id": "string", "skip_reason": "string", "started_at": "2019-08-24T14:15:22Z", "status": "scheduled" }, "loop_target": { "input_mapping": { "property1": "string", "property2": "string" }, "inputs": { "property1": null, "property2": null }, "loop_name": "string", "workspace_id": "string" }, "name": "string", "next_run": "2019-08-24T14:15:22Z", "profile_color": "string", "profile_icon": "string", "profile_id": "string", "profile_name": "string", "prompt": "string", "retry": { "base_delay": "string", "max_retries": 0, "strategy": "none" }, "schedule": { "catch_up_policy": "skip_missed", "expr": "string", "interval": "string", "misfire_grace_seconds": 0, "mode": "cron", "time": "string" }, "scheduler": { "catch_up_policy": "skip_missed", "consecutive_resume_failures": 0, "job_id": "string", "last_fire_id": "string", "last_misfire_at": "2019-08-24T14:15:22Z", "last_run_at": "2019-08-24T14:15:22Z", "last_scheduled_at": "2019-08-24T14:15:22Z", "misfire_count": 0, "misfire_grace_seconds": 0, "next_run_at": "2019-08-24T14:15:22Z", "registered": true, "updated_at": "2019-08-24T14:15:22Z" }, "scope": "global", "source": "config", "target_kind": "string", "task": { "description": "string", "owner": { "kind": "human", "ref": "string" }, "title": "string" }, "updated_at": "2019-08-24T14:15:22Z", "workspace_id": "string" }, "profile_id": "string", "resolved_at": "2019-08-24T14:15:22Z", "source": "string", "status": "string", "workspace_id": "string" }}