Skip to main content
Create a webhook destination in the dashboard. Select Production, Staging, or Sandbox, then choose the job events to receive. Each destination receives events only from its environment. Job events contain id, type, api_version, created, livemode, is_staging, and data.job. The embedded job has the same shape as a REST job response, including result_schema_version: 2 for new jobs. A synthetic test event contains data.message instead of a job.

Verify the signature

Read Carhub-Signature, formatted as t=<epoch>,v1=<hex signature>. Compute HMAC-SHA256 over <timestamp>.<raw request body> with the destination’s secret.
Compare signatures in constant time. Reject timestamps more than five minutes before or after your server’s current time. Verify the raw bytes before parsing JSON, because reserializing the body can change the signature.
The destination secret appears only at creation. Store it securely. An API key is not a webhook signing secret.

Acknowledge and deduplicate

Use the payload’s id as the deduplication key. Retries carry the same event ID. After verification, durably record the event and return any 2xx within 10 seconds. Process slow work after acknowledgment. CarHub retries failed deliveries. Handle duplicates without repeating downstream actions, and retrieve the job if your application needs its latest status.
Staging events carry livemode: true and is_staging: true. Sandbox events carry livemode: false. Synthetic events preserve their destination’s environment.