Skip to main content

crewship routine webhooks

Webhook commands are nested under routine (also available through the pipeline alias):
Webhooks are token-addressed triggers. An external sender POSTs the request body to /api/v1/webhooks/{token}; the body is delivered as the routine’s event input. A configured HMAC secret requires the sender to provide X-Crewship-Signature: sha256=<hex HMAC of the raw body>.

Subcommands

list

--slug filters locally to webhooks targeting that routine. --json is a deprecated alias for --format json. Machine output redacts the token and does not include the signing secret; use url when the public URL is needed.

create

The default human response prints the webhook ID, public URL, and rate limit. If an HMAC secret was configured, it is printed once; save it immediately. With --format json|yaml|ndjson, the create response includes the full API row and public_url, including the secret returned by the server.

url and delete

url accepts only the exact webhook ID and has one flag, --base-url, which overrides the server URL. delete accepts --yes to skip its interactive confirmation prompt. Both commands require authentication and a workspace. All webhook commands honor the global -f/--format where the command emits a machine-readable response; list additionally supports table|json|yaml|ndjson and --json.