Skip to main content
Verify each webhook using the secret returned when you register the endpoint. Keep the secret on your server. Check the signature and timestamp before accepting an event, then deduplicate deliveries using Ground-Event-Id.

Delivery and headers

Ground sends POST requests to your registered url with:
  • Content-Type: application/json
  • Ground-Event-Id
  • Ground-Event-Type
  • Ground-Signature
The body is the JSON event payload. Portfolio Wallet events use event and resource fields; gtoken deliveries use { id, type, createdAt, data }. The signature scheme is the same.

Signature format

Ground signs the timestamp and raw request body using HMAC-SHA256:
  • Header: Ground-Signature: t=<unix_timestamp>,v1=<hex_hmac>
  • HMAC: v1 = HMAC_SHA256(key = secret, message = t + "." + rawBody)
  • rawBody is the exact request body string (verify before JSON.parse)

Node / Express verification example

Node