Private Beta. New organizations are enabled by default. An organization administrator must create a scoped API key in Brightalk Settings before requests can authenticate. This documentation and the OpenAPI contract define the available scope and limits.
Prerequisites
- A server-side
bt_live_key with the exact pairautomations:runandautomations:read. - An active Automation visible to the organization and one existing or inline contact reference.
- A unique, nonsecret
Idempotency-Keyfor the logical run. - An understanding that the Automation—not the API request—owns its agent, waits, retry rules, and branching.
Select an active Automation
List summaries withautomations:read, then select an item whose status is active.
Save JavaScript samples as .mjs or run them in an ESM project. Their top-level await requires ESM, and Node 18 or later provides the built-in fetch they use.
Start the run
Becauseinput_fields is empty, omit input as the canonical sample does, or send {} only.
input_fields declaration returned by the API permits input, and then only the exactly named fields may be sent.
Expected response
The API returns202 Accepted. Save the Automation run API resource id.
Poll and cancel
Polling needs
automations:read; cancellation needs automations:run. Cancellation accepts an optional Idempotency-Key and remains best-effort for a step already executing.