Skip to main content
POST
Call automations.bind_step

Authorizations

Authorization
string
header
required

An API key minted at Settings › API & MCP. Send it as Authorization: Bearer <key>. A key carries its holder's own permissions, resolved on every call — revoking a membership closes the key's reach immediately. Keep it in an environment variable (GOOSY_API_KEY), never in a committed file.

Headers

x-request-id
string

Your own id for this request, echoed back and recorded on the audit trail. 1–128 characters from A–Z a–z 0–9 . _ : -, starting with a letter or digit; anything else is replaced by a generated id.

Maximum string length: 128
Idempotency-Key
string
required

Your key for this write: send the same key when you retry and the first result comes back instead of a second action. Keys are honoured for at least 24 hours. 1–200 visible ASCII characters. Replaces the idempotency_key body field, which still works until 2026-12-31; this action needs a key on one of the two, and the header is the one to send.

Maximum string length: 200

Body

application/json
board_id
string
required

The automation's board id (automations.list gives each automation's board_id). Needed over the API: a call has no open board to fall back on.

Minimum string length: 1
version
integer
required

The draft version you last read or wrote.

step_key
string
required

The key of the step to set up, as the sketch names it.

Required string length: 1 - 64
implementation
string

What an action step runs: its catalogue key, exactly as the catalogue spells it — contact.add_tag, contact.remove_tag, email.send, notify.member (telling the workspace's own people), opportunity.move_stage, contact.update_field, data.query, data.write, automation.ask, automation.call, platform.research (finding a list of things, or an answer, across the web) — never a provider's own word for it (crm.add_tag is not a key); an unknown key is refused with the keys that exist. Leave it off for a think, wait, run, set, branch or code step: its settings say what it does.

Required string length: 1 - 200
params
object

The settings to change, by the names the step already uses (the read shows them: a table write's columns are under values). They merge onto the step's current settings, so pass only what changes (a new implementation starts afresh); pass a setting as null to remove it; pass the settings themselves ({ "tag": "Cold" }), never wrapped in another params. A new column or field is keyed by the member's own word for it, the word before 'column' or 'field' in the ask, never a name taken from the data or the step ('save the guest total as a headcount column' is values.headcount, not values.guests or values.total); an existing column the ask does not name is found with data.describe on the step's table_id. A setting that names a record takes the id of the one the member names, never the step's own id again or a guess. A notify.member step sent by email also needs its subject and fromAddress. A think step takes { "instruction": "…", "inputs": { "": "{{ steps.. }}" }, "schema": }: the schema is the answer's shape ({ "type": "string", "enum": ["yes", "no"] } for a decision; an object naming every field later steps read), and later steps read it at steps..answer. It reads the run only through its inputs, and may name a "slot": "writing.standard", "writing.plus", "writing.max" (the strongest writing last). To answer once for each item of a list, add "items": "{{ steps.. }}" (at most 20) and read each as {{ item }} in the inputs; the answers are steps..items[i].answer. When the work is many items and nobody waits on the answer (a nightly summary, sorting a list of replies), add "timing": "batch" and say so: the items go to the provider's batch rate, about half the usual price where the step's model has one, and the answers come back within hours rather than seconds. A wait step takes one of: { "for": "P2D" } (how long, an ISO 8601 duration, at most 90 days), and with it "at": { "time": "09:00", "zone": "contact" or "workspace" } to go on at the next 9:00 after that in the contact's own time zone or the workspace's ("wait 2 days, then at 9 AM their time"); { "until": "2026-11-01T09:00" } (a date-time in the workspace's zone, or one {{ … }} that gives an instant); { "event": { "type": "tag_added", "tag": "…" } or { "type": "reply_received" }, "timeout": "P3D" } (until that happens to the run's contact, at most 30 days); { "event": { "type": "email_opened" or "email_clicked", "email": "" }, "timeout": "P1D" } (until the contact opens that email or clicks a link in it, at most 30 days; the member's "Email 1" or "the first email" is the email step in that place in the run order); { "poll": { "tool": "automation.call" or "connector..", "params": { … }, "until": "{{ json.status == 'done' }}", "every": "PT5M" }, "timeout": "PT1H" }; or { "callback": { "request": { … }, "expect": [blocked] }, "timeout": "PT15M" }. An open or click wait carries on when its time is up, and a branch after it routes on whether that email was opened or clicked; any other wait that times out fails as wait_timeout, and the step's on_error decides what happens next. A run step takes { "workflow": "", "mode": "wait" or "start", "input": { … } }: wait holds this run until that one answers, read at steps..; start sets it going and carries on. An ask step takes { "target": { "kind": "member" } or { "kind": "role", "role": "admin" } or { "kind": "contact" }, "question": "…", "answerKind": "approve_decline" or "choice" or "text", "options": ["…"], "timeout": "P3D" }: the timeout is required (ask the member for it), options only for choice, and a contact answers in text. Its answer is steps..outcome: approved, declined, answered or timed_out. A research step finds things across the web and the workspace's own material, as a member's research does: implementation: "platform.research" with { "question": "…", "deliverable": "table" } ("table" for a list of things found, such as shops, people or suppliers, each row with where it was found; "report" for a write-up; "both"). Its table is at steps..table_id and its outcome at steps..outcome (found, nothing_found or refused). A set step's settings are the fields it gives later steps ({ "total": "{{ … }}", "label": "…" }), read at steps... A branch step takes { "arms": [ { "to": "", "if": "{{ size(steps.look_up.rows) > 0 }}" }, … ] }: one arm per edge out of it. An arm that routes on an email this automation sent takes "email" in place of "if": { "to": "", "email": { "step": "<the email step's key>", "is": "opened" } }, where is is opened, clicked, not_opened or not_clicked. An arm that routes on whether the contact has a tag takes "tag" in place of "if": { "to": "", "tag": { "name": "", "is": "lacks" } }, where is is has or lacks, read when the run reaches the branch; to skip people who already have a tag, the lacks arm leads on and no other arm is needed. The first arm whose test holds is taken, and the one arm with no test, or the one left out, is taken when none holds. A code step takes { "language": "javascript" or "python", "instruction": "", "inputs": { "": "{{ … }}" }, "output_schema": [blocked] }; binding it writes the code, which reads only its inputs and has no network. Any setting, at any depth, reads the run's data with {{ … }} around one CEL expression. A value that is exactly one {{ … }} keeps its type (a number, a list, a map); with words around it, it is text. What an expression reads: trigger (what started the run: a webhook's body at trigger.payload., an app event's fields at trigger.event.payload.); steps. (an earlier step's answer: a table read's rows at steps..rows, each { row_id, values: { : … } }; a think's at steps..answer); json (the step just before); item and index (inside a loop); run.id and run.contactId; contact.consent.email and contact.consent.sms. Operators: + - * / %, == != < <= > >=, && || !, cond ? a : b, x in list. Functions, each called by its bare name: size(x). For text: upper(s), lower(s), trim(s), replace(s, from, to), substring(s, start, end), split(s, sep), join(list, sep), s.contains(t), s.startsWith(t), test(s, re2), extract(s, re2), format("%s of %s", [a, b]). For numbers: round(x), round(x, 2), floor(x), ceil(x), abs(x), sum(list), avg(list), min(list), max(list), int(x), double(x), string(x). For lists: list.map(x, expr), list.filter(x, cond), list.exists(x, cond), first(list), last(list), sort(list), sortBy(list, "field"), unique(list), slice(list, from, to). For maps: has(m.field), get(m, "a.b", default), pick(m, keys), merge(a, b), keys(m), values(m). For dates: now(), dateAdd(d, "P1D"), dateDiff(a, b, "day"), dateFormat(d, "MMM d, h:mm a", "America/Chicago") (yyyy MM dd HH mm, and a zone; UTC when none), startOf(d, "week"). A value that may be missing: coalesce(trigger.payload.nickname, "friend") gives a default, and coalesce(trigger.payload.company, omit) leaves that key out. Examples: "Booking {{ trigger.payload.booking_id }} for {{ trigger.payload.guests }} guests"; { "open": "{{ size(steps.read_tasks.rows) }}" }; "{{ join(steps.read_tasks.rows.map(r, r.values.title), ', ') }}". An expression that cannot be read, names a step that is not before this one, or gives the wrong kind of value is refused at save with its path and its fix. [blocked]

loop
object

A loop step: "items" (one {{ … }} that gives the list; the body reads {{ item }} and {{ index }}) or "repeat" ({ "max": 5 } times, or { "until": "{{ json.done }}", "max": 10 } over each round's answer), and its "body": an action, its params, and "on_error" ("continue" skips a failed item).

idempotency_key
string

Deprecated on REST: send the Idempotency-Key header instead. Still accepted until 2026-12-31; if both are sent they must match.

Required string length: 1 - 200
workspace
string

Which workspace to run in — its slug. Omit to use your default. With more than one reachable workspace and no default, the call is refused and the choices are listed.

Minimum string length: 1

Response

The call was admitted and dispatched. ok says whether the tool succeeded — a refusal the tool itself produced is still a 200, exactly as it is a successful JSON-RPC result over MCP.

The tool ran and answered.

ok
boolean
required
board_id
string
required
version
integer
required
name
string
required
status
string
required
Allowed value: "draft"
steps
object[]
required
trigger
object
required
unbound_steps
string[]
required

The keys of the steps not set up yet.

step
object
required

The step as it is now set up.

replayed
boolean
required

True when this is the first result of an earlier call with the same idempotency_key, returned without writing anything again.

workspace
string
required

The slug of the workspace this call ran in.

working_in
object
required

Which workspace this call ran in, and how that was decided. Present on every workspace-scoped result.

revision
integer

The draft's revision, which moves with every change while the version stays: pass it back with steps to rewrite the draft.

Required range: x >= 0
edges
object[]

Which step leads to which, when drawn: a Branch's arms, each with its when_label. Absent runs the steps in order.

waits_without_length
string

Set when a wait step's words state no length: which waits, and to set a sensible length and say what was chosen.

added_without_action
string

Set when an add op drew an action step with nothing set up: which steps, and to write it as an email or set what it does before saying it was added.

branch_arms_not_set
string

Set when a branch has paths with no rule yet: which, and to set each with automations.bind_step before saying the branch is done.