API reference

Account & Usage

The account behind your credential: who it is, the plan it is on and when that renews, which features it may use, how much of each limit and quota it has used, and what the credential itself may do (its permissions and its rate limit). Read it first to know what the rest of the API will let you do. The wallet balance is `GET /balance`. 1 endpoint. Add your API key in the authentication panel to send test requests from this page.

Read the account behind your credential

GET/api/external/v1/account

Everything about the account and the credential you call with, in one answer. Always readable, whatever the account's feature policy closes. Never carries a secret.

  • account: id, name, email, companyName, timeZone (IANA id; UTC when none is set: the zone daily limits start over in), language (the app's language for the account), product (the product the account belongs to), role, createdAt.
  • plan: tier; current (the plan it is on: its name, prices and included amounts as the billing page shows them, custom true when its prices were changed for this account; null when on none); seller (kind AGENCY or PLATFORM, and the agency's name); pending (a plan switched to at the next charge, with its date on); activation (while the first period of a plan signed up for is unpaid); subscription (billingPeriod MONTHLY or ANNUAL, monthlyFee, a paid yearly term, nextCharge {on, period, amount} - when the plan renews, null on when nothing is scheduled - inTrial, nextAllowanceReset); trialEndsAt; frozen (charges failed past the grace period).
  • features: {feature: true|false} for every feature of the account's policy (its plan, its agency and the platform decide it). A feature that is false is refused by every route of it with 403 FEATURE_NOT_ENABLED.
  • limits: the account's limits next to their use, read from the same counters that enforce them: concurrency (running at once), rates (per time window), dailyCaps (per day, with resetsAt), allowances (how many may exist), monthlyIncluded (included each month before usage is billed), monthlyCaps (hard monthly ceilings, with resetsOn), storage (usedBytes, limitBytes) and concurrencyLines. Each row has a stable key, a label, a description, the limit and what is used/inUse/remaining.
  • assistant: the assistant on the account's plan, in counts only: available (and the unavailable reason code when not), level, and allowance (periodStart, resetsOn, unlimited, and quotas: per kind of activity - messages, call minutes, background check-ins, tasks and more - the number included (null: no limit), used, charged beyond the quota and whether it is paused). Null when it cannot be read.
  • credential: the key or OAuth client of this request: id, kind (API_KEY or OAUTH_CLIENT), name, accessMode (FULL_ACCESS or CUSTOM), fullAccess, permissions (every permission it holds; Full access holds every workspace permission, and a personal permission only where it was ticked for it), expiresAt, and rateLimit (enforced, capacity, refillTokens, refillPeriodSeconds; the same limit comes back on every response as X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset).
  • links: balance, the route of the wallet balance.

Responses

  • 200OK