Youniton Docs

Automation & webhooks

Automation rules and runs, outgoing webhook endpoints and inbound webhook endpoints.

#Rules the caller may read — tenant rules (Admins) and project rules (members with the project in scope)

GET/automation-rules
Session (app only)F-AUT-01

Query parameters

filter[scope]string

One of: tenant project

filter[projectKey]string

Pattern ^[A-Z][A-Z0-9]{1,9}$

filter[status]string

One of: active draft enabled paused archived · Default: "active"

filter[module]string

G-HD-13 (XM-1286; owner §230 add. 102): only the rules and flows whose trigger or any step needs the module (the help-desk area's flow list); the counts follow it.

One of: help_desk

filter[templateKey]array of string
qstring

Min length 2 · Max length 100

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200One page of rules, 50 at most.application/json
Errors400403404One problem shape

#Create a rule (blank or from a template) as a draft owned by the caller

POST/automation-rules
Session (app only)Idempotency-KeyF-AUT-01

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The new draft rule.application/json
Errors403404422One problem shape

#A rule with its active definition and draft, projected through the reader's access

GET/automation-rules/{ruleId}
Session (app only)F-AUT-01

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The rule.application/json

#Rename a rule or change its description

PATCH/automation-rules/{ruleId}
Session (app only)If-MatchF-AUT-01

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Changed.application/json
Errors403404409412422One problem shape

#Archive a rule — it stops at once, for good; versions and history stay

DELETE/automation-rules/{ruleId}
Session (app only)If-MatchF-AUT-01

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

204Archived (or already archived).

No body.

Errors403404412One problem shape

#Activate the draft as a new immutable version; binds the caller's access and makes the caller the owner

POST/automation-rules/{ruleId}/activate
Session (app only)Idempotency-KeyIf-MatchF-AUT-05

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200Activated.application/json
Errors403404409412422One problem shape

#Save the rule's draft definition, validated against the editor's own access; answers validation sentences

PUT/automation-rules/{ruleId}/draft
Session (app only)If-MatchF-AUT-02

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Saved; warnings may be present.application/json
Errors403404409412422428One problem shape

#Discard the rule's draft

DELETE/automation-rules/{ruleId}/draft
Session (app only)If-MatchF-AUT-02

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

204Discarded (or there was none).

No body.

Errors403404412One problem shape

#Simulate the draft or the active version on a sample; nothing is written, emitted, sent or started

POST/automation-rules/{ruleId}/dry-run
Session (app only)F-AUT-06

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200The simulation result.application/json
Errors403404409One problem shape

#Enable a paused rule; binds the caller's access to the active version and makes the caller the owner

POST/automation-rules/{ruleId}/enable
Session (app only)Idempotency-KeyIf-MatchF-AUT-05

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200Enabled.application/json
Errors403404409412422One problem shape

#The rule as a flow, with its draft, validation and AI block states

GET/automation-rules/{ruleId}/flow
Session (app only)F-AUT-13

Path parameters

ruleIdrequiredstring (uuid)

Query parameters

versioninteger

One version of the rule in place of the active one, with no draft, through the same projection — the run view paints the boxes of the version that the run used (F-AUT-24 §13; XM-1295, G-AUA-16). An unknown version is 404.

Min 1

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The flow.application/json
Errors403404One problem shape

#Save the flow's draft, validated against the editor's own access; answers validation sentences

PUT/automation-rules/{ruleId}/flow-draft
Session (app only)If-MatchF-AUT-13

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Saved; warnings may be present.application/json
Errors403404409412422428One problem shape

#Walk a flow on a sample; nothing is written, emitted or sent; a test run may call the model

POST/automation-rules/{ruleId}/flow-test
Session (app only)F-AUT-23

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200The walk.application/json
Errors403404409422429One problem shape

#Designate a new owner (Admins); the rule pauses until that member enables it with their own access

PUT/automation-rules/{ruleId}/owner
Session (app only)If-MatchF-AUT-05

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Designated; the rule is paused waiting for its new owner.application/json
Errors403404409412422One problem shape

#Pause an enabled rule

POST/automation-rules/{ruleId}/pause
Session (app only)Idempotency-KeyF-AUT-05

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200Paused (or already paused).application/json
Errors403404409One problem shape

#Relay one content-free signal on the rule's presence channel: which step of the flow the person edits (owner, 23 Nov 2026)

POST/automation-rules/{ruleId}/presence
Session (app only)F-AUT-14

{activity: editing, stepId} or {activity: idle}. An internal reader of the rule; editing needs the right to change it (manage_automation on a project rule, administer on a tenant rule). One signal per person per rule in the platform's relay window (429, limiter: presence-relay); an idle that ends an activity is exempt. Nothing is stored. Receivers get RealtimePresenceFlow (the Pusher event presence, to the others).

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

X-Socket-IDstring

Pattern ^[0-9]{1,20}\.[0-9]{1,20}$

Request body application/jsonrequired

Loading the schema…

Responses

204Relayed, or nothing to end.

No body.

Errors403404422429One problem shape

#The rule's presence channel — who has the flow open (owner, 23 Nov 2026 — real-time; ADR-033)

GET/automation-rules/{ruleId}/realtime
Session (app only)F-AUT-14

A project rule's presence-tenant.{t}.project.{p}.flow.{r}.v{n} (the project's team epoch) or a tenant rule's presence-tenant.{t}.automation.{r}.v{n} (the tenant's team epoch: the tenant channel's epoch plus the tenant's team epoch). The SPA reads it when it opens the flow editor and again on channels.rotated. Internal readers of the rule only; anyone else 404. Presence only: the member's id, name, initials and colour.

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The channel to join.application/json

#Run a schedule rule now (a manual run of the active version; a schema 1 rule or a flow on the schedule trigger)

POST/automation-rules/{ruleId}/run
Session (app only)Idempotency-KeyF-AUT-07

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

202The run is queued.application/json
Errors403404409One problem shape

#A rule's run history, newest first

GET/automation-rules/{ruleId}/runs
Session (app only)F-AUT-07

Path parameters

ruleIdrequiredstring (uuid)

Query parameters

filter[status]array of string
filter[ticketKey]string

Pattern ^[A-Z][A-Z0-9]{1,9}-[1-9][0-9]{0,8}$

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200One page of runs.application/json
Errors400404One problem shape

#The last 50 matching events of the last 30 days that the caller (and, for the active version, the owner) can see

GET/automation-rules/{ruleId}/sample-events
Session (app only)F-AUT-06

Path parameters

ruleIdrequiredstring (uuid)

Query parameters

targetstring

One of: draft active · Default: "draft"

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200Sample events, newest first.application/json
Errors403404One problem shape

#A schedule rule's zone, next five occurrences and the last 50 missed occurrences

GET/automation-rules/{ruleId}/schedule
Session (app only)F-AUT-03

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The schedule view.application/json
Errors404409One problem shape

#Start a flow that has a manual trigger, with typed inputs

POST/automation-rules/{ruleId}/start
Session (app only)Idempotency-KeyF-AUT-15

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

202The run exists and will run.application/json
Errors403404409422One problem shape

#The rule's versions, newest first

GET/automation-rules/{ruleId}/versions
Session (app only)F-AUT-05

Path parameters

ruleIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200Versions (at most 100 per page, newest first).application/json

#One version's definition, projected through the reader's access

GET/automation-rules/{ruleId}/versions/{versionNumber}
Session (app only)F-AUT-05

Path parameters

ruleIdrequiredstring (uuid)
versionNumberrequiredinteger

Min 1

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The version.application/json

#One run with its steps, effects and attempts

GET/automation-runs/{runId}
Session (app only)F-AUT-07

Path parameters

runIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The run.application/json

#End a run that has not ended

POST/automation-runs/{runId}/cancel
Session (app only)Idempotency-KeyF-AUT-24

Path parameters

runIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The run ended.application/json
Errors403404409One problem shape

#Retry a failed, partially failed or refused admitted run — a new attempt of the same run; succeeded steps are never repeated

POST/automation-runs/{runId}/retry
Session (app only)Idempotency-KeyF-AUT-07

Path parameters

runIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

202The attempt is queued.application/json
Errors403404409One problem shape

#The steps of a flow run, in order

GET/automation-runs/{runId}/steps
Session (app only)F-AUT-24

Path parameters

runIdrequiredstring (uuid)

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200One page of the steps.application/json
Errors400403404One problem shape

#The approvals that name the caller as an eligible approver ("My approvals")

GET/automation/approvals
Session (app only)F-AUT-20

Query parameters

filter[state]string

XM-1293 (G-AUA-12): pending (default) = pending and stale, "Waiting for me"; decided = approved, rejected, expired and void.

One of: pending decided

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The approvals, oldest first, with the counts of both segments.application/json
Errors400403404One problem shape

#One approval through the reader's projection

GET/automation/approvals/{approvalId}
Session (app only)F-AUT-20

Path parameters

approvalIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The approval.application/json
Errors403404One problem shape

#Approve or reject the exact proposal

POST/automation/approvals/{approvalId}/decision
Session (app only)Idempotency-KeyF-AUT-20

Path parameters

approvalIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The decision is recorded.application/json
Errors403404409422One problem shape

#The block registry, triggers, actions and limits for a scope and the caller

GET/automation/flow-schema
Session (app only)F-AUT-13

Query parameters

projectKeystring

Omitted for tenant flows.

Pattern ^[A-Z][A-Z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The schema.application/json
Errors403404One problem shape

#The flow templates by goal, with what each one needs

GET/automation/flow-templates
Session (app only)F-AUT-25

Query parameters

projectKeystring

Pattern ^[A-Z][A-Z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The templates.application/json
Errors403404One problem shape

#The tenant's inbound endpoints

GET/automation/inbound-endpoints
Session (app only)F-AUT-22

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The endpoints.application/json
Errors403404One problem shape

#Register an endpoint; the answer holds the secret, once

POST/automation/inbound-endpoints
Session (app only)Idempotency-KeyF-AUT-22

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201Created.application/json
Errors403404409422One problem shape

#One endpoint, without its secret

GET/automation/inbound-endpoints/{endpointId}
Session (app only)F-AUT-22

Path parameters

endpointIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The endpoint.application/json
Errors403404One problem shape

#Change the name, availability, address ranges or status

PATCH/automation/inbound-endpoints/{endpointId}
Session (app only)If-MatchF-AUT-22

Path parameters

endpointIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Changed.application/json
Errors403404412422428One problem shape

#Delete an endpoint that no enabled or paused flow names

DELETE/automation/inbound-endpoints/{endpointId}
Session (app only)If-MatchF-AUT-22

Path parameters

endpointIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

204Deleted.

No body.

Errors403404409412428One problem shape

#The call log of an endpoint

GET/automation/inbound-endpoints/{endpointId}/calls
Session (app only)F-AUT-22

Path parameters

endpointIdrequiredstring (uuid)

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The calls, newest first.application/json
Errors403404One problem shape

#Issue a new secret, shown once; the previous one stays valid for 24 hours

POST/automation/inbound-endpoints/{endpointId}/rotate-secret
Session (app only)Idempotency-KeyF-AUT-22

Path parameters

endpointIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200Rotated.application/json
Errors403404One problem shape

#The registries for the builder — triggers, attributes, operators, actions, placeholders — for a scope and the caller

GET/automation/schema
Session (app only)F-AUT-02

Query parameters

projectKeystring

Omitted for tenant rules.

Pattern ^[A-Z][A-Z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The schema.application/json
Errors403404One problem shape

#The open tasks of the caller

GET/automation/tasks
Session (app only)F-AUT-20

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The tasks, by due time.application/json
Errors403404One problem shape

#One task through the reader's projection

GET/automation/tasks/{taskId}
Session (app only)F-AUT-20

Path parameters

taskIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The task.application/json
Errors403404One problem shape

#Complete a task with its typed values

POST/automation/tasks/{taskId}/complete
Session (app only)Idempotency-KeyF-AUT-20

Path parameters

taskIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The task is done.application/json
Errors403404409422One problem shape

#The template gallery — code-versioned rule definitions with their default instantiation

GET/automation/templates
Session (app only)F-AUT-09

Query parameters

projectKeystring

Pattern ^[A-Z][A-Z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The templates.application/json
Errors403404One problem shape

#The tenant's automation usage against its plan limits — enabled rules, runs today, webhook endpoints

GET/automation/usage
Session (app only)F-AUT-12

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200Usage lines.application/json
Errors403404One problem shape

#The runs that wait, oldest first; tenant-wide for an Admin, one flow for its manager

GET/automation/waiting-runs
Session (app only)F-AUT-24

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

ruleIdstring (uuid)
kindstring

One of: delay until event approval task ai_run sub_flow

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200One page of runs.application/json
Errors400403404One problem shape

#Re-send a failed or suppressed delivery's stored bytes under its original webhook-id, if still allowed

POST/outbound-deliveries/{deliveryId}/redeliver
Session (app only)Idempotency-KeyF-AUT-10

Path parameters

deliveryIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

202Queued for sending.application/json
Errors403404409One problem shape

#The tenant's webhook endpoints (never their secrets)

GET/webhook-endpoints
Session (app only)F-AUT-10

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200Endpoints.application/json
Errors403404One problem shape

#Register an HTTPS endpoint; the answer carries its secret once

POST/webhook-endpoints
Session (app only)Idempotency-KeyF-AUT-10

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201Created; the secret is shown once.application/json
Errors403404409422One problem shape

#Rename, repoint, open or close to project rules, pause, resume or disable an endpoint

PATCH/webhook-endpoints/{endpointId}
Session (app only)If-MatchF-AUT-10

Path parameters

endpointIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Changed.application/json
Errors403404412422One problem shape

#Delete an endpoint no rule names; pending deliveries are suppressed

DELETE/webhook-endpoints/{endpointId}
Session (app only)If-MatchF-AUT-10

Path parameters

endpointIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

204Deleted (or already deleted).

No body.

Errors403404409412One problem shape

#The endpoint's delivery log, newest first

GET/webhook-endpoints/{endpointId}/deliveries
Session (app only)F-AUT-10

Path parameters

endpointIdrequiredstring (uuid)

Query parameters

filter[status]string

One of: pending delivered retrying failed abandoned suppressed

filter[source]string

Keeps the deliveries of one kind of source (CFL-534).

One of: automation_run help_desk_connection

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200One page of deliveries (50).application/json
Errors403404One problem shape

#Rotate the secret; the previous one keeps signing for 24 hours; the new one is shown once

POST/webhook-endpoints/{endpointId}/rotate-secret
Session (app only)Idempotency-KeyF-AUT-10

Path parameters

endpointIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200Rotated.application/json
Errors403404409One problem shape

#Send a signed test event now (never retried)

POST/webhook-endpoints/{endpointId}/test
Session (app only)F-AUT-10

Path parameters

endpointIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The test outcome.application/json
Errors403404429One problem shape

Was this helpful?