Skip to main content
Send a signed test event to a webhook and report the delivery outcome. Use this to confirm your endpoint accepts and verifies Clay deliveries before you wire it to a routine run. For test events, the delivery payload’s data is {}. See the webhooks overview for the delivery payload shape and signature verification.
clay webhooks test <webhookId>

Arguments

ArgumentDescription
webhookIdWebhook id, e.g. the id returned by clay webhooks list. Required.

Output

{
  "id": "wh_abc123",
  "status": "success",
  "statusCode": 200
}
FieldTypeDescription
idstringWebhook id the test event was sent to.
status"success" | "failed"success if the endpoint accepted the delivery (2xx); failed if it rejected the delivery or was unreachable.
statusCodenumberHTTP status code the endpoint returned. Omitted when the endpoint was unreachable.

Errors

CodeExitNotes
auth_forbidden3The API key lacks permission to manage webhooks.
not_found6No webhook with that id.

Examples

clay webhooks test wh_abc123
clay webhooks test wh_abc123 | jq -r '.status'