VocalDocscontracts 1.65.0

Read a Webhook subscription

GET /v1/webhooks/{webhook_id}

PropertyValue
Operationget_webhook
GroupWebhooks
Scopewebhooks:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: A metadata read; a subscription and its deliveries hold URLs, ids, codes and measurements, never Call content.
Released in1.63.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers one subscription and its revision as the ETag (1.63.0).

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the webhooks:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/webhooks/whk_..." \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Parameters

NameInTypeRequiredDescription
webhook_idpathWebhookIdyesThe id of a Webhook subscription: whk_ and the row's UUIDv7 in 26 Crockford base32 characters. Opaque and safe to log.

Responses

StatusContent typeShapeError codes
200application/jsonWebhookSubscription
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
404application/jsonErrorEnvelopenot_found
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is WebhookSubscription.

FieldTypeRequiredDescription
api_version"v1"yesThe envelope version, fixed at creation.
compliance_policy_firingsbooleanyesThe opt-in to the record form of a compliance-tagged Policy firing, policy.compliance_fired (1.63.0): true delivers each to this subscription; false by default. From 1.64.0, stated: the subscription's event filter narrows it as it narrows every other type, since a filter the customer set holds.
created_atTimestampyes
disabled_atTimestamp or nullyes
disabled_reasonWebhookDisabledReason or nullyesWhy the platform disabled it; null unless disabled.
event_typesarray of EventTypeNameyesThe record types the subscription receives, beside its families.
familiesarray of EventFamilyyesWhole families the subscription receives, beside event_types; at least one of the two is non-empty (1.52.0).
filter_idEventFilterId or nullyesThe event filter that narrows the selection, or null (1.52.0).
idWebhookIdyes
includearray of WebhookIncludeyesOpt-in additions to a post_call delivery; empty for a general one (1.52.0).
last_deliveryWebhookLastDelivery or nullnoThe newest delivery of the subscription, of any kind (1.64.0), so a list shows it without a read per subscription; null when the 30-day log holds none. Absent from an api older than 1.64.0.
object"webhook_subscription"yes
previous_secret_expires_atTimestamp or nullyesWhen the secret before the last rotation stops signing; null outside the window.
purposeWebhookPurposeyes
revisionintegeryesCounts configuration writes; returned as the ETag and required in If-Match.
secret_hintstringyesThe last four characters of the secret.
statusWebhookSubscriptionStatusyes
updated_atTimestampyes
urlstringyesThe https URL deliveries are posted to, checked by the egress guard when saved and at every delivery (egress_denied).