For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
SupportDashboard
Getting StartedAPI ReferenceRoadmapBlog
Getting StartedAPI ReferenceRoadmapBlog
  • Getting Started
    • Overview
    • What is Schematic?
    • Concepts
  • Using Schematic
    • Who Uses Schematic
  • Quickstart
    • Quickstart
    • Account Setup
    • Entitling a Feature
    • Tracking Usage
    • Components
    • Identifying Users
    • Setup the SDK
  • Using Feature Flags
    • Overview
    • Flags
    • Features
    • Tracking Feature Usage
    • Company Overrides
    • Feature Types
  • Building Your Catalog
    • Overview
    • Plans
    • Managing Company Plans
    • Configuring the Catalog
    • Add Ons
    • Trials
  • AI Tooling
    • For Developers
  • Setting Up Billing
    • Overview
    • Usage Based Billing Models
    • Seat Based Billing Models
    • Credit burndown
  • Using UI Components
    • Overview
  • Developer Resources
    • Concepts
    • Key Management
    • Environments
    • Entity Relationship Diagram
  • Production Readiness
    • Availability
    • Observability & Support
    • Security
  • Integrations
    • Segment Integration
    • Clerk Integration
    • WorkOS Integration
    • Salesforce Integration
    • Hubspot Integration
      • General
      • Plan Changed Webhook
      • Entitlement & Credit Trigger Webhooks
  • Playbooks
    • Overview
    • Creating a metered feature
    • Backfills and usage corrections
    • Rolling out beta functionality with Flags
    • Handling customer exceptions and feature trials
    • Automatically provision customers using Stripe
    • Build a slack webhook
LogoLogo
SupportDashboard
On this page
  • Entitlement trigger events
  • Setup
  • Payload
  • Common use cases
  • Credit trigger events
  • Auto-topup failure events
  • Payload
  • Common use cases
IntegrationsWebhooks

Entitlement & Credit Trigger Webhooks

Was this page helpful?
Previous

Playbooks

Next
Built with

Entitlement and credit trigger webhooks fire based on your customers’ feature usage, not on data changes. They’re useful for notifying your team when customers are approaching or have hit a limit, and for surfacing in-app notifications to customers about their usage.

This page covers usage-based trigger events. For a full list of all webhook events, see Webhooks.

Entitlement trigger events

Entitlement triggers fire when a company’s usage for a specific feature crosses a threshold:

EventWhen it fires
entitlement.limit.reachedA company hits the hard limit for a feature (usage == allocation)
entitlement.limit.warningA company approaches the hard limit for a feature
entitlement.soft_limit.reachedA company hits a soft limit threshold for a feature
entitlement.soft_limit.warningA company approaches a soft limit threshold for a feature
entitlement.tier_limit.reachedA company hits the limit for the current tier of a tiered feature
entitlement.tier_limit.warningA company approaches the limit for the current tier of a tiered feature

Limit types explained:

  • Hard limit (limit) — the point at which access is restricted. For usage included with a plan, this represents that full usage amount. For pay as you go and overage pricing, this represents a (normally hidden) upper bound of usage you can configure, typically to prevent abuse or runaway spend.
  • Soft limit (soft_limit) — For overage pricing, represents the point at which users will start being billed for usage. This is configurable and shown to the user in Schematic components.
  • Tier limit (tier_limit) — For tiered pricing, fires as a company crosses into each successive pricing tier, letting you notify them of cost changes or prompt an upgrade.

Setup

Entitlement triggers must be configured per feature. When creating or updating a webhook endpoint in Schematic, add one or more entitlement trigger configs — each specifying the feature_id you want to monitor.

Payload

The body of each entitlement trigger webhook is typed as WebFeatureUsageWebhookOutput in the Node.js SDK:

FieldDescription
entitlementThe entitlement ID that triggered the event
featureDetails about the feature being tracked
companyDetails about the company whose usage triggered the event
usageThe company’s current usage count
allocationThe feature’s allocation (limit) for this company
metricResetAtWhen the usage metric resets, if applicable

Common use cases

  • Internal alerts: Notify your team in Slack or your CRM when a customer hits a limit, so you can proactively reach out.
  • Customer-facing notifications: Trigger an in-app banner or email to customers when they’re nearing or over their limit.

Credit trigger events

Credit triggers fire based on credit usage:

EventWhen it fires
credit.limit.reachedA company’s credit balance reaches the configured limit
credit.limit.warningA company’s credit balance approaches the configured limit

Credit triggers are configured per credit type, using a credit_id in the trigger config when creating or updating a webhook endpoint.

Auto-topup failure events

These events fire when a scheduled credit auto-topup fails:

EventWhen it fires
auto.topup.hard.failureAn auto-topup attempt fails and will not be retried
auto.topup.retry.exceededAn auto-topup has failed too many consecutive times

Payload

auto.topup.hard.failure — typed as CreditsAutoTopupHardFailure:

FieldDescription
companySummary of the affected company
creditSummary of the credit that failed to top up
errorMessageHuman-readable error description
stripeErrorCodeStripe error code, if the failure originated in Stripe

auto.topup.retry.exceeded — typed as CreditsAutoTopupRetryFailure:

FieldDescription
companySummary of the affected company
creditSummary of the credit that failed to top up
consecutiveFailuresNumber of consecutive failed attempts
lastErrorMessageHuman-readable description of the most recent error
stripeErrorCodeStripe error code from the most recent attempt, if applicable

Common use cases

  • Internal alerts: Page your payments or ops team when a customer’s auto-topup is failing so you can reach out to update the payment method or remove access if you suspect abuse.
  • Customer-facing notifications: Send a billing failure email to the customer so they can update their payment method.