Start an agent run

Starts a workspace-scoped agent conversation for the specified Bubble app and immediately queues the initial prompt.

POST /api/public/v1/agents
Bearer token

Body

· CreateAgentRequest
required application/json

Configuration for the agent run to create.

appId string · min length: 1 required

Bubble app ID for the workspace project this request targets.

prompt string · min length: 1 required

User prompt to send to the model.

model ChatModelId · enum required

Model identifier to use for the run.

values

  • claude-fable-5
  • claude-fable-5.1
  • claude-opus-5
  • claude-sonnet-5
  • openai-gpt-6-astra
  • openai-gpt-5.6-sol
reasoningEffort string · enum

Requested reasoning effort for the selected model.

values

  • none
  • low
  • medium
  • high
serviceTier string · enum

Requested speed for the selected model. Fast is available for supported Codex and Cursor models.

values

  • default
  • fast
permission string · enum

Whether the run can only inspect the app or is also allowed to make edits.

values

  • read_only
  • allow_edits
permittedBranches array of string · max items: 50

Branches the run is allowed to access when branch restrictions apply.

completionWebhookUrl string · uri

Webhook URL Buildprint will call when the run completes.

Responses