VGS (Very Good Security) webhooks
VGS webhooks are signed notifications that VGS sends to your HTTPS endpoint when something happens in your organisation, such as a vault route changing, a user logging in, the proxy hitting an upstream error or a card being updated.
These pages cover the notifications VGS sends you. To pass another service's webhook through a VGS proxy route so that sensitive values are redacted, see VGS's webhook example.
How VGS (Very Good Security) webhooks work
Notifications push changes to you, so your security and platform teams don't have to poll the VGS Dashboard. Each endpoint subscribes to the events and sources it needs, and VGS makes up to 8 delivery attempts. Frequent errors are grouped: proxy.upstream_error and alias.reveal_failed send only the 1st, 10th, 100th, 1000th and so on in a 5-minute window, and the occurrence field holds the count.
The event name is in the body's event field. VGS's examples for its Card Management Platform (CMP) events show a JSON POST with a details object alongside id, timestamp, scope, grouping and occurrence. For organisation events such as route.updated, VGS lists the details fields but publishes no example, so capture a real delivery before parsing strictly. cmp_network_token.updated covers every network token change, so read details.state. VGS's V1 API docs show the Account Updater events without the cmp_ prefix, and the docs describe no payload version.
Key facts
HMAC-SHA256 Docs discrepancy
VGS's prose calls the signature a sha256 hash of the raw request body, but its Python sample computes an HMAC-SHA256 over t, a dot and the body. Follow the sample.
{t}.{raw body} t from the vgs-signature header, a literal dot, then the body as sent. The version tag is v0, not v1.
vgs-signature Reject deliveries older than 1 minutes.
description, details, event, fingerprint, grouping, id, integration_id, occurrence, org_id, producer, scope, summary, tenant, timestamp Setting up VGS (Very Good Security) webhooks
- In the VGS Dashboard, go to Organization Settings > Notifications and click Create new. Enter an HTTPS URL, then choose events and the tenants, users or organisations they apply to, each marked Sandbox or Live. Notifications need an activated organisation, and the page tells you to contact support if yours isn't enabled.
- VGS needs a public HTTPS URL, so test through a tunnel:
hookdeck listen 3000 vgsgives you one and forwards requests to your machine. - Trigger a real event by changing a route in a sandbox vault. For Account Updater, VGS documents Mastercard mock numbers that fire notifications.
- VGS can replay notifications manually. Give it the start and end times, the event types, and whether to replay only failed deliveries or all of them.
Delivery behaviour
not documented VGS doesn't state how long it waits for a response Retries 8 attempts immediately, then 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours and 10 hours After retries cancelled the delivery stops after 8 non-200 responses; VGS can replay it manually Ordering not documented VGS states no guarantee, and a retried event can arrive after a newer one Known failure modes
From Hookdeck's VGS (Very Good Security) guide →-
Retries fail a 60-second timestamp check
VGS resends a retry with its original timestamp, so the 60-second check in its sample rejects a retry that comes later. Widen the window to cover the schedule, or drop the check and deduplicate instead.
Keep retries verifiable → -
A disabled endpoint misses events
VGS doesn't retry notifications generated while an endpoint is disabled. Keep the endpoint enabled during maintenance and hold events on your side.
Plan for maintenance → -
Grouped events undercount
Handle grouped events →proxy.upstream_errorandalias.reveal_failedare sent only for the 1st, 10th, 100th and so on in a 5-minute window. Readoccurrencerather than counting deliveries. -
A non-200 success counts as a failure
VGS describes failed attempts as non-200 responses, so a
Respond correctly →201or204may be retried. Return exactly200once you've stored the notification.
VGS (Very Good Security) webhook best practices
- Return
200quickly. VGS's delivery rules count any non-200 response as a failure and don't state a timeout. Verify, store the body and respond, then work in the background. - Deduplicate on
id. VGS's examples carry anid, but the docs don't say a retry keeps it, so confirm that on a real retry before you depend on it. - Fetch the card after a card event. VGS suggests using the card ID in each Account Updater notification to read the latest card data, which also protects you from late deliveries.
- Subscribe only to what you process. Each notification takes its own events and sources, so keep sandbox and live apart, and send login and permission events to alerting.
- Read
occurrenceon grouped events. Counting deliveries ofproxy.upstream_errorundercounts, because VGS sends only the 1st, 10th, 100th and so on in each 5-minute window. - Capture organisation events before you parse them.
VGS publishes no example body for events such as
route.updated, so store a real delivery and write your parser against it.
Common VGS (Very Good Security) webhook events
Routes and vaults
route.updated | Vault route is changed |
route.delete | Vault route is deleted |
vault.created | New vault is created in the organization |
Users and access
user.logged_in | User logs in |
user.permissions_updated | User's permissions change |
user.mfa_deleted | User removes multi-factor authentication |
Proxy errors and cards
proxy.upstream_error | Proxy gets an upstream error, grouped per 5-minute window |
alias.reveal_failed | Revealing an alias fails, grouped per 5-minute window |
cmp_au_card.updated | Card number or other account details change |
cmp_network_token.updated | Network token changes state or its card metadata updates |
Events by resource
| Resource | Events | Payloads |
|---|---|---|
cmp_au_card | 9 | 9 |
user | 6 | 0 |
route | 3 | 0 |
1 more resource, including Other VGS (Very Good Security) events. All 24 events →
In this hub
| Webhook events → | Every covered VGS (Very Good Security) event, with payloads where the registry has them. |
| MCP events → | How an agent subscribes to VGS (Very Good Security) events as MCP events. |
| Verify signatures → | Signature facts, verification code and common failures. |
| Production guide → | Production problems, such as timeouts and retries, and how to handle them. |
| Agent skill → | Install the webhook skill in your coding agent. npx skills add hookdeck/webhook-skills --skill vgs-webhooks |
Keep a failing handler from using up VGS's 8 attempts.
Event Gateway verifies the signature, accepts each notification as it arrives, queues it and retries to your service on your schedule, so a long outage on your side doesn't get a delivery cancelled.