Skip to main content
The payload for a webhook is a single event referencing a resource that has recently changed. The data in target always represents a nested resource as returned by the regular API endpoints.
{
  "type": "event",
  "id": "347901e1-8b53-42a4-951b-ec546a5078f1",
  "name": "api-key-pair.created",
  "created_at": "2012-12-12T10:53:43+00:00",
  "merchant_account_id": "default",
  "gr4vy_id": "example",
  "environment": "sandbox",
  "target": {
    "type": "api-key-pair",
    "id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
    "thumbprint": "SopiN5XU0IWy8Xe9mwx1ICQbKh4-ydCDPx3LIyArkVI",
    "display_name": "Sandbox",
    "algorithm": "ECDSA",
    "roles": [
      {
        "id": "e94fe431-b9e8-4f38-8509-f0e25be7d5a3",
        "name": "Admin"
      }
    ],
    "merchant_accounts": [
      {
        "id": "default",
        "name": "Default"
      }
    ],
    "enabled": true,
    "created_at": "2024-11-20T16:50:52.603191+00:00",
    "updated_at": "2024-11-20T16:50:52.603191+00:00"
  }
}