Webhook events
Every event a webhook endpoint can receive, with its payload as the API defines it.
Each event is a signed POST to your endpoint (see Webhooks and Verifying signatures). In the Node SDK, verifyWebhook returns the event typed by its type, and EventOf<"wallet.credited"> names one event's type.
Headers of every delivery
| Header | Description |
|---|---|
hixel-signature | t=<unix seconds>,v1=<signature>: the lowercase hex HMAC-SHA256 of <t>.<raw body> keyed with the endpoint's whole signing secret (whsec_ included), and a second v1 during a secret's rotation. Verify it on the raw body before parsing, and refuse a t more than 5 minutes from your clock. |
hixel-event-id | The event's id: deduplicate on it, as an event may arrive more than once. |
hixel-event-type | The event's type. |
wallet.balance_low#
A customer's balance fell below the environment's low-balance threshold (low_balance_threshold_micros of GET /v1/wallet_settings): once per crossing.
Payload: WalletBalanceLowEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.balance_low" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.balance required | object | The balance once the change that caused the event was applied. |
data.balance.purchased_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.grants_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.total_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.threshold_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
wallet.depleted#
A customer's balance reached zero or went below it.
Payload: WalletDepletedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.depleted" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.balance required | object | The balance once the change that caused the event was applied. |
data.balance.purchased_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.grants_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.total_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
wallet.credited#
A grant, top-up, auto-refill, adjustment or refund was written to a customer's ledger. A succeeded auto-refill is this event alone, of kind auto_refill.
Payload: WalletCreditedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.credited" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.balance required | object | The balance once the change that caused the event was applied. |
data.balance.purchased_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.grants_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.total_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.ledger_entry_id required | string | The id of a ledger entry (led_…). |
data.kind required | "grant" | "top_up" | "auto_refill" | "adjustment" | "refund" | The kinds of credit wallet.credited reports. |
data.amount_micros required | string | Signed: an adjustment or refund may be negative. |
data.expires_at required | string (date-time) | null | A grant's expiry; null otherwise. |
data.idempotency_key required | string | |
data.auto_refill_id | string | The auto-refill credited, for kind auto_refill only; absent otherwise. |
wallet.grant_expired#
What was left of a grant expired.
Payload: WalletGrantExpiredEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.grant_expired" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.balance required | object | The balance once the change that caused the event was applied. |
data.balance.purchased_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.grants_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.total_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.ledger_entry_id required | string | The id of a ledger entry (led_…). |
data.grant_key required | string | The grant's idempotency key. |
data.expired_micros required | string | What expired, positive. |
data.expired_at required | string (date-time) |
wallet.credit_rejected#
The gateway refused a credit for good: the ledger has it and the gateway's balance does not, until an operator corrects it.
Payload: WalletCreditRejectedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.credit_rejected" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.ledger_entry_id required | string | The id of a ledger entry (led_…). |
data.kind required | "grant" | "top_up" | "auto_refill" | "adjustment" | "refund" | The kinds of credit wallet.credited reports. |
data.amount_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.reason required | "stale" | "invalid_key" | "invalid_amount" | "expiry_not_allowed" | "too_many_grants" | "overflow" | … | Why the gateway refused it, one of a closed set. |
wallet.spend_limit_reached#
A customer (or one of its members) was first refused at one of its spend limits in the limit's window: once per crossing, not once per refused request.
Payload: WalletSpendLimitReachedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.spend_limit_reached" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.balance required | object | The balance once the change that caused the event was applied. |
data.balance.purchased_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.grants_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.total_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.limit_id required | string | The limit's id in the limits policy (daily, …). |
data.window required | "day" | "week" | "month" | "total" | |
data.limit_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.window_start required | string (date-time) | null | The window's UTC bounds; null for a total limit. |
data.window_end required | string (date-time) | null | |
data.spent_micros required | string | Settled spend in the window when the request was refused. |
data.member required | string | null | The member whose own limit it is; null for the customer's or the key's own limit. |
data.request_id required | string | The refused request; it reached no provider, so it has no usage. |
data.reached_at required | string (date-time) |
wallet.credit_exhausted#
A customer was first refused because its wallet cannot cover a request. Not wallet.depleted: the balance may still be positive (open holds, or a request larger than what is left).
Payload: WalletCreditExhaustedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.credit_exhausted" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.balance required | object | The balance once the change that caused the event was applied. |
data.balance.purchased_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.grants_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.total_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.available_micros required | string | The gateway's balance less what open requests hold, when it refused; may be negative. |
data.required_micros required | string | The refused request's estimate. |
data.request_id required | string | |
data.reached_at required | string (date-time) |
wallet.top_up_succeeded#
Stripe says a top-up is paid and its amount was credited; a wallet.credited of kind top_up is sent beside it.
Payload: WalletTopUpSucceededEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.top_up_succeeded" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.balance required | object | The balance once the change that caused the event was applied. |
data.balance.purchased_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.grants_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.total_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.top_up required | TopUp | A customer's top-up paid through Stripe Checkout: the wallet is credited once Stripe's own API says the payment succeeded. |
data.top_up.id required | string | The id of a top-up (tup_…). |
data.top_up.organization_id required | string | The id of your organization (org_…). |
data.top_up.project_id required | string | The id of a project (proj_…). |
data.top_up.environment_id required | string | The id of an environment (env_…). |
data.top_up.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.top_up.member required | string | null | The customer's member who asked for it; null for none. |
data.top_up.amount_micros required | string | What the customer pays and is credited, in micro-USD. |
data.top_up.currency required | "usd" | |
data.top_up.mode required | "live" | "test" | Whether a Stripe key moves real money (live) or not (test), as its prefix says. |
data.top_up.status required | "creating" | "pending" | "processing" | "succeeded" | "failed" | "expired" | Where a top-up's payment stands: creating until Stripe answered the session's creation, pending while its Checkout session is open, processing once completed with a payment still clearing, succeeded once credited, failed (the payment failed) or expired (never paid). |
data.top_up.checkout_url required | string | null | Stripe Checkout's page to pay on, while the session is open; null otherwise. |
data.top_up.expires_at required | string | null | When the Checkout session expires. |
data.top_up.save_payment_method required | boolean | Whether Stripe was asked to save the payment method for auto-refill. |
data.top_up.metadata required | object | Your own strings, kept as given; never sent to Stripe. |
data.top_up.stripe_account_id required | string | |
data.top_up.stripe_session_id required | string | null | |
data.top_up.stripe_payment_intent_id required | string | null | |
data.top_up.stripe_customer_id required | string | null | |
data.top_up.stripe_invoice_id required | string | null | |
data.top_up.invoice_url required | string | null | Stripe's hosted invoice and receipt, once paid. |
data.top_up.invoice_pdf_url required | string | null | |
data.top_up.ledger_entry_id required | string | null | The ledger entry that credited it, once succeeded. |
data.top_up.refunded_micros required | string | Taken back by refunds, positive. |
data.top_up.disputed_micros required | string | Taken back by an open or lost dispute, positive. |
data.top_up.dispute_status required | "inquiry" | "open" | "won" | "lost" | null | |
data.top_up.last_error required | string | null | Why the payment failed, or why the platform could not apply what Stripe said; never a secret. |
data.top_up.succeeded_at required | string | null | |
data.top_up.created_at required | string (date-time) | |
data.top_up.updated_at required | string (date-time) | |
data.ledger_entry_id required | string | The id of a ledger entry (led_…). |
data.amount_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
wallet.top_up_failed#
A top-up's payment failed; nothing was credited.
Payload: WalletTopUpFailedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.top_up_failed" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.top_up required | TopUp | A customer's top-up paid through Stripe Checkout: the wallet is credited once Stripe's own API says the payment succeeded. |
data.top_up.id required | string | The id of a top-up (tup_…). |
data.top_up.organization_id required | string | The id of your organization (org_…). |
data.top_up.project_id required | string | The id of a project (proj_…). |
data.top_up.environment_id required | string | The id of an environment (env_…). |
data.top_up.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.top_up.member required | string | null | The customer's member who asked for it; null for none. |
data.top_up.amount_micros required | string | What the customer pays and is credited, in micro-USD. |
data.top_up.currency required | "usd" | |
data.top_up.mode required | "live" | "test" | Whether a Stripe key moves real money (live) or not (test), as its prefix says. |
data.top_up.status required | "creating" | "pending" | "processing" | "succeeded" | "failed" | "expired" | Where a top-up's payment stands: creating until Stripe answered the session's creation, pending while its Checkout session is open, processing once completed with a payment still clearing, succeeded once credited, failed (the payment failed) or expired (never paid). |
data.top_up.checkout_url required | string | null | Stripe Checkout's page to pay on, while the session is open; null otherwise. |
data.top_up.expires_at required | string | null | When the Checkout session expires. |
data.top_up.save_payment_method required | boolean | Whether Stripe was asked to save the payment method for auto-refill. |
data.top_up.metadata required | object | Your own strings, kept as given; never sent to Stripe. |
data.top_up.stripe_account_id required | string | |
data.top_up.stripe_session_id required | string | null | |
data.top_up.stripe_payment_intent_id required | string | null | |
data.top_up.stripe_customer_id required | string | null | |
data.top_up.stripe_invoice_id required | string | null | |
data.top_up.invoice_url required | string | null | Stripe's hosted invoice and receipt, once paid. |
data.top_up.invoice_pdf_url required | string | null | |
data.top_up.ledger_entry_id required | string | null | The ledger entry that credited it, once succeeded. |
data.top_up.refunded_micros required | string | Taken back by refunds, positive. |
data.top_up.disputed_micros required | string | Taken back by an open or lost dispute, positive. |
data.top_up.dispute_status required | "inquiry" | "open" | "won" | "lost" | null | |
data.top_up.last_error required | string | null | Why the payment failed, or why the platform could not apply what Stripe said; never a secret. |
data.top_up.succeeded_at required | string | null | |
data.top_up.created_at required | string (date-time) | |
data.top_up.updated_at required | string (date-time) |
wallet.top_up_refunded#
A refund of a top-up's payment took its amount back from the wallet (amount_micros negative), or a refund that failed or was canceled after it was taken gave it back (positive). A wallet.credited of kind refund is sent beside it.
Payload: WalletTopUpRefundedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.top_up_refunded" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.balance required | object | The balance once the change that caused the event was applied. |
data.balance.purchased_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.grants_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.total_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.top_up required | TopUp | A customer's top-up paid through Stripe Checkout: the wallet is credited once Stripe's own API says the payment succeeded. |
data.top_up.id required | string | The id of a top-up (tup_…). |
data.top_up.organization_id required | string | The id of your organization (org_…). |
data.top_up.project_id required | string | The id of a project (proj_…). |
data.top_up.environment_id required | string | The id of an environment (env_…). |
data.top_up.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.top_up.member required | string | null | The customer's member who asked for it; null for none. |
data.top_up.amount_micros required | string | What the customer pays and is credited, in micro-USD. |
data.top_up.currency required | "usd" | |
data.top_up.mode required | "live" | "test" | Whether a Stripe key moves real money (live) or not (test), as its prefix says. |
data.top_up.status required | "creating" | "pending" | "processing" | "succeeded" | "failed" | "expired" | Where a top-up's payment stands: creating until Stripe answered the session's creation, pending while its Checkout session is open, processing once completed with a payment still clearing, succeeded once credited, failed (the payment failed) or expired (never paid). |
data.top_up.checkout_url required | string | null | Stripe Checkout's page to pay on, while the session is open; null otherwise. |
data.top_up.expires_at required | string | null | When the Checkout session expires. |
data.top_up.save_payment_method required | boolean | Whether Stripe was asked to save the payment method for auto-refill. |
data.top_up.metadata required | object | Your own strings, kept as given; never sent to Stripe. |
data.top_up.stripe_account_id required | string | |
data.top_up.stripe_session_id required | string | null | |
data.top_up.stripe_payment_intent_id required | string | null | |
data.top_up.stripe_customer_id required | string | null | |
data.top_up.stripe_invoice_id required | string | null | |
data.top_up.invoice_url required | string | null | Stripe's hosted invoice and receipt, once paid. |
data.top_up.invoice_pdf_url required | string | null | |
data.top_up.ledger_entry_id required | string | null | The ledger entry that credited it, once succeeded. |
data.top_up.refunded_micros required | string | Taken back by refunds, positive. |
data.top_up.disputed_micros required | string | Taken back by an open or lost dispute, positive. |
data.top_up.dispute_status required | "inquiry" | "open" | "won" | "lost" | null | |
data.top_up.last_error required | string | null | Why the payment failed, or why the platform could not apply what Stripe said; never a secret. |
data.top_up.succeeded_at required | string | null | |
data.top_up.created_at required | string (date-time) | |
data.top_up.updated_at required | string (date-time) | |
data.ledger_entry_id required | string | The id of a ledger entry (led_…). |
data.amount_micros required | string | Signed: what the entry moved. |
data.refund_id required | string | Stripe's refund (re_…). |
data.refund_status required | "pending" | "requires_action" | "succeeded" | "failed" | "canceled" | string | Stripe's status of the refund; Stripe may add others. |
wallet.top_up_disputed#
The payment of a top-up was disputed, or its dispute changed: an inquiry (nothing taken), funds withdrawn (debited), won (credited back) or lost (the debit stays).
Payload: WalletTopUpDisputedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.top_up_disputed" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.balance required | object | The balance once the change that caused the event was applied. |
data.balance.purchased_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.grants_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.balance.total_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.top_up required | TopUp | A customer's top-up paid through Stripe Checkout: the wallet is credited once Stripe's own API says the payment succeeded. |
data.top_up.id required | string | The id of a top-up (tup_…). |
data.top_up.organization_id required | string | The id of your organization (org_…). |
data.top_up.project_id required | string | The id of a project (proj_…). |
data.top_up.environment_id required | string | The id of an environment (env_…). |
data.top_up.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.top_up.member required | string | null | The customer's member who asked for it; null for none. |
data.top_up.amount_micros required | string | What the customer pays and is credited, in micro-USD. |
data.top_up.currency required | "usd" | |
data.top_up.mode required | "live" | "test" | Whether a Stripe key moves real money (live) or not (test), as its prefix says. |
data.top_up.status required | "creating" | "pending" | "processing" | "succeeded" | "failed" | "expired" | Where a top-up's payment stands: creating until Stripe answered the session's creation, pending while its Checkout session is open, processing once completed with a payment still clearing, succeeded once credited, failed (the payment failed) or expired (never paid). |
data.top_up.checkout_url required | string | null | Stripe Checkout's page to pay on, while the session is open; null otherwise. |
data.top_up.expires_at required | string | null | When the Checkout session expires. |
data.top_up.save_payment_method required | boolean | Whether Stripe was asked to save the payment method for auto-refill. |
data.top_up.metadata required | object | Your own strings, kept as given; never sent to Stripe. |
data.top_up.stripe_account_id required | string | |
data.top_up.stripe_session_id required | string | null | |
data.top_up.stripe_payment_intent_id required | string | null | |
data.top_up.stripe_customer_id required | string | null | |
data.top_up.stripe_invoice_id required | string | null | |
data.top_up.invoice_url required | string | null | Stripe's hosted invoice and receipt, once paid. |
data.top_up.invoice_pdf_url required | string | null | |
data.top_up.ledger_entry_id required | string | null | The ledger entry that credited it, once succeeded. |
data.top_up.refunded_micros required | string | Taken back by refunds, positive. |
data.top_up.disputed_micros required | string | Taken back by an open or lost dispute, positive. |
data.top_up.dispute_status required | "inquiry" | "open" | "won" | "lost" | null | |
data.top_up.last_error required | string | null | Why the payment failed, or why the platform could not apply what Stripe said; never a secret. |
data.top_up.succeeded_at required | string | null | |
data.top_up.created_at required | string (date-time) | |
data.top_up.updated_at required | string (date-time) | |
data.dispute_id required | string | Stripe's dispute (dp_…). |
data.dispute_status required | "warning_needs_response" | "warning_under_review" | "warning_closed" | "needs_response" | "under_review" | "won" | … | string | Stripe's status of the dispute; Stripe may add others. |
data.ledger_entry_id required | string | null | |
data.amount_micros required | string | Signed: what the entry moved, "0" when none was written. |
wallet.auto_refill_failed#
An auto-refill's charge was declined, or the bank asked for authentication, which cannot happen off-session. Nothing was credited.
Payload: WalletAutoRefillFailedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.auto_refill_failed" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.auto_refill required | AutoRefill | One auto-refill of a customer's wallet. |
data.auto_refill.id required | string | The id of one auto-refill of a wallet (arf_…). |
data.auto_refill.organization_id required | string | The id of your organization (org_…). |
data.auto_refill.project_id required | string | The id of a project (proj_…). |
data.auto_refill.environment_id required | string | The id of an environment (env_…). |
data.auto_refill.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.auto_refill.amount_micros required | string | What the refill charges and credits, in micro-USD. |
data.auto_refill.currency required | "usd" | |
data.auto_refill.mode required | "live" | "test" | Whether a Stripe key moves real money (live) or not (test), as its prefix says. |
data.auto_refill.status required | "pending" | "processing" | "succeeded" | "failed" | "skipped_cap" | "canceled" | … | Where an auto-refill stands: pending until Stripe answered its payment's creation, processing while the payment clears, succeeded once credited, failed (declined, or the bank asked for authentication, which cannot happen off-session), skipped_cap (the month's cap left no room; nothing was charged), canceled (nothing was charged: the customer, the connection or the settings no longer allowed it, before Stripe was asked or after Stripe canceled its payment) or needs_attention (Stripe may hold a payment the platform could not read back in time: re-read daily and by its webhook, and no other refill of the wallet starts until it is resolved). |
data.auto_refill.stripe_account_id required | string | |
data.auto_refill.stripe_customer_id required | string | |
data.auto_refill.payment_method_id required | string | |
data.auto_refill.stripe_payment_intent_id required | string | null | |
data.auto_refill.ledger_entry_id required | string | null | The ledger entry that credited it, once succeeded. |
data.auto_refill.refunded_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.auto_refill.disputed_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.auto_refill.dispute_status required | "inquiry" | "open" | "won" | "lost" | null | |
data.auto_refill.failure_code required | string | null | Stripe's decline code, or the platform's own code, of a failed or canceled refill. |
data.auto_refill.last_error required | string | null | |
data.auto_refill.succeeded_at required | string | null | |
data.auto_refill.created_at required | string (date-time) | |
data.auto_refill.updated_at required | string (date-time) | |
data.consecutive_failures required | integer | Failed refills in a row, this one included; at 3 auto-refill is turned off. |
data.retry_after required | string (date-time) | null | When the next refill may start; null once auto-refill was turned off. |
wallet.auto_refill_disabled#
A customer's auto-refill was turned off: after 3 failed refills in a row (failures), because the saved payment method was detached or failed for good (payment_method), or after a dispute (dispute). Enable it again once the cause is fixed.
Payload: WalletAutoRefillDisabledEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.auto_refill_disabled" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.reason required | "failures" | "payment_method" | "dispute" | Why the platform turned a customer's auto-refill off: failures (3 failed refills in a row, a refunded refill counting as one), payment_method (the saved method was detached or failed for good) or dispute (the card's holder disputed a payment: the method is cleared, and only an owner or admin turns it on again, with a newly saved card). |
data.settings required | AutoRefillSettings | A customer's auto-refill settings and their state: an off-session charge of the payment method a Checkout top-up saved, when the balance falls below the threshold. |
data.settings.organization_id required | string | The id of your organization (org_…). |
data.settings.project_id required | string | The id of a project (proj_…). |
data.settings.environment_id required | string | The id of an environment (env_…). |
data.settings.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.settings.enabled required | boolean | Whether a refill starts when the balance falls below the threshold. |
data.settings.threshold_micros required | string | null | A refill starts when the balance falls below it; null until set. |
data.settings.amount_micros required | string | null | What one refill charges and credits; null until set. |
data.settings.monthly_cap_micros required | string | null | The most refills charge in a calendar month (UTC); null until set. |
data.settings.payment_method required | object | null | The method refills charge; null until a Checkout top-up saved one. |
data.settings.refilled_this_month_micros required | string | This calendar month's refills that succeeded or are in flight. |
data.settings.consecutive_failures required | integer | Failed refills since the last success. |
data.settings.retry_after required | string | null | After a failure, no refill starts before this; null for no wait. |
data.settings.cap_reached_month required | string | null | The month (YYYY-MM, UTC) whose cap stopped a refill: none starts again in it. |
data.settings.disabled_reason required | "failures" | "payment_method" | "dispute" | null | Why the platform turned it off; null unless it did. |
data.settings.disabled_at required | string | null | |
data.settings.last_failure_code required | string | null | Stripe's decline code (or the platform's own) of the last failure: a code, never card data. |
data.settings.last_failure_at required | string | null | |
data.settings.updated_at required | string | null | null while never set. |
wallet.auto_refill_cap_reached#
A refill was skipped because it would take the month's refills past the monthly cap. Once per calendar month (UTC); no refill starts again in the month unless the settings change.
Payload: WalletAutoRefillCapReachedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "wallet.auto_refill_cap_reached" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.wallet_id required | string | The id of a customer's wallet (wal_…). |
data.auto_refill required | AutoRefill | One auto-refill of a customer's wallet. |
data.auto_refill.id required | string | The id of one auto-refill of a wallet (arf_…). |
data.auto_refill.organization_id required | string | The id of your organization (org_…). |
data.auto_refill.project_id required | string | The id of a project (proj_…). |
data.auto_refill.environment_id required | string | The id of an environment (env_…). |
data.auto_refill.customer required | string | Your id for the customer (its external_id), as every path takes it. |
data.auto_refill.amount_micros required | string | What the refill charges and credits, in micro-USD. |
data.auto_refill.currency required | "usd" | |
data.auto_refill.mode required | "live" | "test" | Whether a Stripe key moves real money (live) or not (test), as its prefix says. |
data.auto_refill.status required | "pending" | "processing" | "succeeded" | "failed" | "skipped_cap" | "canceled" | … | Where an auto-refill stands: pending until Stripe answered its payment's creation, processing while the payment clears, succeeded once credited, failed (declined, or the bank asked for authentication, which cannot happen off-session), skipped_cap (the month's cap left no room; nothing was charged), canceled (nothing was charged: the customer, the connection or the settings no longer allowed it, before Stripe was asked or after Stripe canceled its payment) or needs_attention (Stripe may hold a payment the platform could not read back in time: re-read daily and by its webhook, and no other refill of the wallet starts until it is resolved). |
data.auto_refill.stripe_account_id required | string | |
data.auto_refill.stripe_customer_id required | string | |
data.auto_refill.payment_method_id required | string | |
data.auto_refill.stripe_payment_intent_id required | string | null | |
data.auto_refill.ledger_entry_id required | string | null | The ledger entry that credited it, once succeeded. |
data.auto_refill.refunded_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.auto_refill.disputed_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.auto_refill.dispute_status required | "inquiry" | "open" | "won" | "lost" | null | |
data.auto_refill.failure_code required | string | null | Stripe's decline code, or the platform's own code, of a failed or canceled refill. |
data.auto_refill.last_error required | string | null | |
data.auto_refill.succeeded_at required | string | null | |
data.auto_refill.created_at required | string (date-time) | |
data.auto_refill.updated_at required | string (date-time) | |
data.monthly_cap_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.refilled_micros required | string | The month's refills that succeeded or are in flight. |
data.month required | string | YYYY-MM, UTC. |
customer.created#
A customer was created: through the API or the dashboard, or on the fly by its first request's usage.
Payload: CustomerCreatedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "customer.created" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | object | |
data.customer.id required | string | The platform's id of the customer (cus_…); every path takes your external_id. |
data.customer.external_id required | string | |
data.customer.name required | string | null | |
data.customer.status required | "active" | "blocked" | active, or blocked: every request naming the customer is refused. |
data.customer.created_at required | string (date-time) | |
data.source required | "api" | "dashboard" | "usage" | Where a customer was created: by you, or on the fly from its first request's usage. |
customer.blocked#
A customer was blocked.
Payload: CustomerBlockedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "customer.blocked" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | object | |
data.customer.id required | string | The platform's id of the customer (cus_…); every path takes your external_id. |
data.customer.external_id required | string | |
data.customer.name required | string | null | |
data.customer.status required | "active" | "blocked" | active, or blocked: every request naming the customer is refused. |
data.customer.created_at required | string (date-time) |
customer.unblocked#
A customer was unblocked.
Payload: CustomerUnblockedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "customer.unblocked" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.customer required | object | |
data.customer.id required | string | The platform's id of the customer (cus_…); every path takes your external_id. |
data.customer.external_id required | string | |
data.customer.name required | string | null | |
data.customer.status required | "active" | "blocked" | active, or blocked: every request naming the customer is refused. |
data.customer.created_at required | string (date-time) |
key.created#
A key was created; data.key is the key as GET /v1/keys/{id} shows it, never its secret.
Payload: KeyCreatedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "key.created" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.key required | Key | A key of the environment, as every read shows it: never the key itself. |
data.key.id required | string | The id of a key (key_…); never the key itself. |
data.key.organization_id required | string | The id of your organization (org_…). |
data.key.project_id required | string | The id of a project (proj_…). |
data.key.environment_id required | string | The id of an environment (env_…). |
data.key.name required | string | |
data.key.last_four required | string | The key's last four characters, to tell keys apart. |
data.key.status required | "active" | "expired" | "revoked" | Where the key stands; expired is an unrevoked key past its expiry. |
data.key.scopes required | array of "inference" | "management" | What the key may be used for: inference (calling models through the gateway), management (this API), or both. |
data.key.customer required | string | null | Your id for the customer the key is pinned to; null for none. |
data.key.member required | string | null | Your id for the member the key is pinned to; null for none. |
data.key.allowed_models required | array of string | null | Model names and prefix/* patterns a request may use; null allows every model the level above allows. |
data.key.tags required | array of string | Free labels, up to 64 characters of visible ASCII each. |
data.key.expires_at required | string | null | When the key stops working; null for never. |
data.key.revoked_at required | string | null | When the key was revoked; null while it is not. |
data.key.created_by_user_id required | string | null | The person who created the key in the dashboard; null when a key created it, through this API. |
data.key.created_at required | string (date-time) | |
data.key.updated_at required | string (date-time) |
key.revoked#
A key was revoked; data.key is the key as GET /v1/keys/{id} shows it.
Payload: KeyRevokedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "key.revoked" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.key required | Key | A key of the environment, as every read shows it: never the key itself. |
data.key.id required | string | The id of a key (key_…); never the key itself. |
data.key.organization_id required | string | The id of your organization (org_…). |
data.key.project_id required | string | The id of a project (proj_…). |
data.key.environment_id required | string | The id of an environment (env_…). |
data.key.name required | string | |
data.key.last_four required | string | The key's last four characters, to tell keys apart. |
data.key.status required | "active" | "expired" | "revoked" | Where the key stands; expired is an unrevoked key past its expiry. |
data.key.scopes required | array of "inference" | "management" | What the key may be used for: inference (calling models through the gateway), management (this API), or both. |
data.key.customer required | string | null | Your id for the customer the key is pinned to; null for none. |
data.key.member required | string | null | Your id for the member the key is pinned to; null for none. |
data.key.allowed_models required | array of string | null | Model names and prefix/* patterns a request may use; null allows every model the level above allows. |
data.key.tags required | array of string | Free labels, up to 64 characters of visible ASCII each. |
data.key.expires_at required | string | null | When the key stops working; null for never. |
data.key.revoked_at required | string | null | When the key was revoked; null while it is not. |
data.key.created_by_user_id required | string | null | The person who created the key in the dashboard; null when a key created it, through this API. |
data.key.created_at required | string (date-time) | |
data.key.updated_at required | string (date-time) |
key.rotated#
A key was rotated: the replaced key and its successor, never a secret.
Payload: KeyRotatedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "key.rotated" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.previous required | Key | A key of the environment, as every read shows it: never the key itself. |
data.previous.id required | string | The id of a key (key_…); never the key itself. |
data.previous.organization_id required | string | The id of your organization (org_…). |
data.previous.project_id required | string | The id of a project (proj_…). |
data.previous.environment_id required | string | The id of an environment (env_…). |
data.previous.name required | string | |
data.previous.last_four required | string | The key's last four characters, to tell keys apart. |
data.previous.status required | "active" | "expired" | "revoked" | Where the key stands; expired is an unrevoked key past its expiry. |
data.previous.scopes required | array of "inference" | "management" | What the key may be used for: inference (calling models through the gateway), management (this API), or both. |
data.previous.customer required | string | null | Your id for the customer the key is pinned to; null for none. |
data.previous.member required | string | null | Your id for the member the key is pinned to; null for none. |
data.previous.allowed_models required | array of string | null | Model names and prefix/* patterns a request may use; null allows every model the level above allows. |
data.previous.tags required | array of string | Free labels, up to 64 characters of visible ASCII each. |
data.previous.expires_at required | string | null | When the key stops working; null for never. |
data.previous.revoked_at required | string | null | When the key was revoked; null while it is not. |
data.previous.created_by_user_id required | string | null | The person who created the key in the dashboard; null when a key created it, through this API. |
data.previous.created_at required | string (date-time) | |
data.previous.updated_at required | string (date-time) | |
data.key required | Key | A key of the environment, as every read shows it: never the key itself. |
data.key.id required | string | The id of a key (key_…); never the key itself. |
data.key.organization_id required | string | The id of your organization (org_…). |
data.key.project_id required | string | The id of a project (proj_…). |
data.key.environment_id required | string | The id of an environment (env_…). |
data.key.name required | string | |
data.key.last_four required | string | The key's last four characters, to tell keys apart. |
data.key.status required | "active" | "expired" | "revoked" | Where the key stands; expired is an unrevoked key past its expiry. |
data.key.scopes required | array of "inference" | "management" | What the key may be used for: inference (calling models through the gateway), management (this API), or both. |
data.key.customer required | string | null | Your id for the customer the key is pinned to; null for none. |
data.key.member required | string | null | Your id for the member the key is pinned to; null for none. |
data.key.allowed_models required | array of string | null | Model names and prefix/* patterns a request may use; null allows every model the level above allows. |
data.key.tags required | array of string | Free labels, up to 64 characters of visible ASCII each. |
data.key.expires_at required | string | null | When the key stops working; null for never. |
data.key.revoked_at required | string | null | When the key was revoked; null while it is not. |
data.key.created_by_user_id required | string | null | The person who created the key in the dashboard; null when a key created it, through this API. |
data.key.created_at required | string (date-time) | |
data.key.updated_at required | string (date-time) |
key.spend_limit_reached#
A key's own spend limit was first reached by a request that named no customer.
Payload: KeySpendLimitReachedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "key.spend_limit_reached" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.key required | Key | A key of the environment, as every read shows it: never the key itself. |
data.key.id required | string | The id of a key (key_…); never the key itself. |
data.key.organization_id required | string | The id of your organization (org_…). |
data.key.project_id required | string | The id of a project (proj_…). |
data.key.environment_id required | string | The id of an environment (env_…). |
data.key.name required | string | |
data.key.last_four required | string | The key's last four characters, to tell keys apart. |
data.key.status required | "active" | "expired" | "revoked" | Where the key stands; expired is an unrevoked key past its expiry. |
data.key.scopes required | array of "inference" | "management" | What the key may be used for: inference (calling models through the gateway), management (this API), or both. |
data.key.customer required | string | null | Your id for the customer the key is pinned to; null for none. |
data.key.member required | string | null | Your id for the member the key is pinned to; null for none. |
data.key.allowed_models required | array of string | null | Model names and prefix/* patterns a request may use; null allows every model the level above allows. |
data.key.tags required | array of string | Free labels, up to 64 characters of visible ASCII each. |
data.key.expires_at required | string | null | When the key stops working; null for never. |
data.key.revoked_at required | string | null | When the key was revoked; null while it is not. |
data.key.created_by_user_id required | string | null | The person who created the key in the dashboard; null when a key created it, through this API. |
data.key.created_at required | string (date-time) | |
data.key.updated_at required | string (date-time) | |
data.limit_id required | string | The limit's id in the limits policy (daily, …). |
data.window required | "day" | "week" | "month" | "total" | |
data.limit_micros required | string | An amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number. |
data.window_start required | string (date-time) | null | The window's UTC bounds; null for a total limit. |
data.window_end required | string (date-time) | null | |
data.spent_micros required | string | Settled spend in the window when the request was refused. |
data.member required | string | null | The member whose own limit it is; null for the customer's or the key's own limit. |
data.request_id required | string | The refused request; it reached no provider, so it has no usage. |
data.reached_at required | string (date-time) |
usage.recorded#
One request the gateway served, as the usage log recorded it. Sent only to an endpoint that names this type: * does not include it, as it is one delivery per request.
Payload: UsageRecordedEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "usage.recorded" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.usage_event_id required | string | The id of one recorded request (use_…); not its request id. |
data.request_id required | string | |
data.key_id required | string | The id of a key (key_…); never the key itself. |
data.customer required | string | null | Your id for the customer the request named; null for none. |
data.member required | string | null | Your id for the member the request named; null for none. |
data.wallet_id required | string | null | |
data.provider required | "openai" | "anthropic" | "azure" | "google" | "groq" | "mistral" | … | string | The provider that answered. |
data.requested_model required | string | |
data.model required | string | |
data.endpoint required | string | null | The endpoint beside chat (embeddings, audio_speech, …); null for chat. |
data.payer required | "wallet" | "tenant" | "byok" | |
data.outcome required | "completed" | "aborted" | "upstream_error" | "truncated" | "stream_error" | How the response body ended. |
data.mocked required | boolean | |
data.tokens required | object | |
data.tokens.input required | string | An exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly. |
data.tokens.cache_read required | string | An exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly. |
data.tokens.cache_write_5m required | string | An exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly. |
data.tokens.cache_write_1h required | string | An exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly. |
data.tokens.output required | string | An exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly. |
data.tokens.reasoning required | string | An exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly. |
data.cost_micros required | string | null | What the request cost before your markup, as the ledger posts it; null when it was not priced. |
data.billed_micros required | string | null | What it bills the customer, as the ledger posts it; null when it was not priced. |
data.settlement required | "untracked" | "settled" | "released" | "not_applied" | "failed" | How the request's charge to the balance ended: settled (charged), released (no provider response; nothing charged), not_applied, failed (the gateway's balance could not be reached; the ledger posts it), or untracked (no wallet paid and no limit applied). |
data.started_at required | string (date-time) | |
data.duration_ms required | integer | |
data.tags required | array of string | The request's own tags (x-hixel-tags); empty when it sent none. |
data.client_token_id required | string | null | The id of the client token the request came through; null for a request with a key. |
webhook.test#
Sent by POST /v1/webhook_endpoints/{id}/test to that endpoint alone, to check that it receives and verifies deliveries.
Payload: WebhookTestEvent
| Field | Type | Description |
|---|---|---|
id required | string | The event's id (evt_…), the same in every delivery of it: deduplicate on it. |
object required | "event" | |
type required | "webhook.test" | |
api_version required | "2026-11-25" | The version of the envelope and of data. Removing or retyping a field is a new version; adding one is not, so ignore fields you do not know. |
created_at required | string (date-time) | When the change that caused the event was made, in its transaction (to the millisecond). |
environment required | string | The environment the event happened in (env_…). |
data required | object | |
data.endpoint_id required | string | The id of a webhook endpoint (we_…). |
data.message required | string |