palbaseDocs

Palbase ai · API

POST/ai/workflows/runs/{run_id}/complete

Complete or fail a workflow run

Mark a durable workflow run completed, failed, or canceled and emit the corresponding platform event.

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

Path

run_idstring · requiredWorkflow run identifier

Request body

status"completed" | "failed" | "canceled" · optional
outputobject · optional
errorstring · optional
curl
curl -X POST "https://<your-ref>.palbase.studio/ai/workflows/runs/<run_id>/complete" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"status":"completed","output":{},"error":"string"}'

Responses

200Workflow run finalized

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 CompleteWorkflowRun of ai's contract.