Skip to content
Listener.comDevelopers

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.

List automation blocks and templates

GET/v1/automation-blocks

Every 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

  • kindstringnullable
    Only blocks of this kind: trigger, logic, action, ai or send.
    One oftriggerlogicactionaisend
  • include_templatesboolean
    Also return the ready-made automations (templates).

    Default true

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.

Returns

200

OK

  • objectstringrequired
  • configuredboolean
    False when this server cannot reach the Listener app (see note).

    Default true

  • kindsarray of objects
    Block groups in palette order: {id, label}.
  • blocksarray 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 config uses the field keys exactly as listed.
  • operatorsarray of objects
    Operators an If / else block accepts: {value, label, needs_value}.
  • duration_unitsarray of strings
    Units a Wait block's duration accepts.
  • templatesarray of objects
    Ready-made automations: {id, name, description, category, graph}.
  • notestringnullable

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error

List automations

GET/v1/automations

The 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

  • statusstringnullable
    Only automations that are draft, on or off.
    One ofdraftonoff
  • include_graphboolean
    Include each automation's steps and edges (without canvas positions). false keeps the list short.

    Default true

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.

Returns

200

OK

  • objectstringrequired
  • urlstring (uri)required
  • dataarray of objectsrequired
    Show child attributesHide child attributes
  • has_morebooleanrequired
  • next_cursorstringrequirednullable
    Pass as cursor to get the next page; null on the last page.
  • metaobjectrequired
    The result's non-list fields (window, coverage, freshness, totals, note …).
    Show child attributesHide child attributes

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error

Create an automation

POST/v1/automations

Create 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: graph or template_id (otherwise 400 parameter_missing/parameter_invalid names the parameter).
  • Send "dry_run": true to get {"object": "dry_run", "would_write": …} without writing anything.

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
  • Idempotency-Keystringmax 255 chars
    Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.

Request body

application/json
  • namestringnullable
    What the person will see in the list, e.g. "First-week recap" (80 characters).
  • descriptionstringnullable
    One line on what it does (500 characters).
  • graphobjectnullable
    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. type and the keys of config come from GET /v1/automation-blocks. Edges out of an If / else step carry branch 'yes' or 'no'. position is optional (the app lays new steps out).
  • template_idstringnullable
    Start from a ready-made automation instead of a graph: a template id from GET /v1/automation-blocks.
  • statusstring
    draft (default) saves it for the person to review; on starts it right away when nothing is missing.
    One ofdraftonoff

    Default "draft"

  • dry_runboolean
    true returns exactly what would be written without writing anything (the API's test mode).

    Default false

Returns

200 · 201

Dry run: what would be created (nothing was written).

  • objectstringrequired
  • resourcestringrequired
    What the request writes (campaign, cluster, report, webhook_endpoint …).
  • would_writeobjectrequired
    The fields that would be written, in the resource's snake_case shape.
  • actionstringnullable
    create, update, delete, or the endpoint's action (roll_secret, send_test, retry …).
  • idstringnullable
    The resource id (null when a dry run creates something new).
  • detailsobject
    Endpoint-specific results (ids added, rows matched, estimates …), snake_case.
  • warningsarray of strings
  • urlsobject
    Show child attributesHide child attributes
  • okboolean
    false when the write would be refused upstream (see error).
  • errorstringnullable
  • requires_confirmboolean
    Present (true) when the real request needs confirm: true (?confirm=true for DELETE): destructive or metered actions.
  • notestring
    What the real request needs, when requires_confirm is set.

Created.

  • objectstringrequired
  • resourcestringrequired
    What the request writes (campaign, cluster, report, webhook_endpoint …).
  • idstringrequirednullable
    The resource id (null when a dry run creates something new).
  • writtenobjectrequired
    The fields written, snake_case; server timestamps as ISO 8601 UTC.
  • actionstringnullable
    create, update, delete, or the endpoint's action (roll_secret, send_test, retry …).
  • detailsobject
    Endpoint-specific results (ids added, rows matched, estimates …), snake_case.
  • warningsarray of strings
  • urlsobject
    Show child attributesHide child attributes
  • okboolean
    false when an upstream refused the write; nothing changed (see error).
  • errorstringnullable

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error

Draft an automation from a sentence

POST/v1/automations/draft

Draft 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

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
  • Idempotency-Keystringmax 255 chars
    Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.

Request body

application/json
  • promptstringrequired
    What the automation should do, in a sentence: "a week after each episode, build its cluster and email me a recap".

Returns

200

OK

  • objectstringrequired
  • configuredboolean

    Default true

  • namestringnullable
  • descriptionstringnullable
  • graphobjectnullable
    The drafted graph: pass it to POST /v1/automations as is, or edit it first.
  • issuesobject
    {errors, warnings}: what a person still has to fill in.
  • savedboolean
    Always false: a draft is never saved.

    Default false

  • notestringnullable

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error

Retrieve an automation

GET/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

  • automation_idstringrequired
    The automation's id from GET /v1/automations.

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.

Returns

200

OK

  • objectstringrequired
  • configuredboolean

    Default true

  • automationobjectnullable
    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).
  • notestringnullable

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error

Update an automation

PATCH/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": true to get {"object": "dry_run", "would_write": …} without writing anything.

Path parameters

  • automation_idstringrequired
    The automation's id from GET /v1/automations.

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
  • Idempotency-Keystringmax 255 chars
    Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.

Request body

application/json
  • namestringnullable
    New name (80 characters).
  • descriptionstringnullable
    New description (500 characters).
  • graphobjectnullable
    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. type and the keys of config come from GET /v1/automation-blocks. Edges out of an If / else step carry branch 'yes' or 'no'. position is optional (the app lays new steps out).
  • dry_runboolean
    true returns exactly what would be written without writing anything (the API's test mode).

    Default false

Returns

200

OK

One of:

WriteResult
DryRun

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error

Delete an automation

DELETE/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=true to get {"object": "dry_run", "would_write": …} without writing anything.
  • Requires ?confirm=true; without it the API answers 409 confirmation_required with the exact preview.

Path parameters

  • automation_idstringrequired
    The automation's id from GET /v1/automations.

Query parameters

  • dry_runboolean
    true returns exactly what would be written without writing anything (the API's test mode).

    Default false

  • confirmboolean
    Must be true to apply destructive or metered changes; without it the API answers 409 with a preview.

    Default false

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
  • Idempotency-Keystringmax 255 chars
    Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.

Returns

200

OK

One of:

WriteResult
DryRun

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error

Turn an automation on or off

PUT/v1/automations/{automation_id}/status

Turn 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": true to get {"object": "dry_run", "would_write": …} without writing anything.

Path parameters

  • automation_idstringrequired
    The automation's id from GET /v1/automations.

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
  • Idempotency-Keystringmax 255 chars
    Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.

Request body

application/json
  • statusstringrequired
    on: it starts whenever its trigger fires. off: it stops starting new runs.
    One ofonoff
  • dry_runboolean
    true returns exactly what would be written without writing anything (the API's test mode).

    Default false

Returns

200

OK

One of:

WriteResult
DryRun

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error

Run an automation

POST/v1/automations/{automation_id}/run

Try 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": true to get {"object": "dry_run", "would_write": …} without writing anything.

Path parameters

  • automation_idstringrequired
    The automation's id from GET /v1/automations.

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
  • Idempotency-Keystringmax 255 chars
    Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.

Request body

application/json
  • modestring
    preview (default): nothing is changed or sent, each step reports what it would do. live: every step really happens once.
    One ofpreviewlive

    Default "preview"

  • episode_idstringnullable
    Run it for this episode instead of the newest one (episode triggers).
  • show_idstringnullable
    Run it for this show.
  • cluster_idstringnullable
    Run it for this cluster (cluster triggers).
  • campaign_idstringnullable
    Run it for this campaign (campaign triggers).
  • payloadobjectnullable
    The data a web request trigger would receive.
  • dry_runboolean
    true returns exactly what would be written without writing anything (the API's test mode).

    Default false

  • confirmboolean
    Must be true to apply destructive or metered changes; without it the API answers 409 with a preview.

    Default false

Returns

200

OK

One of:

WriteResult
DryRun

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error

List an automation's runs

GET/v1/automations/{automation_id}/runs

One 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

  • automation_idstringrequirednullable
    Only this automation's runs. Omit for the newest runs across the workspace.

Query parameters

  • limitinteger1 to 100
    Maximum number of items to return.

    Default 20

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.

Returns

200

OK

  • objectstringrequired
  • urlstring (uri)required
  • dataarray of objectsrequired
    Show child attributesHide child attributes
  • has_morebooleanrequired
  • next_cursorstringrequirednullable
    Pass as cursor to get the next page; null on the last page.
  • metaobjectrequired
    The result's non-list fields (window, coverage, freshness, totals, note …).
    Show child attributesHide child attributes

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error

List automation runs across the workspace

GET/v1/automation-runs

The 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

  • limitinteger1 to 100
    Maximum number of items to return.

    Default 20

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.

Returns

200

OK

  • objectstringrequired
  • urlstring (uri)required
  • dataarray of objectsrequired
    Show child attributesHide child attributes
  • has_morebooleanrequired
  • next_cursorstringrequirednullable
    Pass as cursor to get the next page; null on the last page.
  • metaobjectrequired
    The result's non-list fields (window, coverage, freshness, totals, note …).
    Show child attributesHide child attributes

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error

Retrieve an automation run

GET/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

  • run_idstringrequired
    The run's id from GET /v1/automations/{automation_id}/runs or POST /v1/automations/{automation_id}/run.

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.

Returns

200

OK

  • objectstringrequired
  • configuredboolean

    Default true

  • runobjectnullable
    The run with steps keyed by step id: {status, note?, preview?, link?, error?, branch?, wake_at?}.
  • notestringnullable

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found429rate_limited500internal_error

Cancel an automation run

POST/v1/automation-runs/{run_id}/cancel

Stop 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": true to get {"object": "dry_run", "would_write": …} without writing anything.

Path parameters

  • run_idstringrequired
    The run's id from GET /v1/automations/{automation_id}/runs.

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns 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/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
  • Idempotency-Keystringmax 255 chars
    Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.

Request body

application/json
  • dry_runboolean
    true returns exactly what would be written without writing anything (the API's test mode).

    Default false

Returns

200

OK

One of:

WriteResult
DryRun

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error