Skip to main content
POST
/
api
/
v1
/
agents
/
{slug}
/
run
Trigger an immediate agent run
curl --request POST \
  --url https://breadbox.example.com/api/v1/agents/{slug}/run \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "prompt_prefix": "<string>",
  "prompt": "<string>"
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.breadbox.sh/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Breadbox API key with format bb_<base62>. Carries either read_only or full_access scope. Write endpoints (and a handful of sensitive reads — /api-keys, /users/{user_id}/login) require full_access; endpoints that require it are flagged in their description.

Path Parameters

slug
string
required

Body

application/json
prompt_prefix
string

Optional per-run prefix prepended to the agent's prompt; cron runs leave it unset.

Maximum string length: 2000
prompt
string

Optional full-prompt override for this fire only. Takes precedence over prompt_prefix when both are set.

Maximum string length: 40000

Response

Run completed (may be in error state — see status and error_message).

The response is of type object.