Skip to main content
Create a webhook endpoint for the authenticated workspace. The response returns the signing secret exactly once — capture it now, because it can never be read again. Use the returned webhook id with clay routines runs start --webhook-id. See the webhooks overview for the delivery payload shape and signature verification.
clay webhooks create <url>

Arguments

ArgumentDescription
urlHTTPS endpoint that will receive signed webhook deliveries. Required.

Output

{
  "id": "wh_abc123",
  "url": "https://example.com/hooks/clay",
  "createdAt": "2026-06-16T17:50:00.000Z",
  "signingSecret": "whsec_..."
}
FieldTypeDescription
idstringWebhook id. Pass it to --webhook-id, clay webhooks test, or clay webhooks delete.
urlstringThe endpoint that receives deliveries.
createdAtstringCreation timestamp.
signingSecretstringHMAC signing secret. Returned exactly once — store it now; it can never be read again.

Errors

CodeExitNotes
validation_error2<url> is not a valid URL.
auth_forbidden3The API key lacks permission to manage webhooks.
not_found6Webhooks are not enabled.

Examples

clay webhooks create https://example.com/hooks/clay
clay webhooks create https://example.com/hooks/clay | jq -r '.signingSecret'