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.

24 events covered

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

Signature header
vgs-signature

Format: t=<unix seconds>,v0=<hex>

Scheme
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.

Docs ↗
Signed material
{t}.{raw body}

t from the vgs-signature header, a literal dot, then the body as sent. The version tag is v0, not v1.

How events are identified
event field in the JSON body
Body format
JSON

Content type: application/json.

Send timestamp
vgs-signature

Reject deliveries older than 1 minutes.

Envelope
description, details, event, fingerprint, grouping, id, integration_id, occurrence, org_id, producer, scope, summary, tenant, timestamp
Agent skill
npx skills add hookdeck/webhook-skills --skill vgs-webhooks

Verify VGS (Very Good Security) webhooks →

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 vgs gives 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

  1. 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 →
  2. 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 →
  3. Grouped events undercount

    proxy.upstream_error and alias.reveal_failed are sent only for the 1st, 10th, 100th and so on in a 5-minute window. Read occurrence rather than counting deliveries.

    Handle grouped events →
  4. A non-200 success counts as a failure

    VGS describes failed attempts as non-200 responses, so a 201 or 204 may be retried. Return exactly 200 once you've stored the notification.

    Respond correctly →

VGS (Very Good Security) webhook best practices

  • Return 200 quickly. 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 an id, 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 occurrence on grouped events. Counting deliveries of proxy.upstream_error undercounts, 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

cmp_au_card.updated · .expired · .closed · .non_participating +5

9 9
user

user.permissions_updated · .permissions_deleted · .logged_in · .password_updated +2

6 0
route

route.created · .updated · .delete

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.

Not affiliated with VGS (Very Good Security). Facts are compiled from public sources and linked inline.