# Meterbox > The monetization platform for the AI era. ## Features - **Isolated by design** (`{ affinity: isolated }`): Single-tenant SaaS architecture: your organization gets its own dedicated environment and storage. Your billing and usage data is kept separate from other customers, with no shared databases for that data and no competition for resources. Every connection between our control plane and your environment uses mutual TLS, and data at rest is encrypted with customer-managed keys. This provides strong security, reliable performance, and built-in isolation for compliance and data governance needs. - **Real-time metering** (`POST /v1/meter`): Ingest token usage events via REST or batch, from your servers or, with a customer token, straight from the browser. Each event writes the in-cluster ledger (the authoritative meter), deduplicated on `transaction_id` and recorded without ever blocking your inference path. Late events backfill into the right historical period and auto-reconcile at the next close. Send an `Idempotency-Key` with any API write and a retry returns the first result instead of running twice. - **Ingest from anywhere** (`POST /v1/meter/cloudevents`): Point your existing event stream at Meterbox without a translation layer: CloudEvents 1.0 (binary, structured, or batched), a Segment destination, an Airbyte destination, a long-lived Kafka consumer, or S3/GCS/Azure bucket sweeps can all be mapped directly to meter events through dotted-path field mapping, with the same deduplication and idempotency guarantees as the native API. - **Customers from your signups and exports** (`POST /v1/customer-sources/events`): Add customers the moment they sign up in your app. Send each signup, change, and deletion to one endpoint in your own event's shape, and Meterbox creates, updates, or archives the customer and answers at once, with no transform service in between. Point a few fields at your event, or send the plain shape and keep the defaults. And bring the ones you already have: a CSV or JSON export from your CRM, a spreadsheet, or another biller as it is, mapped once and saved, or straight from Stripe. - **AI-native pricing** (`model_versions + latency_sla`): Price what AI actually does: `per-model_version` price bands (charge claude-3.7 differently from claude-3.5), latency-SLA premiums for sub-500ms responses, custom billing dimensions (`gpu_seconds`, `training_cycle_seconds`, `storage_gb`) with their own tier ladders, dimensional plan-price overrides by region, deployment tier, or any key you define, and cost-plus model pricing that follows provider rates with a markup you set, with provider price changes from the public LiteLLM price list proposed for you to confirm. Change the rates of a model for new customers only, and existing customers keep the rates they signed up on until you move them. - **Meterbox Advisor** (`propose, review, apply`): Describe a deal, or a model and how to bill it, in plain English. When you sign up, give it your pricing page or a pricing document, or answer a few questions, and it drafts your plans for you to review. For a deal, it proposes the plan, the new models the deal needs (priced only from what you wrote, with provider costs from a public price list), add-ons, and limits, every reference checked against your live catalog. Review the exact API calls and apply them in one click, or open a proposed model in the model form first. It runs on your own Anthropic key, and only once you turn it on. Or bring your catalog as a file: Import from file shows what it would change, plan by plan, and imports what you pick as drafts. - **Contract import** (`POST /v1/contracts/docusign/sync`): Turn signed contracts into billing. Sign in with DocuSign and import completed envelopes, or upload a signed PDF. Meterbox reads the commit (multi-year ramps included), term, discount, true-up cadence, and custom rates, quoting the contract beside each one, into a proposal you review and turn into a draft quote. Contracts are read with your own Anthropic key, and the PDF is never stored. - **Outcome-based pricing** (`POST /v1/meter/outcomes`): The top of the pricing ladder: claim a billable outcome ("ticket resolved", "campaign sent") priced from your catalog. It bills only after you confirm it, or when its verification window closes undisputed. Disputed claims void without charge. A confirm/dispute step, not an attribution algorithm, is what makes outcome pricing practical: you verify the outcome happened instead of having to prove causation. Turn on advanced outcome pricing for a self-serve catalog editor, volume-discount tiering, and a customer-portal view of their own claim history. - **Entitlement engine** (`GET /v1/entitlements/:id`): Sub-millisecond quota checks from an in-memory cache. Model access gates, plan feature flags (your own features alongside the built-in ones, each shown on your plans and pricing page in the words of the plan or by its own name, and a plan can include every feature of another, listed as one line), configuration entitlements (per-plan scalar values like `support_sla_hours`), grace periods between soft-alert and hard-block, overage policies (block, throttle, or bill), JWT tokens embedding full entitlement state, and an in-process Node SDK (`@meterbox/entitlement-sidecar`) with stale-while-error so your gateway stays live through API outages. - **Tamper-Proof Ledger** (`GET /v1/ledger/:id`): Every usage event, subscription charge, overage, credit, and discount becomes a ledger entry, and each closed billing period is sealed with a verifiable SHA-256 digest, so a finalized period that was altered is detectable (SOC 1 ICFR ledger immutability). Monthly statements with day-by-day running balances and per-model breakdowns. Revenue recognition (ASC 606 / GAAP) derives deferred vs recognized revenue straight off the same ledger. - **Agent wallets** (`POST /v1/wallets/:id/reserve`): Per-agent (sub-customer) credit wallets with their own balance, spending limits, and budget caps. Manage each AI agent's budget independently under a single account. Credits are temporarily set aside before use and then either charged or returned, preventing overspending even when multiple requests happen at the same time. Unused reservations are automatically released if a client disconnects or fails to complete a request. - **Credits, Caps & dunning** (`POST /v1/customers/:id/credits`): Promotional and paid credit grants with priority and expiry ordering, balance-low webhooks, off-session auto-recharge, and credit notes for finalized invoices. Per-customer spend caps return HTTP 402 before a runaway agent can burn through the budget, and a configurable dunning policy moves past-due customers from retries to escalation. Show balances in your own unit, such as Credits or Bits, at a rate you set. - **Trials & win-back** (`POST /v1/customers/:id/trial`): Trial entitlements grant access to a richer plan for a specified number of days without modifying the underlying subscription. This includes reverse trials, which begin with full access and subsequently step down to the original plan. A plan can also end after a set number of days, once per person (by email, aliases included), like a cloud free tier: customers then choose another plan to keep going. The cancellation flow presents plan-configured retention offers (for example, discounts, trial extensions, or downgrades), allowing the churn screen to attempt user retention before processing the cancellation. - **Discounts** (`POST /v1/coupons`): Percentage-off and fixed-amount coupons with once, repeating, or forever durations. Limit one to particular plans or customers; set max redemptions and expiry dates; sync promotion codes with Stripe. A customer's coupon discounts the usage billed at period-end close too. - **Pricing intelligence** (`GET /v1/dashboard/pricing-insights`): FinOps-grade cost visibility: a COGS-aware margin view (revenue vs. provider cost by model), pricing simulations that replay real usage against a draft change to a model’s rates or a plan’s price and included usage, NDR and GDR retention cohorts, ARR with its quarter-over-quarter and year-over-year growth, revenue goals tracked against actual and projected revenue, CAC payback, burn multiple, and ARR per employee from the company financials you enter each quarter, value delivered reports that show a customer what they got for what they paid, as a PDF with your logo, deterministic A/B pricing experiments, market packaging benchmarks alongside your own catalog, and feature-adoption data that flags upsell candidates and informs what to build next. - **Bring your own billing provider** (`PUT /v1/settings/billing`): Stripe and Zuora out of the box, or Custom Invoicing for a BYO-ERP flow where your finance system owns issuance and collections against Meterbox-computed totals. Per-customer billing profiles override the provider and the payment terms for tailored contracts (on net 15 to net 90, the invoice is emailed to pay within the days, and dunning starts when it goes overdue), supporting seat-based billing, contract commitments with minimum-spend true-ups, multi-year ramps that step the commit and negotiated rates up over the term, and localized pricing by country and currency. - **Quota alerting & durable webhooks** (`GET /v1/alerts/:id`): Configurable alerts can be triggered at 80%, 90%, 100%, or custom absolute token thresholds, with per-period deduplication to prevent duplicate notifications. Events are delivered via HTTP POST or AWS SQS with at-least-once delivery guarantees, exponential backoff retries, and a replayable delivery log, ensuring that downstream outages never result in lost events. - **Billing-ops audit trail** (`GET /v1/audit`): Every plan, customer, and credit mutation is captured in a queryable audit trail with before/after diffs and actor attribution, including per-individual operator attribution for shared admin keys. CLI calls forward `X-Operator-Id` from `METERBOX_OPERATOR_ID`, and MCP calls are attributed to the agent key that made them, so every action traces back to a specific operator or agent. Audit records are protected by a tamper-evident SHA-256 hash chain. Filter by event, target, and time, explore activity in the dashboard, or export to your SIEM. - **Granular RBAC** (`PUT /cp/rbac/matrix`): Beyond the built-in Owner/Admin/Member roles, each organization defines a configurable capability matrix that authorizes privileged actions independently. This enables fine-grained delegation. For example, billing operations staff can issue account credits without also receiving permissions to publish plans. Capabilities are assigned individually rather than inherited from broad roles, while Owners always retain unrestricted access to all capabilities. API keys can be full access, read-only, or read-write, optionally limited to parts of the API, or limited to reporting the usage of one customer, so each integration gets only what it needs. - **Period-end close** (`POST /v1/billing/close`): Automated billing close: we read usage from the in-cluster ledger, calculate overage, bill each plan's own price, its seats, and its add-ons (in arrears or in advance, by days or in full, your choice), add Stripe line items, check that the Stripe invoice totals what Meterbox computed before charging it (a mismatch is held for review), apply each customer's coupon before credits and tax, finalize invoices (one a coupon fully covers is recorded paid, never charged), mark ledger entries paid, and count coupon durations down. Opt-in finance approval gate holds invoices at ready-to-issue until a human signs off. Found a pricing mistake later? Re-rate a closed month and stage each customer's difference on their next invoice. - **Tax engine** (`POST /v1/tax/quote`): Flexible tax handling for invoices and credit notes: use built-in jurisdiction rates for on-prem and air-gapped deployments, or connect Avalara or Anrok for automated tax calculation. A single quote endpoint lets you preview exactly what will be applied before closing, and credit notes automatically handle both net and tax amounts. - **Accounting export** (`GET /v1/accounting/journals`): Keep your ledger as the source of truth. Invoices, payments, credit notes, and tax entries are projected into your general ledger through an NDJSON stream or NetSuite/Xero import CSVs, mapped to your accounting structure. Lazy projection means no duplicated state and no sync drift. - **Revenue anomaly detection** (`GET /v1/anomalies`): An hourly scan of the ledger and catalog identifies spend spikes (comparing 24-hour cost against the trailing median), churn spikes, aggregation drift (customers whose integration has silently broken), models priced under your margin floor after a provider raised its price, and models whose revenue has no provider cost behind it, which overstates their margin. Results are deduplicated, surfaced in the pricing insights dashboard, and trigger an `anomaly.detected` webhook on first detection. - **Marketplace bridges** (`/v1/integrations/*-marketplace`): Sell through AWS, GCP, and Azure Marketplaces without giving Meterbox access to your cloud credentials. Lightweight entitlement bridges operate in records-only mode: your seller-side handler validates marketplace events and POSTs the resolved entitlement data to Meterbox. Meterbox then maps lifecycle events to customer status and makes the customer immediately available for metering. - **CLI + MCP Server** (`npm i -g @meterbox/cli`): Connect Claude, ChatGPT, Cursor, VS Code, or Codex to your sandbox or production environment with a URL: sign in and approve the connection, or use an agent key. Agents search, describe, and run your API through seven tools, limited to the operations reviewed for agent use. In production an agent can only propose changes, which an owner or admin approves one by one. Destructive actions are sandbox-only and blocked unless your billing provider is in test mode, and every write is recorded in the audit log before it runs. Each agent key and connected app has an activity view showing its recent calls, denials, and rate-limit hits. `meterbox`, the CLI, generates a command for every API operation from your deployment's live OpenAPI spec. - **Meterbox UI Components + Customer Portal** (`npm i @meterbox/customer-portal`): `@meterbox/react` drops ``, ``, ``, ``, ``, ``, ``, and `` straight into your product. Each widget self-fetches with a short-lived customer JWT, and `` with a publishable key, so no admin key in the browser. A one-line script embeds your whole pricing page (plans, add-ons, public promotions, FAQ) on any site with a featured plan, free trials, a button per plan, every feature in the words of the plan or by its name and description, Custom for a plan without a fixed price, included credits in your credit unit, and promotional prices with their code, and every plan shows what usage costs: the tokens included, the input and output rates of every model per 1M tokens including any tiered pricing, and what happens past the included amounts. Or skip the wiring entirely with `@meterbox/customer-portal`, a multi-page Account/Plans/Credits portal in one component, where customers download their invoice PDFs, update their card and billing details on Stripe directly, and those who cancel see your retention offers first. Link straight to canceling or to a plan change, and show the portal in Spanish, French, or German (or your own translations), with dates and prices formatted for each customer. Set your logo, colors, and font once in Settings, and the embed, every component, the portal, quote links, and emails all carry your brand. Backed by `@meterbox/node`, a fully typed JavaScript SDK. ## Security & compliance - **Built for SOC 2 & FedRAMP** (`SOC 2 · FedRAMP · NIST 800-53`): Technical controls mapped to NIST 800-53 out of the box: access control, audit, session management, transport, and input validation. A compliance-ready foundation that shortens your path to an audit. - **MFA, SSO & strong auth** (`RFC 6238 · OIDC · NIST 800-63B`): TOTP multi-factor with one-time backup codes, OIDC single sign-on for Google and enterprise IdPs, bcrypt-hashed credentials, and NIST 800-63B password rules with breached-password screening via k-anonymity. SCIM provisioning adds people who already have an account only on email domains you have verified with DNS, or once they accept your invite. - **Session controls** (`FedRAMP AC-11 / AC-12`): The application enforces sliding idle session timeouts with a hard absolute session lifetime in alignment with FedRAMP AC-11 and AC-12. It implements CSRF protection using the double-submit cookie pattern and secures session cookies with the `HttpOnly`, `Secure`, and `SameSite` attributes. Sessions automatically expire after a period of inactivity and are terminated upon reaching the maximum allowed session duration. Long-lived (e.g., 30-day) session tokens are not permitted. - **Two append-only audit trails** (`GET /cp/audit · /v1/audit`): User lifecycle events (signup, login, MFA, invites, role changes) land in a tamper-evident SHA-256-chained log on the control plane. A separate billing-ops trail captures plan / customer / credit mutations with before-after diffs. Both pull straight from the API with cursor pagination. Meterbox checks both for tampering every day, and when our staff look up one of your customers, it’s recorded in your log with who looked. - **Your data never leaves your cluster** (`Air-gapped by design`): Single-tenant by design: includes a bundled in-cluster datastore and cache, with no managed or shared database. The provider keys and secrets you connect are encrypted where they are stored, under a key of their own for each of your environments. Optional encrypted off-cluster backups (using a tenant-supplied encryption key, never ours) can be sent to your S3, GCS, or Azure storage on a schedule you choose. Air-gap deployable for regulated and sovereign environments. - **Encryption in transit & at rest** (`mTLS · CMEK · FIPS 140-3`): Control-plane and data-plane traffic is mutually authenticated over mTLS, each side presenting its own certificate issued by an internal CA (not a shared wildcard cert), so a compromised tenant pod cannot impersonate another. Storage volumes use self-managed (CMEK) encryption keys rather than the cloud provider's default. The control plane and data plane run their cryptography through OpenSSL's FIPS 140-3 validated provider. - **Hardened by default** (`OWASP · CSP · HSTS`): The OWASP secure headers baseline is applied to every response, including strict `Content-Security-Policy` with violation reporting, HSTS, and cross-origin isolation. Defense in depth is built in from day one, not bolted on after launch. Each environment signs its customers' access tokens with its own key, so a key exposed in one environment can't be used against another. ## How it works - **01. Define your config**: Set up your AI models, pricing per 1k tokens, plan limits, and feature flags. The platform validates it on startup. - **02. Your config is provisioned immediately**: We wire up everything for you: the model catalog and pricing tiers, Stripe products and prices, and seed coupons. - **03. Start metering usage**: At each usage event, fire POST /v1/meter with the token counts. The event is queued and acknowledged immediately. Poll the status URL for the entitlement decision, cost, and usage percentages. - **04. Close billing cycle**: A single scheduled job orchestrates the complete period-end close, including ledger usage reads, overage computation, Stripe invoice generation, ledger updates, and coupon tick processing. ## Deployment tiers - **Cloud**: Same solution, same APIs, run by Meterbox in shared infra. - For: SaaS teams that want the platform without maintaining the cluster. - Deployment: Meterbox-operated cluster, multi-tenant control plane + per-(org, env) data-plane setup. Each tenant runs in its own fully isolated data plane: separate compute, storage, and database, with nothing shared. - SLA: 99.9% uptime, 4h response for Sev1 - Compliance: SOC 2 Type II (in progress) - **Self-Managed**: Install the same solution in your own cloud. - For: Teams that need data residency, regulatory control, or zero outbound dependencies. - Deployment: Deploy Meterbox in any conformant cloud (EKS, GKE, AKS, k3s, OpenShift, on-prem). Bundled DB + Cache, no managed services required. - SLA: Best-effort community support, paid support add-on - Compliance: HIPAA-ready · ISO 27001 path - **Managed (sovereign)**: Meterbox operates a dedicated cluster inside your sovereign cloud or region. - For: Defense, public sector, fintech, healthcare: workloads with data-sovereignty + FedRAMP / HIPAA / GDPR-grade requirements. - Deployment: Single-tenant cluster in your chosen region (AWS GovCloud, GCP Assured, Azure Government, EU-only AWS, on-prem). Meterbox SRE runs it while you still hold the keys. - SLA: 99.95% uptime, 4h response for Sev1, plus 24/7 oncall - Compliance: FedRAMP Moderate (in progress) · HIPAA · GDPR data-residency · ISO 27001 (roadmap) ## Pricing - **Free** ($0): $300 of Meterbox usage credit for 90 days, no card required - $300 of usage credit included - Up to 10 customers - All core APIs - In-cluster metering - Ledger & statements - Community support - Webhooks - Basic Models - API Access - Usage Dashboard - **Pay as you go** ($249 per month): For production workloads and growing teams - Everything in the Free plan - Up to 500 customers, then $0.30/customer/mo - 10M events/mo included, then $10/1M events - Quota alerting (Slack/webhook) - Entitlement JWT tokens - Coupon engine - Period-end close automation - Multi-region in Production - All Models - Email Support - **Enterprise** (Custom contract): Unlimited customers, SLA, dedicated support - Everything in Pay As You Go plan - Unlimited customers - White-glove onboarding - Custom SLA - SSO - Audit logs - On-prem deployment option - Dedicated Slack channel - Custom Contracts - Dedicated Support - Priority Support ## API reference Full machine-readable spec, including every request/response field: [https://meterbox.ai/openapi.json](https://meterbox.ai/openapi.json) Authenticate with your API key (Settings > API keys) as `Authorization: Bearer mb_live_...`. `/v1/customer-portal/*` takes a customer token from `POST /v1/tokens/{id}` instead. ### Meta - `GET /health`: Liveness check ### Catalog - `GET /v1/addons`: List catalog add-ons - `POST /v1/addons`: Create or upsert an add-on (admin) - `PUT /v1/addons/{id}`: Replace an add-on (admin) - `DELETE /v1/addons/{id}`: Delete an add-on (admin): attached customers keep their snapshot - `GET /v1/catalog/pricing-page`: Public, landing-page-ready pricing snapshot (publishable key) - `GET /v1/catalog/pricing-page.js`: Embeddable pricing-widget script (publishable key) - `GET /v1/features`: Your own features - `PUT /v1/features/{id}`: Create or replace one of your features (admin) - `DELETE /v1/features/{id}`: Delete one of your features (admin) - `GET /v1/models`: List models with public pricing. Cursor-paginated, newest first. - `POST /v1/models`: Create or upsert a model (admin) - `PUT /v1/models/{id}`: Replace a model (admin) - `DELETE /v1/models/{id}`: Delete a model (admin): refuses if any plan or customer still references it - `POST /v1/models/{id}/price-change/apply`: Apply a provider price change (admin) - `POST /v1/models/{id}/price-change/dismiss`: Dismiss a provider price change (admin) - `GET /v1/models/{id}/price-change/preview`: Preview a provider price change (admin) - `GET /v1/models/{id}/rates`: A model's rate history and who pays each version (admin) - `POST /v1/models/{id}/rates/move`: Move every customer to the model's current rates (admin) - `GET /v1/models/price-changes`: Provider price changes to review (admin) - `GET /v1/offerings/export`: Atomic full-catalog export (admin) - `POST /v1/offerings/import`: Merge a catalog file into this environment, as drafts (admin) - `POST /v1/offerings/import/preview`: What importing a catalog file would change (admin) - `GET /v1/outcomes`: List catalog outcomes (outcome-based pricing) - `POST /v1/outcomes`: Create or upsert an outcome (admin, requires advanced_outcomes_enabled) - `PUT /v1/outcomes/{id}`: Replace an outcome (admin, requires advanced_outcomes_enabled) - `DELETE /v1/outcomes/{id}`: Delete an outcome (admin, requires advanced_outcomes_enabled) - `GET /v1/plans`: List plans (with customer count + MRR). Cursor-paginated, newest first. - `POST /v1/plans`: Create or upsert a plan (admin) - `PUT /v1/plans/{id}`: Replace a plan (admin) - `DELETE /v1/plans/{id}`: Delete a plan (admin): refuses if any customer is on it - `POST /v1/plans/{id}/publish`: Publish the working draft as the next immutable plan version (admin) - `GET /v1/plans/{id}/versions`: Published version history for a plan, with per-version subscriber counts (admin) - `GET /v1/plans/{id}/versions/{version}`: One published version of a plan: its terms for the customers pinned to it (admin) - `GET /v1/plans/{id}/window`: Whether a person has used a plan that ends (admin) ### Customers - `POST /v1/customer-sources/events`: Create, update, or archive a customer from your app's own event (admin) - `GET /v1/customers`: List all customers (admin). Cursor-paginated, newest first. - `POST /v1/customers`: Provision a customer, in Stripe and the ledger (admin) - `DELETE /v1/customers/{cid}/credits/{gid}`: Revoke an active credit grant (admin) - `GET /v1/customers/{id}`: Get a customer with usage summary (admin) - `DELETE /v1/customers/{id}`: Cancel subscription (admin) - `GET /v1/customers/{id}/addons`: List a customer's attached add-ons (admin) - `POST /v1/customers/{id}/addons`: Attach an add-on, snapshotted onto the subscription (admin) - `DELETE /v1/customers/{id}/addons/{addOnId}`: Detach an add-on (admin) - `GET /v1/customers/{id}/allowance`: Usage-allowance window + banked reset tokens (admin) - `POST /v1/customers/{id}/allowance/reset`: Spend a banked reset → refill the window now (admin) - `POST /v1/customers/{id}/allowance/reset-tokens`: Grant banked reset tokens (admin) - `GET /v1/customers/{id}/allowance/resources`: Every resource with its own tracked allowance state (admin) - `POST /v1/customers/{id}/archive`: Archive a customer (admin): reversible soft-delete, does not cancel the subscription - `GET /v1/customers/{id}/billing-profile`: Get the customer's effective billing profile (admin) - `PATCH /v1/customers/{id}/billing-profile`: Set per-customer billing profile overrides (admin) - `DELETE /v1/customers/{id}/billing-profile`: Clear the customer's billing profile override (admin) - `DELETE /v1/customers/{id}/cancellation`: Revert cancel intent (admin) - `GET /v1/customers/{id}/cancellation`: Read the cancellation record (admin) - `POST /v1/customers/{id}/cancellation/accept-offer`: Apply a retention offer (admin) - `POST /v1/customers/{id}/cancellation/confirm`: Confirm voluntary cancellation (admin) - `POST /v1/customers/{id}/cancellation/initiate`: Record cancel intent + return retention offers (admin) - `PUT /v1/customers/{id}/contract-commit`: Set or replace the contract commit overlay (admin) - `DELETE /v1/customers/{id}/contract-commit`: Clear the customer's contract commit overlay (admin) - `POST /v1/customers/{id}/coupon`: Apply a coupon to an existing subscription (admin) - `DELETE /v1/customers/{id}/coupon`: Remove the active coupon (admin) - `POST /v1/customers/{id}/credit-notes`: Issue a credit note against a finalized invoice (admin) - `GET /v1/customers/{id}/credit-notes`: List credit notes for a customer (admin) - `GET /v1/customers/{id}/credits`: List a customer's credit grants + active balance (admin) - `POST /v1/customers/{id}/credits`: Grant a credit to a customer (admin) - `POST /v1/customers/{id}/credits/checkout`: Mint a Stripe Checkout session for a self-serve credit top-up (admin) - `PATCH /v1/customers/{id}/credits/settings`: Set the per-customer credit-balance low-alert threshold (admin) - `GET /v1/customers/{id}/credits/timeseries`: Balance history for a customer's credit grants (admin) - `PATCH /v1/customers/{id}/currency`: Override the customer's pinned billing currency (admin) - `GET /v1/customers/{id}/draft-invoice`: Mid-period draft invoice, as the customer portal shows it (admin) - `POST /v1/customers/{id}/dsar/erase`: GDPR Art. 17: irreversibly erase PII on the customer record and remove the customer's webhook deliveries, financial records retained (admin). Reports the datasets still holding the old name or email. - `GET /v1/customers/{id}/dsar/export`: GDPR Art. 15: export a subject's bundle (customer + ledger + credit grants) (admin) - `POST /v1/customers/{id}/entitlements/recalculate`: Recompute effective entitlements (admin): materialize expired promo grants, reseed the metering cache, re-issue token - `PATCH /v1/customers/{id}/info`: Edit a customer's name and/or email (admin) - `GET /v1/customers/{id}/lineage`: Everywhere this customer's data is recorded: customer record, ledger entries, credit grants, billing-audit events, webhook deliveries, and reverse-ETL pushes (admin) - `GET /v1/customers/{id}/optimization`: Plan fit, as the customer portal shows it (admin) - `PUT /v1/customers/{id}/outcome-minimum`: Set or replace the customer's monthly outcome minimum (admin) - `DELETE /v1/customers/{id}/outcome-minimum`: Clear the customer's outcome minimum (admin) - `GET /v1/customers/{id}/outcomes`: List claimed outcome events (admin) - `POST /v1/customers/{id}/outcomes/{eventId}/confirm`: Confirm a pending outcome early (admin) - `POST /v1/customers/{id}/outcomes/{eventId}/dispute`: Dispute a pending outcome (admin) - `POST /v1/customers/{id}/pending-lines`: Stage an ad-hoc invoice line (admin) - `GET /v1/customers/{id}/pending-lines`: List pending invoice lines for a customer (admin) - `DELETE /v1/customers/{id}/pending-lines/{lineId}`: Revoke a pending invoice line (admin) - `PATCH /v1/customers/{id}/plan`: Upgrade or downgrade a plan, now or at period end (admin) - `POST /v1/customers/{id}/plan-billing`: Have period-end close bill a customer's plan (admin) - `DELETE /v1/customers/{id}/plan/scheduled`: Cancel a pending scheduled plan change (admin) - `PATCH /v1/customers/{id}/pricing-dimensions`: Replace the customer's pricing-dimension map (admin) - `GET /v1/customers/{id}/promo-entitlements`: List a customer's promotional entitlements (admin) - `POST /v1/customers/{id}/promo-entitlements`: Grant a free, time-bounded promotional entitlement (admin) - `DELETE /v1/customers/{id}/promo-entitlements/{grantId}`: Revoke a promotional entitlement (admin): record kept for audit - `POST /v1/customers/{id}/purge`: Permanently delete an archived customer (admin): irreversible - `POST /v1/customers/{id}/rates/move`: Move the customer to every model's current rates (admin) - `GET /v1/customers/{id}/referral`: Referral code + usage (admin) - `POST /v1/customers/{id}/referral/redeem`: Redeem a referral code for this customer (admin) - `PATCH /v1/customers/{id}/resource-limits`: Replace the per-resource quota map (admin): '*' key is the default cap - `GET /v1/customers/{id}/resource-usage`: Per-resource (sub-customer/workspace) MTD usage vs configured caps (admin) - `PATCH /v1/customers/{id}/seats`: Update the customer's seat count (admin) - `PUT /v1/customers/{id}/spend-cap`: Set or replace the per-customer spend cap (admin) - `DELETE /v1/customers/{id}/spend-cap`: Clear the customer's spend cap (admin) - `POST /v1/customers/{id}/subscription/preview`: Preview the cost impact of a plan and/or add-on change (admin, read-only) - `PATCH /v1/customers/{id}/tags`: Replace the customer's segmentation tags (admin) - `POST /v1/customers/{id}/trial`: Start a trial entitlement (admin) - `GET /v1/customers/{id}/trial`: Get the customer's trial overlay (admin) - `DELETE /v1/customers/{id}/trial`: Cancel an active trial (admin) - `POST /v1/customers/{id}/trial/convert`: Convert an active trial to paid (admin) - `POST /v1/customers/{id}/unarchive`: Restore an archived customer (admin) - `GET /v1/customers/{id}/value-report`: A customer's value report (admin) - `GET /v1/customers/{id}/value-report.pdf`: A customer's value report as a PDF (admin) - `PUT /v1/customers/{id}/value-report/{period}`: State the value a customer got in a period (admin) - `DELETE /v1/customers/{id}/value-report/{period}`: Remove a period's stated value (admin) - `POST /v1/customers/{id}/wallets`: Create a per-(customer, resource_id) USD wallet (admin) - `GET /v1/customers/{id}/wallets`: List wallets for a customer (admin) - `GET /v1/customers/export`: Export all customers as JSON (default) or CSV (admin) - `POST /v1/customers/import`: Bulk records-only import of customers (admin): migrate off another biller - `GET /v1/customers/import/mappings`: Saved import mappings (admin) - `PUT /v1/customers/import/mappings/{id}`: Save an import mapping, for importing the same kind of file again (admin) - `DELETE /v1/customers/import/mappings/{id}`: Delete a saved import mapping (admin) - `POST /v1/customers/import/stripe`: Import the connected Stripe account's customers (admin) - `GET /v1/wallets/{wid}`: Get a wallet by id (admin) - `PATCH /v1/wallets/{wid}`: Update wallet label / cap / rate limit (admin) - `DELETE /v1/wallets/{wid}`: Archive a wallet (admin) - `GET /v1/wallets/{wid}/balance`: Get live wallet balance (admin) - `POST /v1/wallets/{wid}/grant`: Top up wallet balance (admin) - `GET /v1/wallets/{wid}/reservations`: List reservations for a wallet (admin) - `POST /v1/wallets/{wid}/reservations/{rid}/commit`: Commit a pending reservation (admin) - `POST /v1/wallets/{wid}/reservations/{rid}/release`: Release a pending reservation (admin) - `POST /v1/wallets/{wid}/reserve`: Reserve wallet headroom for a pending charge (admin) ### Metering - `POST /v1/meter`: Enqueue a single usage event - `POST /v1/meter/backfill`: Backfill / late-event ingestion (admin) - `POST /v1/meter/batch`: Enqueue up to 5,000 usage events - `POST /v1/meter/cloudevents`: Enqueue usage as a CloudEvents 1.0 envelope (single / structured / batched) - `POST /v1/meter/outcomes`: Claim a billable outcome (outcome-based pricing) - `GET /v1/meter/queue-status`: Current metering-queue backlog for this environment (admin) - `POST /v1/meter/run`: Manually drain the metering queue (admin) - `GET /v1/meter/status/{id}`: Poll the outcome of an enqueued usage event ### Entitlements - `GET /v1/entitlements/{id}`: Pre-flight quota check (admin) - `GET /v1/entitlements/{id}/config`: Configuration entitlements for the customer's plan (admin) - `GET /v1/entitlements/{id}/config/{key}`: Single configuration-entitlement check (admin) - `GET /v1/entitlements/{id}/features`: All feature gates for the customer's plan (admin) - `GET /v1/entitlements/{id}/features/{feature_id}`: Single feature check (admin) - `GET /v1/entitlements/feature-catalog`: Feature catalog organized into ordered groups (paywall/portal-ready) - `GET /v1/usage/{id}`: Cached period usage (admin) ### Tokens - `POST /v1/tokens/{id}`: Issue a JWT entitlement token (admin) - `POST /v1/tokens/{id}/refresh`: Force-rotate the entitlement token (admin) - `POST /v1/tokens/verify`: Verify and decode a token ### Coupons - `POST /v1/coupons`: Create a coupon (admin) - `GET /v1/coupons`: List coupons (admin) - `GET /v1/coupons/{code}`: Get a coupon by code (admin) - `DELETE /v1/coupons/{code}`: Archive a coupon (admin) - `PATCH /v1/coupons/{code}/customers`: Restrict a coupon to customers (admin) - `POST /v1/coupons/validate`: Preview a coupon's discount ### Ledger - `GET /v1/ledger`: Cross-customer ledger feed (admin). Cursor-paginated by timestamp, newest first. - `GET /v1/ledger/{id}`: Recent transaction feed for a customer (admin) - `POST /v1/ledger/{id}/credits`: Apply a manual credit (admin) - `GET /v1/ledger/{id}/live`: Stream a customer's new ledger entries (admin) - `GET /v1/ledger/{id}/periods`: Billing periods with ledger activity for a customer (admin) - `GET /v1/ledger/{id}/seals`: Period seals for a customer's ledger (admin) - `GET /v1/ledger/{id}/seals/verify`: Verify a customer's sealed ledger periods (admin) - `GET /v1/ledger/{id}/statement/{year}/{month}`: Full monthly statement (admin) - `GET /v1/ledger/{id}/statement/current`: This month's statement (admin) - `GET /v1/ledger/export.csv`: Download the cross-customer ledger as CSV (admin). Same dataset as `GET /v1/ledger`, newest first. `Content-Type: text/csv`, sent as an attachment. ### Alerts - `GET /v1/alerts`: All active alerts (admin). Cursor-paginated by fired_at, newest first. - `GET /v1/alerts/{id}`: Active alerts for a customer (admin) - `DELETE /v1/alerts/{id}`: Clear a customer's alerts (admin) - `POST /v1/alerts/{id}/acknowledge/{alert_id}`: Mark one of a customer's alerts as seen (admin) - `GET /v1/alerts/config`: Env-derived alert configuration - `GET /v1/alerts/rules`: Configured alert rules + summary - `POST /v1/alerts/rules`: Add a custom quota-percentage alert rule (admin) - `DELETE /v1/alerts/rules/{ruleId}`: Remove a custom alert rule (admin) ### Billing - `GET /v1/billing/actuals/{id}`: Authoritative usage from the ledger (admin) - `GET /v1/billing/ar-aging`: Accounts-receivable aging report (admin) - `POST /v1/billing/checkout`: Start a hosted Stripe Checkout session to subscribe a tenant end-customer to a tenant plan (admin) - `POST /v1/billing/close`: Period-end close (admin) - `GET /v1/billing/invoices`: List Meterbox-side invoices (admin) - `GET /v1/billing/invoices/{id}`: Get one Meterbox-side invoice (admin) - `POST /v1/billing/invoices/{id}/advance`: Advance a draft invoice to ready_to_issue (admin) - `POST /v1/billing/invoices/{id}/approve`: Approve and issue a ready_to_issue invoice (admin) - `POST /v1/billing/invoices/{id}/draft/synchronized`: Custom Invoicing: ERP ack of the draft (admin) - `POST /v1/billing/invoices/{id}/issuing/synchronized`: Custom Invoicing: ERP issued the invoice (admin) - `POST /v1/billing/invoices/{id}/payment/status`: Report an invoice paid or uncollectible (admin) - `POST /v1/billing/invoices/{id}/request-payment-status`: Cue the tenant ERP to report payment status (admin) - `POST /v1/billing/invoices/{id}/retry`: Retry a failed transition (admin) - `POST /v1/billing/invoices/{id}/void`: Void an invoice (admin) - `GET /v1/billing/payment-methods/{id}`: List a tenant end-customer's saved cards + the default (admin) - `DELETE /v1/billing/payment-methods/{id}/{pmId}`: Detach a saved card (admin): refuses the current default - `POST /v1/billing/payment-methods/{id}/default`: Set a saved card as the default for future invoices (admin) - `POST /v1/billing/payment-methods/setup-intent`: Mint a SetupIntent to save a tenant end-customer's card off-session (admin) - `POST /v1/billing/portal-session`: Open a Stripe Billing Portal session so a tenant end-customer can self-manage their subscription (admin) - `POST /v1/billing/rerates`: Preview correcting a closed month (admin) - `GET /v1/billing/rerates`: List re-rate runs (admin) - `GET /v1/billing/rerates/{id}`: Get a re-rate run (admin) - `POST /v1/billing/rerates/{id}/apply`: Apply a re-rate preview (admin) - `GET /v1/invoices/{id}`: Meterbox + Stripe invoices for a customer (admin) ### Dashboard - `GET /v1/audit`: Billing-ops audit trail (admin): plan / customer / credit mutations with before/after diff. Cursor-paginated by timestamp. - `GET /v1/audit/export`: Stream the billing-ops audit trail as NDJSON (admin) for off-host / SIEM ingestion. Oldest-first. Optional `since`/`until` (ISO) window. `Content-Type: application/x-ndjson`, streamed line-by-line. - `GET /v1/audit/verify`: Verify the billing-ops audit WORM hash chain (admin): walks the SHA-256 chain and returns `{ valid, hashed_count, legacy_count, broken_at, reason }`. `broken_at` names the first tampered row (content or prev-link altered). Pre-chain legacy rows are counted, not chained. - `GET /v1/company-financials`: Company financials per quarter: CAC payback, burn multiple, ARR per employee (admin) - `PUT /v1/company-financials/{period}`: Set a quarter's company financials (admin) - `DELETE /v1/company-financials/{period}`: Remove a quarter's company financials (admin) - `GET /v1/dashboard/arr-growth`: ARR and its quarter-over-quarter and year-over-year growth (admin) - `GET /v1/dashboard/cohorts`: Cohort retention heatmap by signup month (admin) - `GET /v1/dashboard/margin`: COGS-aware revenue / margin breakdown (admin) - `GET /v1/dashboard/overview`: Aggregate dashboard view - `GET /v1/dashboard/pricing-insights`: Pricing/packaging insights (admin): MRR by plan, 90-day trial conversion, feature adoption, revenue-at-risk, outcome revenue by type. - `POST /v1/dashboard/pricing-sim`: Replay historical usage against a hypothetical model or plan pricing change (admin) - `GET /v1/dashboard/retention`: Dollar-retention summary (admin) - `GET /v1/dashboard/win-back-stats`: Voluntary-cancel funnel + retention-offer take-rate (admin) - `GET /v1/revenue-goals`: Revenue goals with actual and projected revenue (admin) - `PUT /v1/revenue-goals/{period}`: Set the revenue goal for a quarter or year (admin) - `DELETE /v1/revenue-goals/{period}`: Remove a revenue goal (admin) - `GET /v1/revenue-recognition`: ASC 606 / GAAP recognition schedule for one monthly period (admin). Walks ledger entries by `period`, groups by `(customer_id, kind)`, and surfaces the contributing `ledger_entry_ids[]` for auditor drill-down. ### Settings - `GET /v1/apps`: Apps catalog with live status (admin) - `GET /v1/apps/{id}`: Single app + status (admin) - `POST /v1/apps/{id}/install`: Install an app: configure + activate (admin) - `POST /v1/apps/{id}/uninstall`: Uninstall an app: disconnect (admin) - `GET /v1/branding/logo/{org}/{env}/{file}`: A tenant's logo (public) - `POST /v1/config-promotion/apply`: Apply selected domains of a config bundle to this environment (admin) - `GET /v1/config-promotion/export`: Export this environment's config as a secret-free bundle (admin) - `POST /v1/config-promotion/preview`: Diff a config bundle against this environment (admin) - `GET /v1/settings/ai`: AI config (admin, key masked) - `PUT /v1/settings/ai`: Set the tenant's Anthropic API key / model (admin) - `GET /v1/settings/api-keys`: List this pod's per-(org, env) API keys, masked (admin). For public API access use POST /cp/api-keys instead — this route's keys only work against this specific data-plane pod directly (e.g. port-forward), since they carry no org/environment of their own. - `POST /v1/settings/api-keys`: Mint a new per-pod API key (admin). The plaintext secret is returned only in this response. - `DELETE /v1/settings/api-keys/{id}`: Revoke a per-pod API key (admin) - `GET /v1/settings/billing`: Get the tenant's billing/payment-provider connection + toggles (admin) - `PUT /v1/settings/billing`: Update billing provider + opt-in toggles (admin) - `POST /v1/settings/billing/connect`: Store the tenant's provider credentials (admin). Never echoed back in responses. - `POST /v1/settings/billing/disconnect`: Clear stored provider credentials (admin) - `POST /v1/settings/billing/webhook-secret`: Save the signing secret (whsec_…) of the tenant's Stripe webhook, keeping the connected secret key (admin). Never echoed back in responses. - `GET /v1/settings/branding`: Branding (admin) - `PUT /v1/settings/branding`: Update branding (admin) - `PUT /v1/settings/branding/logo`: Upload the logo (admin) - `GET /v1/settings/bucket-ingest`: Get the bucket-ingest connector config + last-run status (admin) - `PUT /v1/settings/bucket-ingest`: Configure the bucket-ingest connector (admin) - `POST /v1/settings/bucket-ingest/run`: Run the bucket-ingest connector once on demand (admin) - `GET /v1/settings/docusign`: DocuSign connection (admin, private key left out) - `PUT /v1/settings/docusign`: Connect DocuSign for importing signed contracts (admin) - `DELETE /v1/settings/docusign`: Disconnect DocuSign (admin) - `POST /v1/settings/docusign/oauth/complete`: Finish signing in with DocuSign (admin) - `POST /v1/settings/docusign/oauth/start`: Start signing in with DocuSign (admin) - `GET /v1/settings/email`: Lifecycle-email config: provider + all trigger templates (admin) - `PUT /v1/settings/email`: Set the email provider / from address / credentials (admin) - `PUT /v1/settings/email/templates/{trigger}`: Save a lifecycle-email template / enable a trigger (admin) - `POST /v1/settings/email/test`: Send a test email through the configured provider (admin) - `GET /v1/settings/features`: Which built-in features are listed (admin) - `PUT /v1/settings/features`: List all built-in features, or only those in use (admin) - `GET /v1/settings/outcome-pricing`: Get the advanced outcome-pricing toggle (admin) - `PATCH /v1/settings/outcome-pricing`: Update the advanced outcome-pricing toggle (admin) - `GET /v1/settings/pricing-page`: Pricing page settings (admin) - `PUT /v1/settings/pricing-page`: Update pricing page settings (admin) - `GET /v1/settings/privacy`: Get the tenant's data-privacy toggles (admin) - `PATCH /v1/settings/privacy`: Update the tenant's data-privacy toggles (admin) - `GET /v1/settings/tax`: Current tax-provider config (admin, credentials masked) - `PUT /v1/settings/tax`: Upsert tax-provider config (admin) - `GET /v1/settings/upstream-connectors`: List upstream connector configs (admin) - `PUT /v1/settings/upstream-connectors/{source}`: Configure an upstream connector (admin) - `GET /v1/settings/webhook-deliveries`: List recent outbound webhook delivery attempts (admin). Cursor-paginated, newest first. - `GET /v1/settings/webhook-deliveries/{id}`: Get a single webhook delivery attempt (admin) - `POST /v1/settings/webhook-deliveries/{id}/replay`: Reset retry state and immediately attempt one delivery (admin) - `GET /v1/settings/webhook-events`: List the supported webhook event taxonomy (admin) - `GET /v1/settings/webhooks`: List configured outbound webhooks (admin). Cursor-paginated, newest first. - `POST /v1/settings/webhooks`: Register a new outbound webhook endpoint (admin). Supports HTTP POST or AWS SQS as the delivery transport. - `PUT /v1/settings/webhooks/{id}`: Update a webhook endpoint (admin) - `DELETE /v1/settings/webhooks/{id}`: Delete a webhook endpoint (admin) - `POST /v1/settings/webhooks/{id}/rotate-secret`: Rotate the HMAC signing secret for a webhook endpoint (admin) ### Webhooks - `POST /webhooks/stripe/{organization_id}/{environment}`: Stripe inbound webhook for one environment, verified with that environment's signing secret. Settings → Billing (`stripe_webhook.url` in GET /v1/settings/billing) shows the exact address and the events to send. ### Accounting - `GET /v1/accounting/coa`: Current chart-of-accounts mapping (admin) - `PUT /v1/accounting/coa`: Upsert chart-of-accounts mapping (admin) - `GET /v1/accounting/export/netsuite`: NetSuite Journal Import CSV (admin) - `GET /v1/accounting/export/xero`: Xero Manual Journals CSV (admin) - `GET /v1/accounting/journals`: NDJSON stream of projected journal entries (admin) - `GET /v1/accounting/manifest`: Dataset catalog + schema versions for accounting ingestion (admin) ### Anomalies - `GET /v1/anomalies`: List anomaly findings (admin) - `POST /v1/anomalies/{id}/acknowledge`: Acknowledge an anomaly finding (admin) - `POST /v1/anomalies/run`: Run anomaly detection on-demand for the current environment (admin) - `GET /v1/anomalies/settings`: Detector thresholds (admin) - `PUT /v1/anomalies/settings`: Update detector thresholds (admin) ### CRM - `POST /v1/crm/inbound`: Inbound CRM push: records-only customer upsert from Salesforce / HubSpot (admin) ### Customer Portal - `GET /v1/customer-portal/{id}/allowance`: Usage-allowance window + banked resets (customer JWT) - `POST /v1/customer-portal/{id}/allowance/reset`: Self-serve: spend a banked reset to refill now (customer JWT) - `GET /v1/customer-portal/{id}/allowance/resources`: Every resource with its own tracked allowance state (customer JWT) - `POST /v1/customer-portal/{id}/billing-details`: Open Stripe's portal to update payment method and billing details (customer JWT) - `GET /v1/customer-portal/{id}/branding`: The tenant's branding, for the portal (customer JWT) - `GET /v1/customer-portal/{id}/cancellation`: What canceling looks like for this customer - `POST /v1/customer-portal/{id}/cancellation`: Start canceling: give a reason, get the retention offers - `DELETE /v1/customer-portal/{id}/cancellation`: Withdraw a cancellation that wasn't confirmed - `POST /v1/customer-portal/{id}/cancellation/accept-offer`: Stay, with one of the retention offers - `POST /v1/customer-portal/{id}/cancellation/confirm`: Cancel at the end of the period - `POST /v1/customer-portal/{id}/checkout`: Customer-scoped Stripe Checkout session start (no admin key required) - `GET /v1/customer-portal/{id}/credits`: Customer-scoped credit balance + grants (no admin key required) - `GET /v1/customer-portal/{id}/credits/timeseries`: Customer-scoped credit balance history (no admin key required) - `GET /v1/customer-portal/{id}/draft-invoice`: Mid-period draft invoice (customer JWT) - `GET /v1/customer-portal/{id}/entitlements`: Customer-scoped entitlement check (no admin key required) - `GET /v1/customer-portal/{id}/invoices`: Invoices the customer received, with PDFs (customer JWT) - `GET /v1/customer-portal/{id}/me`: Customer-scoped profile (no admin key required) - `GET /v1/customer-portal/{id}/optimization`: Plan-fit view: usage vs every plan's limits (customer JWT) - `GET /v1/customer-portal/{id}/outcomes`: Customer-scoped outcome-event history (no admin key required) - `GET /v1/customer-portal/{id}/plans`: Plans the customer can pick (no admin key required) - `GET /v1/customer-portal/{id}/referral`: The customer's own referral code + usage (customer JWT) - `POST /v1/customer-portal/{id}/referral/redeem`: Self-serve: redeem a referral code (customer JWT) - `POST /v1/customer-portal/{id}/subscription/change`: Customer-scoped self-serve upgrade or downgrade (authenticated by the entitlement JWT, no admin key required) - `POST /v1/customer-portal/{id}/subscription/preview`: Customer-scoped preview of a plan and/or add-on change (authenticated by the entitlement JWT, no admin key required) - `DELETE /v1/customer-portal/{id}/subscription/scheduled`: Cancel a pending self-serve scheduled plan change (no admin key required) - `GET /v1/customer-portal/{id}/usage`: Customer-scoped period usage summary (no admin key required) ### Experiments - `GET /v1/experiments`: List A/B pricing experiments (admin) - `POST /v1/experiments`: Create an A/B pricing experiment (admin) - `POST /v1/experiments/{id}/promote`: Promote a variant as the winner: completes the experiment (admin) - `GET /v1/experiments/{id}/results`: Per-variant counts + summed MRR (admin) - `POST /v1/experiments/{id}/start`: Start an experiment: new control-plan signups are now assigned (admin) - `POST /v1/experiments/{id}/stop`: Stop an experiment without picking a winner (admin) ### Finance - `GET /v1/reconciliation`: Reconcile expected provider COGS vs recorded invoices (admin) - `POST /v1/reconciliation/fetch/{provider}`: Fetch the period total from the provider's cost API + record it (admin) - `GET /v1/reconciliation/keys`: Provider admin keys (admin, masked hints only) - `PUT /v1/reconciliation/keys`: Set OpenAI / Anthropic admin keys for cost fetching (admin) - `PUT /v1/reconciliation/provider-invoices`: Record an LLM-provider invoice total for a period (admin) - `GET /v1/reconciliation/provider-invoices`: List recorded provider invoices (admin): ?period= filters ### Integrations - `GET /v1/auth0/claims/{id}`: Return Meterbox entitlements as Auth0 URL-namespaced custom claims for a Post-Login Action (admin) - `POST /v1/integrations/airbyte/destination`: Airbyte destination receiver (admin) - `GET /v1/integrations/aws-marketplace/customers`: List customers originated via the AWS Marketplace bridge (admin) - `POST /v1/integrations/aws-marketplace/inbound`: Inbound AWS Marketplace push: records-only customer upsert keyed on AWS customer identifier (admin) - `POST /v1/integrations/aws-marketplace/notification`: Apply an AWS Marketplace SNS subscription notification to the linked customer (admin) - `GET /v1/integrations/azure-marketplace/customers`: List customers originated via the Azure Marketplace bridge (admin) - `POST /v1/integrations/azure-marketplace/inbound`: Inbound Azure Marketplace push: records-only customer upsert keyed on the SaaS subscription id (admin) - `POST /v1/integrations/azure-marketplace/notification`: Apply an Azure Marketplace SaaS webhook action to the linked customer (admin): activated / suspended / reinstated / unsubscribed - `GET /v1/integrations/gcp-marketplace/customers`: List customers originated via the GCP Marketplace bridge (admin) - `POST /v1/integrations/gcp-marketplace/inbound`: Inbound GCP Marketplace push: records-only customer upsert keyed on the procurement account id (admin) - `POST /v1/integrations/gcp-marketplace/notification`: Apply a GCP Marketplace entitlement event to the linked customer (admin): entitlement-active / -suspended / -pending-cancellation / -cancelled - `POST /v1/integrations/kafka/run`: Restart the Kafka consumer (admin) - `GET /v1/integrations/kafka/status`: Current Kafka consumer status (admin) - `POST /v1/integrations/segment/track`: Segment track-event receiver (admin) ### Onboarding - `GET /v1/onboarding/dismissals`: List dismissed onboarding suggestion ids for this env (admin) - `POST /v1/onboarding/dismissals`: Dismiss an onboarding suggestion by id: shared across all admins in this env (admin) - `DELETE /v1/onboarding/dismissals/{id}`: Un-dismiss a suggestion (admin) ### Quotes - `GET /v1/contracts`: List contract proposals (admin): ?status=extracted|reviewed|converted - `GET /v1/contracts/{id}`: Single contract proposal (admin) - `PATCH /v1/contracts/{id}`: Edit extracted fields / mark a proposal reviewed (admin) - `DELETE /v1/contracts/{id}`: Discard a contract proposal (admin) - `POST /v1/contracts/{id}/convert`: Convert a proposal into a draft quote (admin) - `POST /v1/contracts/docusign/sync`: Import the next signed contract from DocuSign (admin) - `POST /v1/contracts/extract`: Extract billing terms from a signed PDF contract (admin) - `POST /v1/enterprise/apply`: Meterbox Advisor: Auto-Apply an approved proposal (admin) - `POST /v1/enterprise/configure`: Meterbox Advisor: deal brief → catalog-grounded proposal (admin) - `POST /v1/enterprise/propose-model`: Meterbox Advisor: describe an AI offering → a proposed model (admin) - `POST /v1/enterprise/propose-pricing`: Meterbox Advisor: a company's pricing → plans and models (admin) - `POST /v1/enterprise/read-document`: Meterbox Advisor: read a pricing document (PDF) as text (admin) - `POST /v1/enterprise/read-link`: Meterbox Advisor: read a pricing page as text (admin) - `POST /v1/quotes`: Create a quote (admin) - `GET /v1/quotes`: List quotes (admin): ?status=open|accepted|declined|expired - `GET /v1/quotes/{id}`: Single quote, including its share token (admin) - `POST /v1/quotes/{id}/accept`: Accept a quote → convert to the live subscription (admin) - `POST /v1/quotes/{id}/decline`: Decline an open quote (admin) - `GET /v1/quotes/{id}/view`: Public read-only share view (token-gated) ### Tax - `POST /v1/tax/quote`: Preview tax on a set of lines (admin) ### Warehouse - `GET /v1/settings/reverse-etl`: List reverse-ETL sinks (admin, credentials masked) - `PUT /v1/settings/reverse-etl/{id}`: Create or update a reverse-ETL sink (admin) - `DELETE /v1/settings/reverse-etl/{id}`: Remove a reverse-ETL sink (admin) - `POST /v1/settings/reverse-etl/{id}/run`: Trigger one sync of a sink now (admin) - `GET /v1/warehouse/export/credit-grants`: NDJSON export of credit grants (admin) - `GET /v1/warehouse/export/customers`: NDJSON export of customer records, optional [since, until) window (admin) - `GET /v1/warehouse/export/ledger`: NDJSON export of ledger entries across all customers (admin) - `GET /v1/warehouse/manifest`: Dataset catalog + schema versions for warehouse ingestion (admin) ## Optional - [About](https://meterbox.ai/about): Who we are and why we built Meterbox - [Our Strategy](https://meterbox.ai/strategy): Why Meterbox exists and the principles behind it - [Dashboard](https://meterbox.ai/app): Tenant admin UI (live data) - [OpenAPI spec](https://meterbox.ai/openapi.json): Machine-readable API surface