Coinbase · Schema

Event

A webhook event tracking resource lifecycle changes

BlockchainCryptocurrencyCustodyExchangeOnrampPaymentsTradingWalletWeb3

Properties

Name Type Description
id string Event identifier
resource string Resource type
type string Event type
api_version string API version that generated the event
created_at string When the event occurred
data object Event data payload containing the affected resource
View JSON Schema on GitHub

JSON Schema

coinbase-event-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Event",
  "title": "Event",
  "type": "object",
  "description": "A webhook event tracking resource lifecycle changes",
  "properties": {
    "id": {
      "type": "string",
      "description": "Event identifier"
    },
    "resource": {
      "type": "string",
      "description": "Resource type",
      "enum": [
        "event"
      ]
    },
    "type": {
      "type": "string",
      "description": "Event type",
      "enum": [
        "charge:created",
        "charge:confirmed",
        "charge:failed",
        "charge:delayed",
        "charge:pending",
        "charge:resolved"
      ]
    },
    "api_version": {
      "type": "string",
      "description": "API version that generated the event"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the event occurred"
    },
    "data": {
      "type": "object",
      "description": "Event data payload containing the affected resource"
    }
  }
}