0BitDeveloper Docs
0Bit public documentation

The webhook event object

The signed envelope used by Gate webhook deliveries.

Every Gate webhook has the same top-level envelope:

{
  "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "type": "gate_session.completed",
  "created_at": 1716729600,
  "data": {}
}
Field Type Meaning
id string Stable deduplication key; retries retain the same event id
type string Event name
created_at integer Unix epoch seconds
data object Event-specific, partner-safe payload

The delivery headers include Gate-Signature, X-0bit-Timestamp, X-0bit-Event-Id, and X-0bit-Event-Type. Verify the signature against the raw body before parsing, reject stale timestamps, and deduplicate by id.

Gate emits session, KYC-required, quota, rail, quote-consumed, customer, and test events. The exact event names and payload schemas live under the OpenAPI contract's top-level webhooks section.