Skip to main content

API access: search and call

Covers workflows, runs, the builder, components, branches and pull requests, error codes, vault entry summaries, workspace settings, and more. Browse the full hosted OpenAPI spec.

Find an operation

search finds operations from a task in plain words. Results include each operation’s name, description, arguments, and execution hints.
search

Call an operation

Use the operation name and arguments returned by search.
call: list workflows
call: rename a component
Parameters for workflows.list:

Runs: run and observe

run takes a workflow_id, the workflow’s inputs and a workspace_id. It returns at once:
Pass the handle to observe exactly as returned.
  • Without after, observe returns the run’s current state at once.
  • With after, the value from the last result, it waits until the run changes, then says what changed.
  • If nothing changes before the wait ends, call observe again with the same handle and after. Repeating an observe call is always safe.
A result while the run is going:
Each observe call waits at most as long as your client allows a silent tool call: about 50 seconds in Claude Code, 200 seconds in Claude, and 45 seconds in other clients. Pass timeout_seconds to wait less.

Building: build and observe

build sends one message to the Builder Agent, which works in a live browser and edits the workflow. Starting a conversation opens a browser for the builder, which can take about a minute. build returns the conversation_id, a handle and an after value. Follow the turn with observe. A builder turn’s status is one of: Once the builder has saved the workflow, observe returns its workflow_id. Use it with run.

Answering questions

Use each field’s name from question.fields as the key in responses. The keys depend on the question; the field’s type determines the value. For an error-code question with a field named invoice_not_found, accept the builder’s suggestion:
build: accept a suggested error code
Use remove_confirmed when the builder asks you to confirm removing an error-code assignment. For a question with fields named invoice_month and include_paid:
build: answer a question
You can also send a message while a question is open. Omit responses to continue without submitting the form’s answers:
build: continue with a message
Pass either message or responses, not both. The builder may ask again if the missing answer is needed to continue.

Stopping and ending

  • To stop a running turn, call the operation builder.interrupt with { "conversationId": "<conversation_id>" }. The conversation stays open for another message.
  • When you’re done, call builder.end the same way. It closes the conversation and its browser. Keep the workflow_id first: observe does not return it after the conversation ends, and edits the builder has not saved are lost.
If a conversation was cleared, observe returns ended with a successor_conversation_id. Send the next message to that conversation.