FetchRelay API docs
Run a published customer workflow from your app. Your backend sends a server-side API key and deployment ID. FetchRelay returns a run ID, status, result, and event history.
Start a run
POST /v1/runs accepts a deployment ID and JSON input. Send an idempotency key when your backend may retry.
Get the result
GET /v1/runs/{id} returns the current status, output, errors, usage, and ordered events. Poll until the run completes or needs review.
Approve changes
A workflow can pause before a connected tool writes to another system. Use POST /v1/runs/{id}/decision to approve or reject the pending action.