palbaseDocs

Palbase ai · API

POST/ai/workflows/runs

Start a durable workflow run

Create a durable workflow run with optional hierarchical root_budget_usd enforcement.

Called by your server, with the project's secret key.

Request body

workflow_namestring · required
root_run_idstring · optional
parent_run_idstring · optional
depthinteger · optional
inputobject · optional
metadataobject · optional
root_budget_usdnumber · optional
max_depthinteger · optional
max_concurrent_childreninteger · optional
max_total_stepsinteger · optional
curl
curl -X POST "https://<your-ref>.palbase.studio/ai/workflows/runs" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"workflow_name":"string"}'

Responses

201Workflow run started

400The request is malformed, or names what this module does not offer (the error names which)

401No valid credential

403A publishable key or a user's session: everything here is the project's server's, called with the secret key

404No such response, job or provider in this project

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation CreateWorkflowRun of ai's contract.