Skip to main content
POST
Verify endpoint ownership

Authorizations

X-API-Key
string
header
required

Path Parameters

endpoint_id
string<shortuuid>
required

UUID of the webhook endpoint. Returned as the id field on every endpoint response.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$

Response

OK

A webhook endpoint as read from the API.

Returned by GET /webhooks/endpoints/{endpoint_id}/, the list view, and the rotate-secret/test endpoints. signing_secret is masked except on the initial create response and on the rotate-secret response — see :data:_SIGNING_SECRET_READ_DESC.

id
string<shortuuid>
required

UUID identifier of the endpoint. Use this in path params and the deliveries-list endpoint_id filter.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
url
string
required

Target URL the webhook payload will be POSTed to. HTTPS only, in every environment — there is no setting, environment variable or local-development exemption that accepts http://. The URL must not carry credentials (https://user:pass@host/), and its hostname must resolve exclusively to globally routable addresses: private, loopback, link-local, multicast, reserved and cloud-metadata ranges are rejected for both IPv4 and IPv6, at registration and again before every delivery. A rejection comes back as 422 with the reason on url in field_errors. Maximum 2048 characters. The request body is the raw event JSON; the signature lives in the signature header (see signing_secret for the verification recipe).

Maximum string length: 2048
signing_secret
string
required

HMAC-SHA256 signing secret for verifying the X-Closient-Signature header on inbound deliveries. Returned in full only on creation and rotation; subsequent GET/LIST responses return a masked form (<first-8-chars>...). Verification recipe: compute HMAC-SHA256(secret, f"{timestamp}.{raw_body}") where timestamp is the t= portion of the header, then hmac.compare_digest against the v1= portion. Reject if the timestamp is older than 5 minutes (replay protection). During a 24-hour rotation grace period the header carries an additional v1old= signature using the prior secret — accept either.

is_active
boolean
required

Whether this endpoint should receive deliveries. false pauses delivery without deleting historical records or losing the signing secret — useful while debugging a customer-side outage. New events are not enqueued for inactive endpoints. On create, true is a request to activate, not a guarantee: the endpoint is created in pending_verification and becomes active only once your URL answers the ownership handshake (see state). Setting true on an unverified endpoint re-runs that handshake rather than switching it on.

api_version
enum<string>
required

Envelope version this endpoint receives. Pinned when the endpoint is created and never moved by Closient — shipping a new envelope version does not change what an existing endpoint gets, so an integration can keep running untouched indefinitely. PATCH this field when your parser is ready for a newer shape. This field also selects the signing scheme, so an endpoint is never half-migrated. v1 is the pre-catalog envelope (event_type / version / event_id / timestamp / data); 2026-07-01 is CloudEvents-shaped (type / specversion / id / time / source / data) and adds the cursor used for replay-on-reconnect; both are signed with the legacy X-Closient-Signature header. cloudevents-1.0 is the current version — a spec-conformant CloudEvents 1.0 structured-mode envelope with GDTI / record-version / jurisdiction routing extension attributes, signed with Standard Webhooks (webhook-id / webhook-timestamp / webhook-signature).

Available options:
v1,
2026-07-01,
cloudevents-1.0
state
enum<string>
required

Derived lifecycle state. active mirrors is_active=true; pending_verification is a newly registered (or newly re-pointed) endpoint that has not yet answered the ownership handshake and therefore receives nothing — retry it with POST .../verify/; paused is a self-serve, resumable pause (POST .../pause/ / .../resume/); disabled covers both a deletion and an automatic disable after a sustained 100% delivery failure rate — neither is resumable through the resume action. Read-only: set indirectly via is_active or the pause/resume/verify actions, never written directly.

Available options:
active,
pending_verification,
paused,
disabled
created_at
string<date-time>
required

Server-side ISO 8601 timestamp (UTC) of when the resource was first persisted.

updated_at
string<date-time>
required

Server-side ISO 8601 timestamp (UTC) of the resource's last modification.

metadata
Metadata · object

Developer-attached key/value data attached to this object. Up to 50 keys; key max 40 chars, value max 500 chars.

description
string
default:""

Optional human-readable label for this endpoint. Surfaced in the brand portal's webhooks list alongside the URL — useful when a single account has separate staging / production endpoints. Maximum 255 characters. Has no effect on delivery.

Maximum string length: 255
event_types
string[]

Event types this endpoint subscribes to, drawn from the catalog at GET /webhooks/event-types/. Two forms are accepted: a full wire value (recall.opened) or a domain prefix (recall), which subscribes to every event in that domain including ones added after you subscribe — the recommended form for safety-critical domains. Values outside the catalog are rejected with 422 rather than silently accepted, so a typo cannot leave you subscribed to nothing. An empty list means every event type (fail-open); use is_active=false to pause delivery instead.

verified_at
string<date-time> | null

When this destination last passed the CloudEvents abuse-protection handshake. null means it never has, and the endpoint cannot become active. Reset to null whenever url changes — consent is per destination, not per subscription.

verification_error
string
default:""

Why the last verification attempt failed, verbatim (e.g. a missing WebHook-Allowed-Origin header, a non-2xx answer, or a destination that failed address policy). Empty string when the endpoint is verified.

Maximum string length: 255
allowed_rate
integer | null

Requests per minute this destination stated it accepts, from the handshake's WebHook-Allowed-Rate header. null means it stated no limit. Recorded for transparency; delivery pacing is not yet enforced against it.

Required range: x >= 1
gtins
string[]

Deliver only events that reference at least one of these GTINs. Accepts GTIN-8/12/13/14 in any digit-count and normalizes to GTIN-14 (apps.core.types.gtin.GTIN). Backed by an indexed lookup table, so this scales to very large lists (100,000+ GTINs) without a per-event table scan. Empty list = no restriction (all GTINs).

company_prefixes
string[]

Deliver only events whose product GTIN's company-prefix segment is one of these GS1 Company Prefixes (4-12 digits). Empty list = no restriction (all prefixes). Note: matched against the GS1-13/14 numbering alignment; a GTIN whose native form is UPC-A (GTIN-12) may not match its equivalent U.P.C. Company Prefix here — use the gtins filter for exact control in that case.

jurisdictions
string[]

Deliver only events tagged with one of these ISO 3166-1 alpha-2 jurisdiction codes (e.g. US, CA). Empty list = no restriction (all jurisdictions).

gpc_codes
string[]

Deliver only events for products in one of these 8-digit GS1 Global Product Classification brick codes. Empty list = no restriction (all categories).

lifecycle_statuses
enum<string>[]

Deliver only recall events whose recall is currently in one of these lifecycle statuses. Empty list = no restriction (all statuses).

A recall's lifecycle status, for the lifecycle_statuses filter dimension (C-4812).

Mirrors :class:apps.compliance.models.RecallEvent.LifecycleStatus.

Available options:
PUBLISHED,
AMENDED,
CLOSED,
RETRACTED