Three credentials reach these endpoints, and the split is not the same
everywhere.
Session: a signed-in person in the app.
API key: an org key, sk-urai-.... A project-scoped key reaches only
workflows in its project.
Webhook secret: whsec-urai-..., sent as a bearer token or in
x-urai-webhook-secret.
Method and path
Credential
Purpose
GET /api/workflow-definitions
Session
List the type: workflow definitions you can register from.
POST /api/workflows
Session
Register a definition with its envelope.
GET /api/workflows
Session
List registered workflows.
GET /api/workflows/{id}
Session
Read one workflow.
PATCH /api/workflows/{id}
Session
Edit the envelope. Omitted fields stay as they are.
DELETE /api/workflows/{id}
Session
Disable the workflow. The run history stays.
GET /api/workflows/{id}/triggers
Session
List triggers.
POST /api/workflows/{id}/triggers
Session
Create a trigger. Returns the secret one time.
POST /api/workflows/{id}/triggers/{trigger_id}/rotate
Session
Issue a new secret and stop the old one.
DELETE /api/workflows/{id}/triggers/{trigger_id}
Session
Delete a trigger that never ran, otherwise disable it.
GET /api/workflows/{id}/runs
Session
Run history for one workflow.
POST /api/workflows/{id}/runs
Session or API key
Start a run. No trigger, so no default arguments.
GET /api/workflows/runs/{run_id}
Session or API key
Run status and result.
GET /api/workflows/runs/{run_id}/approvals
Session or API key
What the run waits on, or waited on.
POST /api/workflows/approvals/{approval_id}/decision
Session or API key
Approve or reject, resuming the run.
POST /api/workflows/runs/{run_id}/cancel
Session
Stop further ticks. A step already running is not interrupted.
POST /api/workflows/hooks/{hook_token}
Webhook secret
Start a run. Returns 202 and a status_url.
GET /api/workflows/hooks/{hook_token}/runs/{run_id}
Webhook secret
Poll a run this trigger started.
Registering, editing, managing triggers, and cancelling need a person. An org
API key cannot do them. A webhook secret starts runs and polls them, and reaches
nothing else.