OpenAPI operations
Cancel a task run
const url = 'https://api.hooks.events/v1/tasks/runs/example/cancel';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
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.hooks.events/v1/tasks/runs/example/cancel \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Success
object
Automation task run
object
Resource id
Lifecycle status of a task run
object
Step input after secret redaction
object
object
object
object
Step input after secret redaction
object
object
Step input after secret redaction
object
Epoch milliseconds
Hard deadline in epoch milliseconds
Earliest retry time in epoch milliseconds
object
ISO-8601 timestamp
object
Project secret name, never the secret value
object
ISO-8601 timestamp
object
ISO-8601 timestamp
object
ISO-8601 timestamp
object
ISO-8601 timestamp
ISO-8601 timestamp
ISO-8601 timestamp
ISO-8601 timestamp
Automation task definition
object
Trigger entries, evaluated in order; the first entry whose source, event and filters match starts the run. Matching is workspace-wide on source plus event type, not per endpoint. Omitted on schedule-only tasks.
object
Source adapter id, e.g. github, or * to match any source
Event type, e.g. issues.labeled, or * to match any event type
AND-ed condition strings evaluated against the source payload, e.g. {{event.label.name}} == 'agent'
Optional per-key rate limit applied after the entry matches
object
Template rendered per event, e.g. {{event.issue.number}}
Maximum admitted runs per key per window
Throttle window in minutes
Cron schedule. A task needs an event trigger, a schedule, or both; each tick starts one run, and missed ticks collapse into a single late run.
object
Five-field cron: minute hour day-of-month month day-of-week
IANA timezone, e.g. Asia/Tokyo
object
object
Issue label that starts the run
object
object
object
object
0 disables the watchdog
object
Step id, stable within the task and addressable in templates
Registered step handler, e.g. http.request
Step input after secret redaction
object
object
Additional attempts after the first one
Actions that run after every main step succeeds
object
Step id, stable within the task and addressable in templates
Registered step handler, e.g. http.request
Step input after secret redaction
object
object
Additional attempts after the first one
Cleanup actions for failed, timed-out or cancelled runs
object
Step id, stable within the task and addressable in templates
Registered step handler, e.g. http.request
Step input after secret redaction
object
object
Additional attempts after the first one
Triggering event after secret redaction
object
Delivery vocabulary view of status
Example
{ "run": { "status": "queued", "steps": [ { "status": "pending" } ], "afterDeliverSteps": [ { "status": "pending" } ], "failureSteps": [ { "status": "pending" } ], "phase": "main", "events": [ { "type": "status" } ], "agentSession": { "kind": "slack", "status": "processing", "steps": [ { "status": "running" } ], "approvals": [ { "decision": "approve" } ], "decisions": [ { "decision": "approve" } ] } }}Validation error
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Per-field validation details for VALIDATION_ERROR
object
Body or query field that failed validation
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example", "issues": [ { "path": "example", "message": "example" } ] }}Missing or invalid credentials
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Per-field validation details for VALIDATION_ERROR
object
Body or query field that failed validation
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example", "issues": [ { "path": "example", "message": "example" } ] }}The credential lacks the required scope, or the workspace is not writable
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Per-field validation details for VALIDATION_ERROR
object
Body or query field that failed validation
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example", "issues": [ { "path": "example", "message": "example" } ] }}Resource not found
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Per-field validation details for VALIDATION_ERROR
object
Body or query field that failed validation
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example", "issues": [ { "path": "example", "message": "example" } ] }}Rate limited
object
object
Machine-readable error code
Request id, also echoed in x-request-id
Per-field validation details for VALIDATION_ERROR
object
Body or query field that failed validation
Example generated
{ "error": { "code": "example", "message": "example", "requestId": "example", "issues": [ { "path": "example", "message": "example" } ] }}Headers
Section titled “Headers”Requests allowed per window
Seconds until the window resets
Seconds to wait before retrying. Absent when the rejection has no retry time (for example the Free lifetime quota).
Request allowance for the workspace’s plan
Requests left in the allowance after this request