The Workflows API lets external systems invoke a workflow by name and pass it parameters. Use this when the work you want to start doesn’t map cleanly to a single object event, for example a quarterly sweep of vendors matching a filter or an ad-hoc campaign. For workflows that are bound to object events (Documentation Index
Fetch the complete documentation index at: https://docs.coverbase.com/llms.txt
Use this file to discover all available pages before exploring further.
vendor.created, assessment.completed, etc.), prefer creating or updating the underlying object directly. See Triggering workflows from external systems for the three patterns.
Run a workflow
POST /v1/workflows/{workflow_name}/runworkflow_name path parameter resolves to a CbWorkflowDefinition by its name field.
Path parameters
The unique name of the workflow as configured in the dashboard. This resolves to a
CbWorkflowDefinition by name.If your workflow names contain special characters that require URL-encoding, consider using
POST /v1/workflows/runs with workflow_definition_id in the request body as an alternative.Request body
Workflow-specific input parameters. Schema is defined per workflow during configuration. See the workflow’s detail page in the dashboard for its accepted input shape.
Headers
Bearer <api-key>Optional. If the same key is sent twice within 24 hours, the second call returns the original response without starting a new run.
Example request
Example response
Response fields
Unique identifier for this run. Use it to poll status or correlate downstream webhooks.
The ID of the workflow definition that was run.
The name of the workflow that was invoked.
Initial status. Typically
running. Other values include pending, paused, completed, failed, cancelled.Unix timestamp when the run started.
Echoes the input parameters sent in the request.
Get a workflow run
GET /v1/workflows/runs/{workflow_run_id}Example request
cURL
Example response
Response fields
The definition ID that was run.
Current status of the run:
pending, running, paused, completed, failed, or cancelled.Unix timestamp when the run started.
Unix timestamp when the run finished, if applicable.
Array of checkpoint name strings reached during execution. Derived from the
CbWorkflowRunStep records for this run.Workflow output data, if the workflow produces output. Structure varies by workflow definition.
Subscribe to run progress
Polling is supported, but the recommended pattern is to subscribe to webhooks. The relevant events:| Event | When it fires |
|---|---|
workflow.checkpoint | A workflow reaches a configured checkpoint. |
workflow.completed | A workflow run finishes successfully. |
workflow.failed | A workflow run terminates with an error. |
workflow_run_id so you can correlate it back to the originating run.
Error responses
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | The input object does not match the workflow’s configured schema. |
| 404 | workflow_not_found | No workflow exists with the provided name for this org. |
| 409 | idempotency_conflict | A run already exists for this idempotency key. The original response is returned. |
| 429 | rate_limited | Per-org workflow concurrency or rate limits exceeded. Inspect retry_after. |