> ## Documentation Index
> Fetch the complete documentation index at: https://commet.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# credits.depleted

> A subscription ran out of credits.

## When this fires

The async usage processor fires this once when a deduction moves the credit balance from positive to zero. From this point, usage requests that need more credits than remain are rejected with `insufficient_credits`.

`customer.state_changed` fires alongside it with trigger `credits_depleted`, carrying the customer's full current entitlement state.

Use it to block gated features in your app and drive the customer to a credit pack purchase.


## OpenAPI

````yaml /openapi/en/webhooks/2026-08-27.json webhook credits.depleted
openapi: 3.1.0
info:
  title: Commet Webhooks
  version: '2026-08-27'
  description: >-
    Outbound webhook events emitted by the Commet API. Each event is delivered
    as a signed POST to your configured endpoints.
servers: []
security: []
paths: {}

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.