Skip to main content
WEBHOOK
See Webhooks for signature verification, retries, and replay.

Headers

User-Agent
string
required

Identifies the Context.dev webhook sender.

Example:

"Context.dev-Webhooks/1.0"

X-Context-Event
enum<string>
required

Event type. Matches event in the request body.

Available options:
change.detected
X-Context-Id
string
required

Unique event ID, also sent as id in the request body. It stays the same across retries, so use it to deduplicate.

Example:

"evt_123"

X-Context-Delivery-Id
string

ID of this delivery, for checking its status or retrying it with the /webhooks/deliveries endpoints.

Example:

"whd_0123456789abcdef0123456789abcdef"

X-Context-Attempt
integer

Attempt number, starting at 1.

Required range: x >= 1
X-Context-Signature
string

Signature in the form t=<unix seconds>,v1=<hex>. v1 is the HMAC-SHA256 of <t>.<raw request body>, keyed with the webhook secret; compare it in constant time and reject stale timestamps.

Example:

"t=1783620012,v1=087d98aada1e39f9d24d65951f51e672da12b2f9ea1c02c7c8c5ef254f5d4068"

Body

application/json

Payload sent when a monitor detects a change. data.change is the full change record, as returned by GET /monitors/changes/{change_id}.

id
string
required

Unique event ID. Matches the X-Context-Id header and stays the same across retries.

Example:

"evt_123"

event
enum<string>
required

Event type. Matches the X-Context-Event header.

Available options:
change.detected
created_at
string<date-time>
required

When the event was created.

Example:

"2026-07-09T18:00:12.000Z"

data
object
required

Response

2XX

Webhook accepted.