Promotion copies a workflow’s deployable configuration from one environment to another. It never copies runtime data. The output is a production draft — you still review it and publish explicitly before live traffic switches over.Documentation Index
Fetch the complete documentation index at: https://docs.retab.com/llms.txt
Use this file to discover all available pages before exploring further.
What is copied, and what is not
| Copied | Not copied |
|---|---|
| Workflow graph and block configuration | Runs, steps, artifacts |
| Published workflow snapshot metadata | Files and stored documents |
Workflow tests (if include_tests: true) | Jobs |
| Environment variable / secret names referenced | Raw secret values |
Webhook definitions (if include_webhook_definitions: true) | Webhook delivery attempts and retries |
| HIL review records | |
| Usage counters and issue analytics |
Endpoint
(organization_id, idempotency_key). Retrying
after a network timeout returns the same promotion result rather than
creating a duplicate production draft.
missing_secrets
If the source workflow references secrets that do not exist in
production, those names are returned in missing_secrets. The
production draft is still created so you can inspect the diff, but
publishing or running it will fail until the missing secrets are
populated.
Add the missing values in the dashboard under the production environment,
then re-list secrets to confirm and publish the draft.
URL warnings
Webhook definitions are scanned before they are copied into production. The response includeswarnings if the production target would inherit
endpoints that look like development URLs:
localhost,127.0.0.1, or0.0.0.0*.ngrok.io,*.ngrok-free.app,*.ngrok.app- Known staging hostnames (any URL containing
staging,dev,test, or matching common review-app domains)
Examples
CLI
--confirm:
curl
Workflow pairing
Promotion uses a stable logical id (workflow_family_id) to associate the
test workflow with its production counterpart. The two workflows have
distinct resource IDs (so cross-environment access still returns 404),
but the dashboard pairs them for diffs and follow-up promotions.
Recommended flow
- Build and iterate on the workflow in the test environment.
- Run workflow tests against the latest test draft.
- Publish the test draft to get a stable
source_version_id. POST /v1/workflows/{workflow_id}/promotions(or use the dashboard Promote action).- Review the production draft: secrets, webhook URLs, tests.
- Publish the production draft when you are ready for live traffic.