Documentation menu

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

HeaderDescription
hixel-signaturet=<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-idThe event's id: deduplicate on it, as an event may arrive more than once.
hixel-event-typeThe 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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.balance requiredobjectThe balance once the change that caused the event was applied.
data.balance.purchased_micros requiredstringAn 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 requiredstringAn 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 requiredstringAn 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 requiredstringAn 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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.balance requiredobjectThe balance once the change that caused the event was applied.
data.balance.purchased_micros requiredstringAn 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 requiredstringAn 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 requiredstringAn 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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.balance requiredobjectThe balance once the change that caused the event was applied.
data.balance.purchased_micros requiredstringAn 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 requiredstringAn 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 requiredstringAn 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 requiredstringThe 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 requiredstringSigned: an adjustment or refund may be negative.
data.expires_at requiredstring (date-time) | nullA grant's expiry; null otherwise.
data.idempotency_key requiredstring
data.auto_refill_idstringThe auto-refill credited, for kind auto_refill only; absent otherwise.

wallet.grant_expired#

What was left of a grant expired.

Payload: WalletGrantExpiredEvent

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.balance requiredobjectThe balance once the change that caused the event was applied.
data.balance.purchased_micros requiredstringAn 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 requiredstringAn 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 requiredstringAn 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 requiredstringThe id of a ledger entry (led_…).
data.grant_key requiredstringThe grant's idempotency key.
data.expired_micros requiredstringWhat expired, positive.
data.expired_at requiredstring (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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.ledger_entry_id requiredstringThe 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 requiredstringAn 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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.balance requiredobjectThe balance once the change that caused the event was applied.
data.balance.purchased_micros requiredstringAn 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 requiredstringAn 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 requiredstringAn 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 requiredstringThe limit's id in the limits policy (daily, …).
data.window required"day" | "week" | "month" | "total"
data.limit_micros requiredstringAn 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 requiredstring (date-time) | nullThe window's UTC bounds; null for a total limit.
data.window_end requiredstring (date-time) | null
data.spent_micros requiredstringSettled spend in the window when the request was refused.
data.member requiredstring | nullThe member whose own limit it is; null for the customer's or the key's own limit.
data.request_id requiredstringThe refused request; it reached no provider, so it has no usage.
data.reached_at requiredstring (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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.balance requiredobjectThe balance once the change that caused the event was applied.
data.balance.purchased_micros requiredstringAn 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 requiredstringAn 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 requiredstringAn 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 requiredstringThe gateway's balance less what open requests hold, when it refused; may be negative.
data.required_micros requiredstringThe refused request's estimate.
data.request_id requiredstring
data.reached_at requiredstring (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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.balance requiredobjectThe balance once the change that caused the event was applied.
data.balance.purchased_micros requiredstringAn 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 requiredstringAn 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 requiredstringAn 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 requiredTopUpA 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 requiredstringThe id of a top-up (tup_…).
data.top_up.organization_id requiredstringThe id of your organization (org_…).
data.top_up.project_id requiredstringThe id of a project (proj_…).
data.top_up.environment_id requiredstringThe id of an environment (env_…).
data.top_up.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.top_up.member requiredstring | nullThe customer's member who asked for it; null for none.
data.top_up.amount_micros requiredstringWhat 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 requiredstring | nullStripe Checkout's page to pay on, while the session is open; null otherwise.
data.top_up.expires_at requiredstring | nullWhen the Checkout session expires.
data.top_up.save_payment_method requiredbooleanWhether Stripe was asked to save the payment method for auto-refill.
data.top_up.metadata requiredobjectYour own strings, kept as given; never sent to Stripe.
data.top_up.stripe_account_id requiredstring
data.top_up.stripe_session_id requiredstring | null
data.top_up.stripe_payment_intent_id requiredstring | null
data.top_up.stripe_customer_id requiredstring | null
data.top_up.stripe_invoice_id requiredstring | null
data.top_up.invoice_url requiredstring | nullStripe's hosted invoice and receipt, once paid.
data.top_up.invoice_pdf_url requiredstring | null
data.top_up.ledger_entry_id requiredstring | nullThe ledger entry that credited it, once succeeded.
data.top_up.refunded_micros requiredstringTaken back by refunds, positive.
data.top_up.disputed_micros requiredstringTaken back by an open or lost dispute, positive.
data.top_up.dispute_status required"inquiry" | "open" | "won" | "lost" | null
data.top_up.last_error requiredstring | nullWhy the payment failed, or why the platform could not apply what Stripe said; never a secret.
data.top_up.succeeded_at requiredstring | null
data.top_up.created_at requiredstring (date-time)
data.top_up.updated_at requiredstring (date-time)
data.ledger_entry_id requiredstringThe id of a ledger entry (led_…).
data.amount_micros requiredstringAn 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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.top_up requiredTopUpA 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 requiredstringThe id of a top-up (tup_…).
data.top_up.organization_id requiredstringThe id of your organization (org_…).
data.top_up.project_id requiredstringThe id of a project (proj_…).
data.top_up.environment_id requiredstringThe id of an environment (env_…).
data.top_up.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.top_up.member requiredstring | nullThe customer's member who asked for it; null for none.
data.top_up.amount_micros requiredstringWhat 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 requiredstring | nullStripe Checkout's page to pay on, while the session is open; null otherwise.
data.top_up.expires_at requiredstring | nullWhen the Checkout session expires.
data.top_up.save_payment_method requiredbooleanWhether Stripe was asked to save the payment method for auto-refill.
data.top_up.metadata requiredobjectYour own strings, kept as given; never sent to Stripe.
data.top_up.stripe_account_id requiredstring
data.top_up.stripe_session_id requiredstring | null
data.top_up.stripe_payment_intent_id requiredstring | null
data.top_up.stripe_customer_id requiredstring | null
data.top_up.stripe_invoice_id requiredstring | null
data.top_up.invoice_url requiredstring | nullStripe's hosted invoice and receipt, once paid.
data.top_up.invoice_pdf_url requiredstring | null
data.top_up.ledger_entry_id requiredstring | nullThe ledger entry that credited it, once succeeded.
data.top_up.refunded_micros requiredstringTaken back by refunds, positive.
data.top_up.disputed_micros requiredstringTaken back by an open or lost dispute, positive.
data.top_up.dispute_status required"inquiry" | "open" | "won" | "lost" | null
data.top_up.last_error requiredstring | nullWhy the payment failed, or why the platform could not apply what Stripe said; never a secret.
data.top_up.succeeded_at requiredstring | null
data.top_up.created_at requiredstring (date-time)
data.top_up.updated_at requiredstring (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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.balance requiredobjectThe balance once the change that caused the event was applied.
data.balance.purchased_micros requiredstringAn 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 requiredstringAn 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 requiredstringAn 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 requiredTopUpA 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 requiredstringThe id of a top-up (tup_…).
data.top_up.organization_id requiredstringThe id of your organization (org_…).
data.top_up.project_id requiredstringThe id of a project (proj_…).
data.top_up.environment_id requiredstringThe id of an environment (env_…).
data.top_up.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.top_up.member requiredstring | nullThe customer's member who asked for it; null for none.
data.top_up.amount_micros requiredstringWhat 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 requiredstring | nullStripe Checkout's page to pay on, while the session is open; null otherwise.
data.top_up.expires_at requiredstring | nullWhen the Checkout session expires.
data.top_up.save_payment_method requiredbooleanWhether Stripe was asked to save the payment method for auto-refill.
data.top_up.metadata requiredobjectYour own strings, kept as given; never sent to Stripe.
data.top_up.stripe_account_id requiredstring
data.top_up.stripe_session_id requiredstring | null
data.top_up.stripe_payment_intent_id requiredstring | null
data.top_up.stripe_customer_id requiredstring | null
data.top_up.stripe_invoice_id requiredstring | null
data.top_up.invoice_url requiredstring | nullStripe's hosted invoice and receipt, once paid.
data.top_up.invoice_pdf_url requiredstring | null
data.top_up.ledger_entry_id requiredstring | nullThe ledger entry that credited it, once succeeded.
data.top_up.refunded_micros requiredstringTaken back by refunds, positive.
data.top_up.disputed_micros requiredstringTaken back by an open or lost dispute, positive.
data.top_up.dispute_status required"inquiry" | "open" | "won" | "lost" | null
data.top_up.last_error requiredstring | nullWhy the payment failed, or why the platform could not apply what Stripe said; never a secret.
data.top_up.succeeded_at requiredstring | null
data.top_up.created_at requiredstring (date-time)
data.top_up.updated_at requiredstring (date-time)
data.ledger_entry_id requiredstringThe id of a ledger entry (led_…).
data.amount_micros requiredstringSigned: what the entry moved.
data.refund_id requiredstringStripe's refund (re_…).
data.refund_status required"pending" | "requires_action" | "succeeded" | "failed" | "canceled" | stringStripe'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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.balance requiredobjectThe balance once the change that caused the event was applied.
data.balance.purchased_micros requiredstringAn 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 requiredstringAn 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 requiredstringAn 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 requiredTopUpA 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 requiredstringThe id of a top-up (tup_…).
data.top_up.organization_id requiredstringThe id of your organization (org_…).
data.top_up.project_id requiredstringThe id of a project (proj_…).
data.top_up.environment_id requiredstringThe id of an environment (env_…).
data.top_up.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.top_up.member requiredstring | nullThe customer's member who asked for it; null for none.
data.top_up.amount_micros requiredstringWhat 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 requiredstring | nullStripe Checkout's page to pay on, while the session is open; null otherwise.
data.top_up.expires_at requiredstring | nullWhen the Checkout session expires.
data.top_up.save_payment_method requiredbooleanWhether Stripe was asked to save the payment method for auto-refill.
data.top_up.metadata requiredobjectYour own strings, kept as given; never sent to Stripe.
data.top_up.stripe_account_id requiredstring
data.top_up.stripe_session_id requiredstring | null
data.top_up.stripe_payment_intent_id requiredstring | null
data.top_up.stripe_customer_id requiredstring | null
data.top_up.stripe_invoice_id requiredstring | null
data.top_up.invoice_url requiredstring | nullStripe's hosted invoice and receipt, once paid.
data.top_up.invoice_pdf_url requiredstring | null
data.top_up.ledger_entry_id requiredstring | nullThe ledger entry that credited it, once succeeded.
data.top_up.refunded_micros requiredstringTaken back by refunds, positive.
data.top_up.disputed_micros requiredstringTaken back by an open or lost dispute, positive.
data.top_up.dispute_status required"inquiry" | "open" | "won" | "lost" | null
data.top_up.last_error requiredstring | nullWhy the payment failed, or why the platform could not apply what Stripe said; never a secret.
data.top_up.succeeded_at requiredstring | null
data.top_up.created_at requiredstring (date-time)
data.top_up.updated_at requiredstring (date-time)
data.dispute_id requiredstringStripe's dispute (dp_…).
data.dispute_status required"warning_needs_response" | "warning_under_review" | "warning_closed" | "needs_response" | "under_review" | "won" | … | stringStripe's status of the dispute; Stripe may add others.
data.ledger_entry_id requiredstring | null
data.amount_micros requiredstringSigned: 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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.auto_refill requiredAutoRefillOne auto-refill of a customer's wallet.
data.auto_refill.id requiredstringThe id of one auto-refill of a wallet (arf_…).
data.auto_refill.organization_id requiredstringThe id of your organization (org_…).
data.auto_refill.project_id requiredstringThe id of a project (proj_…).
data.auto_refill.environment_id requiredstringThe id of an environment (env_…).
data.auto_refill.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.auto_refill.amount_micros requiredstringWhat 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 requiredstring
data.auto_refill.stripe_customer_id requiredstring
data.auto_refill.payment_method_id requiredstring
data.auto_refill.stripe_payment_intent_id requiredstring | null
data.auto_refill.ledger_entry_id requiredstring | nullThe ledger entry that credited it, once succeeded.
data.auto_refill.refunded_micros requiredstringAn 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 requiredstringAn 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 requiredstring | nullStripe's decline code, or the platform's own code, of a failed or canceled refill.
data.auto_refill.last_error requiredstring | null
data.auto_refill.succeeded_at requiredstring | null
data.auto_refill.created_at requiredstring (date-time)
data.auto_refill.updated_at requiredstring (date-time)
data.consecutive_failures requiredintegerFailed refills in a row, this one included; at 3 auto-refill is turned off.
data.retry_after requiredstring (date-time) | nullWhen 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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe 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 requiredAutoRefillSettingsA 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 requiredstringThe id of your organization (org_…).
data.settings.project_id requiredstringThe id of a project (proj_…).
data.settings.environment_id requiredstringThe id of an environment (env_…).
data.settings.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.settings.enabled requiredbooleanWhether a refill starts when the balance falls below the threshold.
data.settings.threshold_micros requiredstring | nullA refill starts when the balance falls below it; null until set.
data.settings.amount_micros requiredstring | nullWhat one refill charges and credits; null until set.
data.settings.monthly_cap_micros requiredstring | nullThe most refills charge in a calendar month (UTC); null until set.
data.settings.payment_method requiredobject | nullThe method refills charge; null until a Checkout top-up saved one.
data.settings.refilled_this_month_micros requiredstringThis calendar month's refills that succeeded or are in flight.
data.settings.consecutive_failures requiredintegerFailed refills since the last success.
data.settings.retry_after requiredstring | nullAfter a failure, no refill starts before this; null for no wait.
data.settings.cap_reached_month requiredstring | nullThe month (YYYY-MM, UTC) whose cap stopped a refill: none starts again in it.
data.settings.disabled_reason required"failures" | "payment_method" | "dispute" | nullWhy the platform turned it off; null unless it did.
data.settings.disabled_at requiredstring | null
data.settings.last_failure_code requiredstring | nullStripe's decline code (or the platform's own) of the last failure: a code, never card data.
data.settings.last_failure_at requiredstring | null
data.settings.updated_at requiredstring | nullnull 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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.wallet_id requiredstringThe id of a customer's wallet (wal_…).
data.auto_refill requiredAutoRefillOne auto-refill of a customer's wallet.
data.auto_refill.id requiredstringThe id of one auto-refill of a wallet (arf_…).
data.auto_refill.organization_id requiredstringThe id of your organization (org_…).
data.auto_refill.project_id requiredstringThe id of a project (proj_…).
data.auto_refill.environment_id requiredstringThe id of an environment (env_…).
data.auto_refill.customer requiredstringYour id for the customer (its external_id), as every path takes it.
data.auto_refill.amount_micros requiredstringWhat 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 requiredstring
data.auto_refill.stripe_customer_id requiredstring
data.auto_refill.payment_method_id requiredstring
data.auto_refill.stripe_payment_intent_id requiredstring | null
data.auto_refill.ledger_entry_id requiredstring | nullThe ledger entry that credited it, once succeeded.
data.auto_refill.refunded_micros requiredstringAn 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 requiredstringAn 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 requiredstring | nullStripe's decline code, or the platform's own code, of a failed or canceled refill.
data.auto_refill.last_error requiredstring | null
data.auto_refill.succeeded_at requiredstring | null
data.auto_refill.created_at requiredstring (date-time)
data.auto_refill.updated_at requiredstring (date-time)
data.monthly_cap_micros requiredstringAn 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 requiredstringThe month's refills that succeeded or are in flight.
data.month requiredstringYYYY-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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredobject
data.customer.id requiredstringThe platform's id of the customer (cus_…); every path takes your external_id.
data.customer.external_id requiredstring
data.customer.name requiredstring | null
data.customer.status required"active" | "blocked"active, or blocked: every request naming the customer is refused.
data.customer.created_at requiredstring (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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredobject
data.customer.id requiredstringThe platform's id of the customer (cus_…); every path takes your external_id.
data.customer.external_id requiredstring
data.customer.name requiredstring | null
data.customer.status required"active" | "blocked"active, or blocked: every request naming the customer is refused.
data.customer.created_at requiredstring (date-time)

customer.unblocked#

A customer was unblocked.

Payload: CustomerUnblockedEvent

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.customer requiredobject
data.customer.id requiredstringThe platform's id of the customer (cus_…); every path takes your external_id.
data.customer.external_id requiredstring
data.customer.name requiredstring | null
data.customer.status required"active" | "blocked"active, or blocked: every request naming the customer is refused.
data.customer.created_at requiredstring (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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.key requiredKeyA key of the environment, as every read shows it: never the key itself.
data.key.id requiredstringThe id of a key (key_…); never the key itself.
data.key.organization_id requiredstringThe id of your organization (org_…).
data.key.project_id requiredstringThe id of a project (proj_…).
data.key.environment_id requiredstringThe id of an environment (env_…).
data.key.name requiredstring
data.key.last_four requiredstringThe 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 requiredarray of "inference" | "management"What the key may be used for: inference (calling models through the gateway), management (this API), or both.
data.key.customer requiredstring | nullYour id for the customer the key is pinned to; null for none.
data.key.member requiredstring | nullYour id for the member the key is pinned to; null for none.
data.key.allowed_models requiredarray of string | nullModel names and prefix/* patterns a request may use; null allows every model the level above allows.
data.key.tags requiredarray of stringFree labels, up to 64 characters of visible ASCII each.
data.key.expires_at requiredstring | nullWhen the key stops working; null for never.
data.key.revoked_at requiredstring | nullWhen the key was revoked; null while it is not.
data.key.created_by_user_id requiredstring | nullThe person who created the key in the dashboard; null when a key created it, through this API.
data.key.created_at requiredstring (date-time)
data.key.updated_at requiredstring (date-time)

key.revoked#

A key was revoked; data.key is the key as GET /v1/keys/{id} shows it.

Payload: KeyRevokedEvent

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.key requiredKeyA key of the environment, as every read shows it: never the key itself.
data.key.id requiredstringThe id of a key (key_…); never the key itself.
data.key.organization_id requiredstringThe id of your organization (org_…).
data.key.project_id requiredstringThe id of a project (proj_…).
data.key.environment_id requiredstringThe id of an environment (env_…).
data.key.name requiredstring
data.key.last_four requiredstringThe 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 requiredarray of "inference" | "management"What the key may be used for: inference (calling models through the gateway), management (this API), or both.
data.key.customer requiredstring | nullYour id for the customer the key is pinned to; null for none.
data.key.member requiredstring | nullYour id for the member the key is pinned to; null for none.
data.key.allowed_models requiredarray of string | nullModel names and prefix/* patterns a request may use; null allows every model the level above allows.
data.key.tags requiredarray of stringFree labels, up to 64 characters of visible ASCII each.
data.key.expires_at requiredstring | nullWhen the key stops working; null for never.
data.key.revoked_at requiredstring | nullWhen the key was revoked; null while it is not.
data.key.created_by_user_id requiredstring | nullThe person who created the key in the dashboard; null when a key created it, through this API.
data.key.created_at requiredstring (date-time)
data.key.updated_at requiredstring (date-time)

key.rotated#

A key was rotated: the replaced key and its successor, never a secret.

Payload: KeyRotatedEvent

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.previous requiredKeyA key of the environment, as every read shows it: never the key itself.
data.previous.id requiredstringThe id of a key (key_…); never the key itself.
data.previous.organization_id requiredstringThe id of your organization (org_…).
data.previous.project_id requiredstringThe id of a project (proj_…).
data.previous.environment_id requiredstringThe id of an environment (env_…).
data.previous.name requiredstring
data.previous.last_four requiredstringThe 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 requiredarray of "inference" | "management"What the key may be used for: inference (calling models through the gateway), management (this API), or both.
data.previous.customer requiredstring | nullYour id for the customer the key is pinned to; null for none.
data.previous.member requiredstring | nullYour id for the member the key is pinned to; null for none.
data.previous.allowed_models requiredarray of string | nullModel names and prefix/* patterns a request may use; null allows every model the level above allows.
data.previous.tags requiredarray of stringFree labels, up to 64 characters of visible ASCII each.
data.previous.expires_at requiredstring | nullWhen the key stops working; null for never.
data.previous.revoked_at requiredstring | nullWhen the key was revoked; null while it is not.
data.previous.created_by_user_id requiredstring | nullThe person who created the key in the dashboard; null when a key created it, through this API.
data.previous.created_at requiredstring (date-time)
data.previous.updated_at requiredstring (date-time)
data.key requiredKeyA key of the environment, as every read shows it: never the key itself.
data.key.id requiredstringThe id of a key (key_…); never the key itself.
data.key.organization_id requiredstringThe id of your organization (org_…).
data.key.project_id requiredstringThe id of a project (proj_…).
data.key.environment_id requiredstringThe id of an environment (env_…).
data.key.name requiredstring
data.key.last_four requiredstringThe 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 requiredarray of "inference" | "management"What the key may be used for: inference (calling models through the gateway), management (this API), or both.
data.key.customer requiredstring | nullYour id for the customer the key is pinned to; null for none.
data.key.member requiredstring | nullYour id for the member the key is pinned to; null for none.
data.key.allowed_models requiredarray of string | nullModel names and prefix/* patterns a request may use; null allows every model the level above allows.
data.key.tags requiredarray of stringFree labels, up to 64 characters of visible ASCII each.
data.key.expires_at requiredstring | nullWhen the key stops working; null for never.
data.key.revoked_at requiredstring | nullWhen the key was revoked; null while it is not.
data.key.created_by_user_id requiredstring | nullThe person who created the key in the dashboard; null when a key created it, through this API.
data.key.created_at requiredstring (date-time)
data.key.updated_at requiredstring (date-time)

key.spend_limit_reached#

A key's own spend limit was first reached by a request that named no customer.

Payload: KeySpendLimitReachedEvent

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.key requiredKeyA key of the environment, as every read shows it: never the key itself.
data.key.id requiredstringThe id of a key (key_…); never the key itself.
data.key.organization_id requiredstringThe id of your organization (org_…).
data.key.project_id requiredstringThe id of a project (proj_…).
data.key.environment_id requiredstringThe id of an environment (env_…).
data.key.name requiredstring
data.key.last_four requiredstringThe 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 requiredarray of "inference" | "management"What the key may be used for: inference (calling models through the gateway), management (this API), or both.
data.key.customer requiredstring | nullYour id for the customer the key is pinned to; null for none.
data.key.member requiredstring | nullYour id for the member the key is pinned to; null for none.
data.key.allowed_models requiredarray of string | nullModel names and prefix/* patterns a request may use; null allows every model the level above allows.
data.key.tags requiredarray of stringFree labels, up to 64 characters of visible ASCII each.
data.key.expires_at requiredstring | nullWhen the key stops working; null for never.
data.key.revoked_at requiredstring | nullWhen the key was revoked; null while it is not.
data.key.created_by_user_id requiredstring | nullThe person who created the key in the dashboard; null when a key created it, through this API.
data.key.created_at requiredstring (date-time)
data.key.updated_at requiredstring (date-time)
data.limit_id requiredstringThe limit's id in the limits policy (daily, …).
data.window required"day" | "week" | "month" | "total"
data.limit_micros requiredstringAn 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 requiredstring (date-time) | nullThe window's UTC bounds; null for a total limit.
data.window_end requiredstring (date-time) | null
data.spent_micros requiredstringSettled spend in the window when the request was refused.
data.member requiredstring | nullThe member whose own limit it is; null for the customer's or the key's own limit.
data.request_id requiredstringThe refused request; it reached no provider, so it has no usage.
data.reached_at requiredstring (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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.usage_event_id requiredstringThe id of one recorded request (use_…); not its request id.
data.request_id requiredstring
data.key_id requiredstringThe id of a key (key_…); never the key itself.
data.customer requiredstring | nullYour id for the customer the request named; null for none.
data.member requiredstring | nullYour id for the member the request named; null for none.
data.wallet_id requiredstring | null
data.provider required"openai" | "anthropic" | "azure" | "google" | "groq" | "mistral" | … | stringThe provider that answered.
data.requested_model requiredstring
data.model requiredstring
data.endpoint requiredstring | nullThe 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 requiredboolean
data.tokens requiredobject
data.tokens.input requiredstringAn exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly.
data.tokens.cache_read requiredstringAn exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly.
data.tokens.cache_write_5m requiredstringAn exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly.
data.tokens.cache_write_1h requiredstringAn exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly.
data.tokens.output requiredstringAn exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly.
data.tokens.reasoning requiredstringAn exact integer as a decimal string, such as "1250": never a JSON number, which cannot hold every integer exactly.
data.cost_micros requiredstring | nullWhat the request cost before your markup, as the ledger posts it; null when it was not priced.
data.billed_micros requiredstring | nullWhat 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 requiredstring (date-time)
data.duration_ms requiredinteger
data.tags requiredarray of stringThe request's own tags (x-hixel-tags); empty when it sent none.
data.client_token_id requiredstring | nullThe 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

FieldTypeDescription
id requiredstringThe 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 requiredstring (date-time)When the change that caused the event was made, in its transaction (to the millisecond).
environment requiredstringThe environment the event happened in (env_…).
data requiredobject
data.endpoint_id requiredstringThe id of a webhook endpoint (we_…).
data.message requiredstring