Automations
Workflows that start on a trigger (a new episode, a schedule, a campaign ending, a web request) and then wait, branch, build clusters, read numbers, ask Listener's AI or send email, Slack messages and web requests.
- GETList automation blocks and templates
- GETList automations
- POSTCreate an automation
- POSTDraft an automation from a sentence
- GETRetrieve an automation
- PATCHUpdate an automation
- DELETEDelete an automation
- PUTTurn an automation on or off
- POSTRun an automation
- GETList an automation's runs
- GETList automation runs across the workspace
- GETRetrieve an automation run
- POSTCancel an automation run
List automation blocks and templates
/v1/automation-blocksEvery block an automation can be built from, plus the ready-made templates. Read this before creating or changing an automation: a step's config uses these field keys and option values exactly.
Each block has a type (trigger.episode_published, logic.wait, send.email …), a kind (trigger, logic, action, ai, send), needs / needs_any (what an earlier step must have provided), provides, branches (yes / no for an If / else block), fields (key, label, type, required, default, options, templated, help, show_when) and variables (the {{keys}} later templated text fields may use). templates are complete graphs to pass as template_id or to copy and edit. Filter blocks with kind.
Query parameters
- Only blocks of this kind: trigger, logic, action, ai or send.
kindstringOne oftriggerlogicactionaisend - Also return the ready-made automations (templates).
include_templatesbooleanDefault
true
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
objectstringrequired- False when this server cannot reach the Listener app (see note).
configuredbooleanDefault
true - Block groups in palette order: {id, label}.
kindsarray of objects - Every block: {type, kind, label, description, needs, needs_any, provides, branches, fields: [{key, label, type, required, default?, options?, templated?, help?, show_when?, min?, max?}], variables: [{key, label}]}. A step's
blocksarray of objectsconfiguses the field keys exactly as listed. - Operators an If / else block accepts: {value, label, needs_value}.
operatorsarray of objects - Units a Wait block's duration accepts.
duration_unitsarray of strings - Ready-made automations: {id, name, description, category, graph}.
templatesarray of objects notestring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
List automations
/v1/automationsThe workspace's automations, most recently changed first: status (draft, on, off), trigger, a one-line summary, issues (errors must be fixed before it can be turned on), can_turn_on, run_count, last_run, next_run_at, paused_reason and url (opens the visual builder). graph lists the steps and edges without canvas positions; send include_graph=false to leave it out. Automations are for network workspaces: a single-show workspace gets an empty list with a note in meta.
Query parameters
- Only automations that are draft, on or off.
statusstringOne ofdraftonoff - Include each automation's steps and edges (without canvas positions). false keeps the list short.
include_graphbooleanDefault
true
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
objectstringrequiredurlstring (uri)requireddataarray of objectsrequiredShow child attributesHide child attributes
has_morebooleanrequired- Pass as
next_cursorstringrequiredcursorto get the next page; null on the last page. - The result's non-list fields (window, coverage, freshness, totals, note …).
metaobjectrequiredShow child attributesHide child attributes
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
Create an automation
/v1/automationsCreate an automation from a graph or a template_id (send one of them). It is saved as a draft unless status is on; asking for on while steps still need details saves a draft and says so in warnings.
A graph is {nodes: [{id, type, config}], edges: [{source, target, branch?}]}: exactly one trigger node, steps connected in order, branch (yes / no) on edges out of an If / else step, and position optional (the app lays steps out). Block types and config keys come from GET /v1/automation-blocks; text fields marked templated accept {{variables}} provided by earlier steps. For example, a week after each episode, build its cluster and email a recap: trigger.episode_published → logic.wait ({"duration": {"amount": 7, "unit": "days"}, "anchor": "episode.publishedAt"}) → action.build_cluster → send.email (to, subject, body).
details.automation is the saved automation: issues.errors lists what a person still has to fix (node_id, field, message) and url opens it in the visual builder. A dry run checks the graph's structure only.
- Send at least one of:
graphortemplate_id(otherwise 400parameter_missing/parameter_invalidnames the parameter). - Send
"dry_run": trueto get{"object": "dry_run", "would_write": …}without writing anything.
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Request body
application/json- What the person will see in the list, e.g. "First-week recap" (80 characters).
namestring - One line on what it does (500 characters).
descriptionstring - The steps: {nodes: [{id, type, config}], edges: [{source, target, branch?}]}. Exactly one node is the trigger (type 'trigger.…'); every other node is reached by an edge.
graphobjecttypeand the keys ofconfigcome fromGET /v1/automation-blocks. Edges out of an If / else step carry branch 'yes' or 'no'.positionis optional (the app lays new steps out). - Start from a ready-made automation instead of a graph: a template id from
template_idstringGET /v1/automation-blocks. - draft (default) saves it for the person to review; on starts it right away when nothing is missing.
statusstringOne ofdraftonoffDefault
"draft" - true returns exactly what would be written without writing anything (the API's test mode).
dry_runbooleanDefault
false
Returns
200 · 201Dry run: what would be created (nothing was written).
objectstringrequired- What the request writes (campaign, cluster, report, webhook_endpoint …).
resourcestringrequired - The fields that would be written, in the resource's snake_case shape.
would_writeobjectrequired - create, update, delete, or the endpoint's action (roll_secret, send_test, retry …).
actionstring - The resource id (null when a dry run creates something new).
idstring - Endpoint-specific results (ids added, rows matched, estimates …), snake_case.
detailsobject warningsarray of stringsurlsobjectShow child attributesHide child attributes
- false when the write would be refused upstream (see error).
okboolean errorstring- Present (true) when the real request needs
requires_confirmbooleanconfirm: true(?confirm=truefor DELETE): destructive or metered actions. - What the real request needs, when requires_confirm is set.
notestring
Created.
objectstringrequired- What the request writes (campaign, cluster, report, webhook_endpoint …).
resourcestringrequired - The resource id (null when a dry run creates something new).
idstringrequired - The fields written, snake_case; server timestamps as ISO 8601 UTC.
writtenobjectrequired - create, update, delete, or the endpoint's action (roll_secret, send_test, retry …).
actionstring - Endpoint-specific results (ids added, rows matched, estimates …), snake_case.
detailsobject warningsarray of stringsurlsobjectShow child attributesHide child attributes
- false when an upstream refused the write; nothing changed (see error).
okboolean errorstring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error
Draft an automation from a sentence
/v1/automations/draftDraft an automation from one sentence (prompt) with Listener's AI: name, description, graph and issues (what a person still has to fill in, such as who to email). Nothing is saved; send the graph to POST /v1/automations to keep it. Takes up to two minutes.
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Request body
application/json- What the automation should do, in a sentence: "a week after each episode, build its cluster and email me a recap".
promptstringrequired
Returns
200OK
objectstringrequiredconfiguredbooleanDefault
truenamestringdescriptionstring- The drafted graph: pass it to
graphobjectPOST /v1/automationsas is, or edit it first. - {errors, warnings}: what a person still has to fill in.
issuesobject - Always false: a draft is never saved.
savedbooleanDefault
false notestring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error
Retrieve an automation
/v1/automations/{automation_id}One automation with its full graph (every step's type, config and canvas position, and the edges), issues, can_turn_on, run counters, last_run, next_run_at and url (opens the visual builder). An automation started by a web request also has hook_url, the private link other tools post to: treat it like a password. graph is returned exactly as stored, so it can be edited and sent back with PATCH.
Path parameters
- The automation's id from
automation_idstringrequiredGET /v1/automations.
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
objectstringrequiredconfiguredbooleanDefault
true- The automation with its full graph (step positions included), issues, can_turn_on, hook_url (web request triggers only) and url (opens the visual builder).
automationobject notestring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
Update an automation
/v1/automations/{automation_id}Change an automation's name, description or graph. Only the fields you send change; graph replaces the whole graph, so send every step back (keep each step's id and position). details.automation.issues.errors lists what still needs fixing. Changing the steps of an automation that is on applies to its next run and answers 400 parameter_invalid with issues when the new graph has errors.
- Send
"dry_run": trueto get{"object": "dry_run", "would_write": …}without writing anything.
Path parameters
- The automation's id from
automation_idstringrequiredGET /v1/automations.
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Request body
application/json- New name (80 characters).
namestring - New description (500 characters).
descriptionstring - The whole new graph; it replaces the stored one. The steps: {nodes: [{id, type, config}], edges: [{source, target, branch?}]}. Exactly one node is the trigger (type 'trigger.…'); every other node is reached by an edge.
graphobjecttypeand the keys ofconfigcome fromGET /v1/automation-blocks. Edges out of an If / else step carry branch 'yes' or 'no'.positionis optional (the app lays new steps out). - true returns exactly what would be written without writing anything (the API's test mode).
dry_runbooleanDefault
false
Returns
200OK
One of:
WriteResult
DryRun
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error
Delete an automation
/v1/automations/{automation_id}Permanently delete an automation: it stops running and cannot be restored. Past runs stay listed. To pause one instead, turn it off with PUT /v1/automations/{automation_id}/status.
- Send
?dry_run=trueto get{"object": "dry_run", "would_write": …}without writing anything. - Requires
?confirm=true; without it the API answers 409confirmation_requiredwith the exactpreview.
Path parameters
- The automation's id from
automation_idstringrequiredGET /v1/automations.
Query parameters
- true returns exactly what would be written without writing anything (the API's test mode).
dry_runbooleanDefault
false - Must be true to apply destructive or metered changes; without it the API answers 409 with a preview.
confirmbooleanDefault
false
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Returns
200OK
One of:
WriteResult
DryRun
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error
Turn an automation on or off
/v1/automations/{automation_id}/statusTurn an automation on (it then starts on its own whenever its trigger fires, and really sends its emails and messages) or off (no new runs; a run already waiting continues unless cancelled). Turning on an automation whose steps still need details answers 400 parameter_invalid with issues.errors (node_id, field, message). A dry run reports whether it could be turned on.
- Send
"dry_run": trueto get{"object": "dry_run", "would_write": …}without writing anything.
Path parameters
- The automation's id from
automation_idstringrequiredGET /v1/automations.
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Request body
application/json- on: it starts whenever its trigger fires. off: it stops starting new runs.
statusstringrequiredOne ofonoff - true returns exactly what would be written without writing anything (the API's test mode).
dry_runbooleanDefault
false
Returns
200OK
One of:
WriteResult
DryRun
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error
Run an automation
/v1/automations/{automation_id}/runTry an automation now with real data (the newest episode or a current campaign unless episode_id, show_id, cluster_id, campaign_id or payload say otherwise) and return the run in details.run, with what each step did under steps.
mode preview (the default) changes and sends nothing: every step reports what it would do, and send steps show the message they would deliver. mode live really does each step once (emails, Slack messages and web requests go out, clusters are built) and needs "confirm": true. Wait steps are skipped in both modes. The request can take up to about four minutes; if it times out, look for the run under GET /v1/automations/{automation_id}/runs before sending it again.
- Send
"dry_run": trueto get{"object": "dry_run", "would_write": …}without writing anything.
Path parameters
- The automation's id from
automation_idstringrequiredGET /v1/automations.
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Request body
application/json- preview (default): nothing is changed or sent, each step reports what it would do. live: every step really happens once.
modestringOne ofpreviewliveDefault
"preview" - Run it for this episode instead of the newest one (episode triggers).
episode_idstring - Run it for this show.
show_idstring - Run it for this cluster (cluster triggers).
cluster_idstring - Run it for this campaign (campaign triggers).
campaign_idstring - The data a web request trigger would receive.
payloadobject - true returns exactly what would be written without writing anything (the API's test mode).
dry_runbooleanDefault
false - Must be true to apply destructive or metered changes; without it the API answers 409 with a preview.
confirmbooleanDefault
false
Returns
200OK
One of:
WriteResult
DryRun
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error
List an automation's runs
/v1/automations/{automation_id}/runsOne automation's recent runs, newest first: status (running, waiting, succeeded, failed, cancelled), mode (preview or live), test (started by hand or through the API rather than by the trigger), trigger, step_counts, wake_at (a waiting run sits in a Wait step until then), started_at, finished_at and error. Up to 100 with limit.
Path parameters
- Only this automation's runs. Omit for the newest runs across the workspace.
automation_idstringrequired
Query parameters
- Maximum number of items to return.
limitintegerDefault
20
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
objectstringrequiredurlstring (uri)requireddataarray of objectsrequiredShow child attributesHide child attributes
has_morebooleanrequired- Pass as
next_cursorstringrequiredcursorto get the next page; null on the last page. - The result's non-list fields (window, coverage, freshness, totals, note …).
metaobjectrequiredShow child attributesHide child attributes
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
List automation runs across the workspace
/v1/automation-runsThe newest automation runs across the whole workspace, newest first, in the same shape as GET /v1/automations/{automation_id}/runs. Up to 100 with limit.
Query parameters
- Maximum number of items to return.
limitintegerDefault
20
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
objectstringrequiredurlstring (uri)requireddataarray of objectsrequiredShow child attributesHide child attributes
has_morebooleanrequired- Pass as
next_cursorstringrequiredcursorto get the next page; null on the last page. - The result's non-list fields (window, coverage, freshness, totals, note …).
metaobjectrequiredShow child attributesHide child attributes
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
Retrieve an automation run
/v1/automation-runs/{run_id}One run with what every step did: steps is keyed by step id, each with status, a plain-language note, the preview of what it would send (preview runs), a link to what it made, the branch an If / else took, wake_at for a Wait and error when it failed. Step ids match the automation's graph.nodes.
Path parameters
- The run's id from
run_idstringrequiredGET /v1/automations/{automation_id}/runsorPOST /v1/automations/{automation_id}/run.
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
Returns
200OK
objectstringrequiredconfiguredbooleanDefault
true- The run with
runobjectstepskeyed by step id: {status, note?, preview?, link?, error?, branch?, wake_at?}. notestring
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error
Cancel an automation run
/v1/automation-runs/{run_id}/cancelStop a run that is still running or waiting. Steps that already happened are not undone; the rest never run. The automation itself is unchanged.
- Send
"dry_run": trueto get{"object": "dry_run", "would_write": …}without writing anything.
Path parameters
- The run's id from
run_idstringrequiredGET /v1/automations/{automation_id}/runs.
Headers
- Run this request inside one of the network's own subnetworks: its id, handle or name, as
X-Listener-WorkspacestringGET /v1/subnetworksreturns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own.GET /v1/mesays which one the request ran in (note). Omit the header, or sendnetwork, for the whole network. A value that is not one of this network's subnetworks answers 400parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is noworkspacequery parameter on/v1. Webhook endpoints, events and connections always belong to the credential's own workspace. - Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.
Idempotency-Keystring
Request body
application/json- true returns exactly what would be written without writing anything (the API's test mode).
dry_runbooleanDefault
false
Returns
200OK
One of:
WriteResult
DryRun
Errors
400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error