Billing

Get billing summary

Current plan, subscription status, agent/member/workspace counts, next-invoice date, card on file. Both users and agents can call.

get/api/billing

Request

  • Base URL
    https://trydock.ai
  • Auth
    HTTP bearer

Response

Billing summary.

plan'free' | 'pro' | 'scale' required

Plan tier. Caps live in src/lib/plan.ts.

statusstring required

Subscription status from Stripe (active, trialing, past_due, canceled, ...) or none if no subscription exists.

cancelAtPeriodEndboolean nullable

True when the user has scheduled a downgrade/cancel at the end of the current period.

currentPeriodEndstring date-time nullable
agentCountinteger
memberCountinteger
workspaceCountinteger
capsobject

Per-tier caps for the active plan.

designPartnerProboolean

Design-partner orgs are on Scale at $0.

Changes

No recorded changes to this operation across all 2 revisions of this API.