API Reference
Barndoor Automations API
The REST API for running blueprints and managing the tools they call. Every request is authenticated with a bearer token and scoped to your workspace.
Authentication
Pass your key as a bearer token: Authorization: Bearer $DIAPHORA_API_KEY
Or, with an Ory session token from signing in, send it in its own header instead: X-Session-Token: $DIAPHORA_SESSION_TOKEN
Run plans
Run a stored plan and get the result back in one response, or stream it as it runs.
Run a plan
/router/plan/{planId}/_runExecute a stored plan by ID and return the full result once the run completes. Pass runtime parameters, auth overrides, and inline resources in the request body.
Path parameters
Request body · application/json
Responses
Schema execute_response_body is defined in a shared spec and isn't inlined here.
Stream a plan run
/router/plan/{planId}/_streamExecute a stored plan and stream progress and output as Server-Sent Events. Use this for long-running plans where you want step-by-step updates as each session starts and finishes.
Path parameters
Request body · application/json
Responses
Plans
Find the plans you can run, and the parameters each one takes.
List plans
/store/plansList the plans you can run. Each plan includes its parameters, so you can see what to pass when you run it.
Query parameters
Responses
Results
Look up the results of past plan runs.
List results
/store/resultsList the results of past plan runs. Filter by plan, status, label, search text or a time window, and page with limit and offset.
Query parameters
Responses