4. Plain HTTP, if you'd rather script it
The data routes accept either the key or a session token, so a shell script or a custom GPT action works the same way. The exceptions are creating and revoking keys, which need the owner's session, and adding, changing or removing seats, which need the owner or an admin seat signed in (403, code: "owner_only", otherwise).
curl -X POST -H "Authorization: Bearer si_live_YOUR_KEY" -H "Content-Type: application/json" -d '{"business_name":"Acme Plumbing","industry":"plumbing","city":"Houston"}' https://algotally.com/api/v1/platform/reports
All bodies are JSON. Everything is under /api/v1/platform.
# Signing in (no credential needed)
GET /plans # tiers, prices, quotas and features → { plans: [...] }
GET /markets/catalog # markets already measured (the signup picker) → { markets: [{ industry, city, state }] }
POST /signup { email, tier?, industry?, city?, state?, utm_source?, utm_medium?, utm_campaign?, referrer? }
# { message, email_on, sign_in_url? } — the same reply whatever happened, so it says nothing about
# which addresses have accounts. A new address gets a link to confirm it; an address
# that already has an account gets a link to choose a new password instead.
# A new account starts a 14-day trial of the tier chosen (default starter), with 3
# reports. The utm_* fields and referrer record where a signup came from. While
# sign-ups are closed (GET /plans says signup_open) nothing is created. sign_in_url only
# while sign-in emails are off, and only for an account this request created.
# One person gets at most 10 emailed links (sign-up, reset, invite) a day; past that
# the reply is the same and nothing is sent.
POST /login { email, password } # → { session_token, account, purpose: "password", needs_password: false }
# 401 invalid_credentials for every failure; 429 locked after 10 wrong passwords
# in 15 minutes from one IP, or 100 in a day from every IP (a reset link still works).
POST /password/forgot { email } # { message, email_on } — a link to choose a new password, if the address has an account
POST /verify { token } # redeem an emailed link → { session_token, account, purpose, needs_password }
# purpose: "verify" (new account), "reset", "invite" (a team seat) or "signin" (older links).
# GET /verify?token= only redirects to the app's verify page.
POST /verify-code # 410: sign-in codes are retired
# Session only
POST /password { new_password, current_password? }
# current_password isn't needed when there's no password yet, or within 30 minutes of
# an emailed link. 10-128 characters, not the address, not in a known breach. Ends
# your other sessions. Replacing a password (a reset or a change, not a first one) also
# ends your connected AI apps (MCP OAuth grants) and unlinks your Google sign-in; API keys
# keep working. Then → { ok, replaced: true, sessions_ended, connected_apps_ended,
# google_unlinked, api_keys } (api_keys: the owner's active keys to review; [] for a seat).
# A first password → { ok: true }.
POST /invite/decline # a seat turns its invite down (before accepting): the seat is removed
# Until a seat accepts (chooses its password), its invite link's session works only for
# GET /account (invite_pending: true), POST /password, POST /invite/decline and the two
# logouts; anything else answers 401.
POST /logout # ends this session
POST /logout-all # a seat: ends its own sessions → { ok, sessions_ended }. The owner: ends
# everything → every session on the account, every API key, every connected
# AI app (MCP grant) and every Google link → { ok, sessions_ended,
# api_keys_revoked, connected_apps_ended, google_unlinked }
# Account
GET /account # tier, access, trial_paused, quota, features, trial_ends_at, digest_enabled,
# prepared_by, is_owner, role, member_email, nearby_cities_allowed,
# addons { market_price, market_max, white_label_price, white_label },
# password_set, invite_pending (a seat not yet accepted), email_on
PATCH /account { prepared_by?: string | null, account_type?: owner|freelancer|agency }
# default "Prepared by" on share links (Growth); the app's wording
# Markets
GET /markets # { count, markets, removed_markets, swaps, over_cap }
POST /markets { industry, city, state?, confirm_new?, dry_run? }
# → { action, market, matched_from, seed, markets, count }; 201 when added.
# action: already_held | granted | seeded | building | would_grant | would_seed.
# state is required for a market nobody covers yet.
POST /markets/remove { industry, city, dry_run? }
POST /markets/swap { remove: { industry, city, state? }, add: { industry, city, state?, confirm_new? }, dry_run? }
POST /markets/keep { markets: [{ industry, city }, …] }
POST /markets/nearby { market: { industry, city, state? }, city, confirm_new?, dry_run? }
# Growth and Agency (not during a trial): a nearby city within about 40 miles of
# the market's city, measured at up to 22 answers a week. → { action, distance_miles, … };
# distance_miles is null only when the market's own city can't be placed. Further
# away: 400 (dry_run: action would_fail with the reason). A name the Census places
# list can't place in the state ("North Dallas", "Fakeville"): 400 code unknown_place
# with suggestions (dry_run: would_fail with reason and suggestions).
POST /markets/nearby/remove { market: { industry, city, state? }, city, dry_run? }
# Reports (each run spends one report)
POST /reports { business_name, industry, city, state?, business_url? }
# → the report plus report_run_id, reports_used_this_period, reports_allowed_per_period
GET /free-rerun # ?kind=business|market &industry= &city= [&state=] [&business_name= &business_url=]
# would running it now reopen the last run for free? Spends nothing.
# → { free: true, report_run_id, run_at } | { free: false, last_run } (null when none)
GET /reports # ?limit= (default 20, max 100) &before_id= &include_result=1
# → { count, total, reports, next_before_id }; newest first, next_before_id is
# null on the last page. Each row: id, business_name, business_url, industry,
# city, state, run_at, run_by, and summary { named_in, answers, mention_rate,
# rank }: the headline as saved (null on some runs from before 2026-11-07).
# CHANGED 2026-11-07: rows no longer carry result_json and site_health_json
# unless you pass ?include_result=1 (then as JSON strings, as before). For a
# report's figures as they read now, use GET /reports/:id.
GET /reports/:id # reopen one stored business report (free), gated for your plan now. Read
# as of now: headline, rank, weeks, engines, sites, evidence and fact check
# are rebuilt from the stored answers (meta.as_of), the numbers this-week and
# share links show; meta.run_at is when it was first run, and snapshot
# { run_at, named_in, answers, mention_rate, rank, rank_of, window_label, text }
# what it said then. fact_check is the latest check as it stands now (dismissed
# and stale claims out), with schedule { weekly, last_checked_at, next_check_on,
# text } and dismissed_claims. ?snapshot=1: the report exactly as saved
GET /reports/:id/live # the report's trend read live (uses no report; the stored report doesn't change)
# → { report_run_id, report_run_at, report_through, held, business_name, live }
# live { named, headline, change, change_line, weeks, since_report } is null when
# the market isn't held now; 404 if no such report
POST /market-reports { industry, city, state? }
GET /market-reports # { count, reports: [{ id, industry, city, run_at }] }, newest 200
GET /market-reports/:id
# Share links and digest
POST /reports/:id/share { prepared_by?, days? } # → 201 { id, url, expires_at }
# prepared_by is Growth and up: on Starter the link is made
# without it, with a `note` saying so
POST /market-reports/:id/share { prepared_by?, days? }
# Scheduled reports (every plan)
GET /report-schedules # scheduled business and market reports → { email_on, schedules }; filters:
# ?kind=business|market, client_id, business_name, industry, city, state
POST /report-schedules { kind: business|market, frequency: weekly|monthly, day, notify?, active?,
# business: business_name + industry, city, state? (or client_id), business_url?
# market: markets: "all" | [{ industry, city, state? }] (up to 25) }
# → 201 + the schedule. First run: the next matching day after today. Each run
# spends one report per business or market (free when nothing is new) and lands in
# /reports or /market-reports; out of reports or read-only, that run is skipped with
# last_status: skipped and the reason in last_error. Up to 50 per account. Owner or admin
GET /report-schedules/:id
PATCH /report-schedules/:id { frequency?, day?, active?, notify?, business_url?, markets? } # pausing
# (active: false) and notify: false work on a read-only account. Owner or admin
DELETE /report-schedules/:id # reports it ran stay. Owner or admin
POST /reports/:id/plan/share { prepared_by?, days? } # Agency: white-label plan link
GET /shares # { shares }
DELETE /shares/:id
GET /digest/preview # { digest } — null when there's nothing to report
GET /this-week # free "This week" card: { current_week, account_type, businesses, not_shown? },
# each followed business's latest week, headline, trend and next step
# With the live view on (switch ui.live_view): live_view: true, and each
# business has live: { window_label: "last 7 days", answers, named_in,
# enough_answers, mention_rate, mention_rate_range, rate_line, range_line,
# change: { verdict: up|down|no_clear_change, label }, today: { answers,
# named_in, text }, engines: [...], trend: [28 days], updated_at, updated_text }.
# A 7-day period is the last 7 full days plus today so far, in US Central days.
# Under 30 answers (in total, or for one AI tool): no rate, "Too few answers yet".
# Up or Down only when the change from the 7 days before clears the noise test.
# Report rates keep their window_label ("last 4 weeks, since …"). Off: no live fields.
GET /markets/:id/live # live view (switch on): { market_id, market, today_answers, week_answers,
GET /markets/live?industry=&city=&state= # enough_answers, updated_at, updated_text, businesses: the followed
# businesses' live figures }; &business= adds business: that one business's.
# 404 with the switch off or a market you don't hold. Every plan.
GET /live/followed # live view (switch on): { businesses: [{ business_name, industry, city, state,
# source }] } — the businesses you follow, for the business page. 404 off.
GET /clients/attention # Agency: { clients, summary: { clients, comparable, first_reading, text } }
GET /method-changes # { upcoming, recent, note, freeze }: planned changes, plus recent ones your markets' answers show (negative ids); freeze { until, quarter, text, short } while the method freeze holds, else null
POST /digest { enabled: boolean }
POST /question-suggestions { industry, city, state?, question } # suggest a question for a market you hold
# (any tier) → 201 { ok, note }; it goes to review, never run for one account.
# 409 already asked or waiting; 429 the daily or waiting-for-review limit
# Watchlist (Growth): up to 10 businesses with live weekly figures
GET /watchlist # { businesses: [{ id, business_name, market, named, latest_week, week_line, … }] }
POST /watchlist { business_name, industry, city, state? } # in one of your active markets
# → 201 { id, named, matched_as?, warning?, did_you_mean? }; 409 full or already on it
DELETE /watchlist/:id # 404 if it isn't on your watchlist
# Business facts, rates, outcomes
PUT /facts { business_name, industry, city, website_url?, phone?, address?, services?, service_area?,
hours?, booking_url?, prices?: [{ service, price }], faqs?: [{ question, answer }],
price_range?, year_founded?, other_facts? }
# fields left out keep their value; "" clears one, year_founded: null clears it.
# prices (up to 50) and faqs (up to 30) replace the saved lists; [] clears them.
# price_range, year_founded and other_facts are Growth.
GET /facts?business_name=&industry=&city=
POST /facts/check { business_name, industry, city } # 5 model checks per business per day; also re-run weekly on its own
# (paid, non-test accounts); the response adds schedule: "Checked weekly · last Oct 12 · next Oct 19"
POST /facts/dismiss { business_name, industry, city, state?, claim, field? } # "that's right too": hides one contradiction everywhere (404 if the latest check has no such claim);
# it stays hidden when a later check rewords the same value (same field, same address/phone/year…)
DELETE /facts/dismiss { business_name, industry, city, state?, claim, field? } # undo a dismissal → { undone: true } (404 if nothing was dismissed under those words)
GET /facts/dismissed?business_name=&industry=&city=&state= # { dismissed: [{ field, claim, dismissed_at }] }, newest first
# DELETE /facts also clears the business's dismissals in that market
GET /facts/from-site?business_name=&industry=&city=&state=[&url=][&refresh=1] # every tier: reads the business's
# own site (url, else the fact sheet's website, else the latest report's) → { url, status, pages,
# draft, claims, unconfirmed, cached }: a fact-sheet draft to confirm (nothing is saved) and claims
# the facts don't confirm. Cached 7 days per site; 400 code no_website; 429 on too many fresh reads
GET /fact-flags[?business_name=&industry=&city=&state=] # open closure and wrong-fact flags for the businesses
# you follow, or one → { businesses, checked, pending }
GET|PUT /rates { rates: [{ service, amount | null }] } # GET adds services and disclaimer
POST /outcomes { business_name, industry, city, action, host?, note?, done_on? } # Growth → 201 { id }; the same change again (any spelling of the business) → 409 { code: "duplicate", duplicate_of }
GET /outcomes # { count, outcomes }
PATCH /outcomes/:id { client_visible: boolean } # Growth: show or hide it on client share links → { id, client_visible }
DELETE /outcomes/:id # also puts the plan step it ticked back to todo
GET /leads?business_name=&industry=&city=&state= # Growth AI leads log (all filters optional) → { count, entries }
POST /leads { business_name, industry, city, state?, month: "YYYY-MM", ai_leads, revenue?, note? }
# Growth → 201 the entry; one per business and month: sending a month again replaces it
DELETE /leads/:id # → { deleted, id }; works on a read-only account too
GET /reports/:id/leads # that report's business: { entries, beside_trend } (the log beside its monthly mention rates)
GET|PUT|DELETE /competitors { business_name, industry, city, state?, competitors?, show_names? } # Growth head-to-head list (GET and DELETE: query params; state only when the city is held in more than one)
# GET → { competitors, show_names, updated_at }; PUT replaces the list (up to 3 names)
GET /reports/:id/head-to-head # Growth: the report's head-to-head as of when it ran, with its saved competitors
# → { competitors, show_names, updated_at, head_to_head }
GET /first-party/imports?business_name=&industry=&city=&state= # Growth (filters optional) → { count, imports }
POST /first-party/imports { business_name, industry, city, state?, csv, filename?, date_from?, date_to? }
# Growth: one Bing Webmaster Tools AI CSV export (csv is the file's text;
# date_from/date_to for files that carry no dates; the file up to 2 MB) → 201 the import
DELETE /first-party/imports/:id # → { deleted, id }; works on a read-only account too
PUT /first-party/share { business_name, industry, city, state?, show_on_links: boolean } # Growth → { show_on_links }
GET /reports/:id/first-party # Growth → { imports, summary, show_on_links, how_to, expected_files }
GET /reports/:id/service-gaps # Growth "what AI thinks you do": { business_name, services, named_for, gaps,
# unlisted, listed_services, … } from stored answers against the fact sheet; no AI call, cached a day
POST /merge-requests { industry, city, state?, from_name, into_name } # "these are the same business":
# counted as one for your account at once (reports, watchlist, this-week,
# live trends, the digest) and checked by hand for the shared data → 201
GET /merge-requests # { merges }: your own
DELETE /merge-requests { industry, city, state?, from_name } # undo one (and withdraw its request)
# Business tools: :id is a report_run_id from the last 60 days; none use report quota
GET /reports/:id/tools/outreach-kit # { drafts, pricing }; ?drafts=0 read only, ?refresh=1 rewrite
GET /reports/:id/tools/listing-kit
GET /reports/:id/tools/review-kit # { sites, ask_on, templates, rules, yelp_note, note }
GET /reports/:id/tools/leads-kit # every plan, no AI call: { analytics, form, calls, wording, log, note }
GET /reports/:id/tools/fix-package
GET /reports/:id/tools/pitches # ?drafts=0, ?host=chron.com, &refresh=1
GET /reports/:id/tools/correction-kit # Growth; ?drafts=0, ?refresh=1
GET /reports/:id/tools/attribute-gap # Agency
GET /reports/:id/plan # items[].tail + tail { count, text }: the collapsed "other sites AI cites" group
PATCH /reports/:id/plan/:item_key { status: todo|done|skipped }
GET /reports/:id/download # one report's toolkit as a zip
POST /reports/download { report_run_ids: [..up to 50] } → zip, or 202 { job_id, status: 'queued', poll } when built in the background
GET /reports/download/jobs # the account's last 10 background zips, newest first: id, status (queued|ready|failed|expired), reports, created_at, ready_at, expires_at, filename, error (2026-11-07)
GET /reports/download/jobs/:id # one background zip: job_id, status (queued|ready|failed|expired), filename, error. A built zip past its 24 hours reads expired (was failed before 2026-11-07)
GET /reports/download/jobs/:id/file # a ready zip's file, for 24 hours after it's built
GET /reports/download/preflight?ids=1,2 # up to 10 ids: each report's drafts before a download: outreach written|stale|missing, pitches { written, open } (2026-11-07)
GET /downloads/:token # a download_reports link; the token is the credential. Opens 3 times, then 404
# API keys
POST /api-keys { label?, mcp_version? } # owner session only → 201 with the key, once (mcp_version: latest unless classic)
GET /api-keys # { count, keys: [{ id, label, key_prefix, created_at, last_used_at, mcp_version, member_id }] }
PATCH /api-keys/:id { mcp_version } # signed in: owner and admin any key, a member its own, a viewer none → the key
DELETE /api-keys/:id # owner session only
POST /api-keys/revoke-all # owner session only: every active key stops working → { revoked }
# Growth and up
GET /engines?business_name=&industry=&city= # per-engine breakdown over the headline window (`engine_breakdown`)
# Agency tier
GET /evidence?business_name=&industry=&city=&limit= # the AI answers behind the numbers
GET /export?industry=&city=&dataset=businesses|sites&format=csv|json # free: no report quota
GET /export?dataset=weekly&format=csv|json[&industry=&city=&state=] # see "Weekly export" below
GET /insights # pooled "what works", your own logged changes (own_outcomes), site signals
POST /market-requests { industry, city, state }
GET /market-requests # your own requests → { requests: [{ industry, city, state, requested_at, status: live|waiting|declined }] }
GET /clients # { clients }
POST /clients { business_name, industry, city, business_url?, notes?, status? }
# → { id, business_url, website_prefilled }: with no business_url, the site
# the market's data has as the business's own is filled in
POST /clients/prefill-websites # fills business_url for roster entries without one → { filled, still_missing }
PATCH /clients/:id { status?: active|paused|churned|prospect, business_name?, notes?, business_url? }
DELETE /clients/:id
GET /clients/export # the roster as a CSV file, with each entry's current standing (free)
GET /clients/schedules # scheduled client report emails → { email_on, schedules }
PUT /clients/:id/schedule { frequency: weekly|monthly, day, recipients, rerun?, note?, reply_to?, active? }
# day 1-7 (Mon-Sun) weekly or 1-31 monthly; recipients up to 5 emails; rerun runs a
# new report before each send (1 report each). → the schedule. Owner or admin
PATCH /clients/:id/schedule { active: boolean } # pause or resume → { ok, active }; 404 if none. Owner or admin
DELETE /clients/:id/schedule # 404 if none. Owner or admin
POST /clients/:id/schedule/test { note?, month_note? } # the email as the client would get it, from the latest
# report on file (never runs one), to your own sign-in email → { sent: true, to } or
# { sent: false, reason, to, preview }. Owner or admin; 429 when sent too often
GET /clients/status # monitoring: where each active client stands (free)
POST /clients/bulk-report # queues one report per active client (202 + the job); include, client_ids,
# missing_only, skip_not_named narrow it. One job at a time: a second
# POST while one runs returns that one (200, already_running: true)
GET /clients/bulk-jobs # { jobs }: the latest 5
GET /clients/bulk-jobs/:id # { status: queued|running|done, total, done, failed, skipped, remaining,
# progress_text, items: [{ client_id, status, report_run_id, error }] }
GET|PUT|DELETE /clients/autorun { day: 1-31, active?, include_not_named? } # monthly auto-run
# → { autorun: { day, active, include_not_named, last_run_month, last_job_id,
# next_run_on } } (null when none); PUT and DELETE: owner or admin
GET|PUT /clients/report-notes ?month=YYYY-MM | { month, client_id? (none: the default), note }
# white-label (Agency, or Growth's add-on). GET → { month, default_note,
# last_month_default, clients: [{ client_id, note, last_month_note }] }; PUT: owner or admin
GET /clients/period-review?from=&to=[&format=csv] # actions → rate change; default (no from): the most recent
# readable period, the latest weeks measured the same way split in two (at most 13
# during), and `covers` says which weeks. Same rules as the trend (comparable
# weeks, 10+ answers a side), else "Can't tell yet (n=…)"; first_readable_on says
# when the period (or the default view) can first be read
POST /reports/:id/monthly/share # the client's monthly report as a white-label link
GET /reports/:id/quarterly ?quarter=2026-Q3 | ?this_from=&this_to=&last_from=&last_to= [¬e=draft]
# the client's quarterly review (Agency only; Growth's white-label add-on
# gets 402: it keeps the monthly report). { review, text, html }: this
# quarter vs last like for like, rank, engines, work done, next steps. Free.
POST /reports/:id/quarterly/share { quarter? | this_from, this_to, last_from, last_to; days? }
# the review as a white-label link (kind "quarterly"); the periods are
# fixed on the link (default: the latest quarter as of today)
GET|PUT /clients/quarter-notes ?quarter=2026-Q4 | { quarter, client_id? (none: the default), note }
# Agency only. GET → { quarter, default_note, last_quarter_default,
# clients: [{ client_id, note, last_quarter_note }] }
POST /clients/outreach-kits # outreach drafts for prospects (or client_ids), up to 10 new per call
POST /clients/site-check # check active clients' websites now
GET|PUT /branding { display_name, logo_url (https), accent_color (#rrggbb) }
# PUT changes only the fields sent; null or "" clears one
# white-label (Agency, or Growth's add-on); PUT: owner or admin
POST /branding/logo # the image as the body (Content-Type image/…) or a multipart "file" field: PNG, JPEG
# or WebP up to 512 KB (413; 415 for SVG or another type), set as logo_url → the branding.
# Owner or admin; 429 after a few uploads a minute
GET /custom-domain # Agency: share links on your own domain → { configured, cname_target, domain, notify_requested }
POST /custom-domain { hostname } # one per account → 201 the same view. Owner or admin
POST /custom-domain/check # ask Cloudflare for its current state, and look up the TXT record → the view. Owner or admin
# A domain is served only once the account's own TXT record is found: name
# _algotally-verify.<host>, value in domain.records ("Proves the domain is yours.").
# status: pending | pending_verification (CNAME fine, TXT missing; not served) | active | failed
POST /custom-domain/notify # while custom domains aren't switched on: the account's email goes on the waitlist
DELETE /custom-domain # → the view; 404 if none. Owner or admin.
# 503 code not_set_up when the server has no custom domains; 502 if Cloudflare fails
GET /members # { members }
POST /members { email, role?: admin|member|viewer } DELETE /members/:id # owner or an admin seat, signed in
# (not an API key), else 403 owner_only. POST → 201 the seat, plus invite_sent
# while sign-in emails are on (the invite was emailed), or invite_url and
# invite_expires_at while they're off
POST /members/:id/invite # the invite again. Email on: emailed → 200 { email, invite_sent, retry_after_seconds? }
# (retry_after_seconds when one went in the last minute). Email off: a new
# single-use, 7-day link → 201 { email, invite_url, invite_expires_at }. Owner or admin seat, signed in
PATCH /members/:id { role: admin|member|viewer } # → { ok }; you can't change your own role (400).
# Owner or admin seat, signed in
# AI app connections (session only: a person signed in, not an API key → 403 session_only;
# 503 oauth_not_configured when sign-in for AI apps isn't set up)
GET /oauth/consent?handle= # the consent page's details → { handle, clientName, clientDomain, redirectHost,
# redirectIsLoopback, scope }; 404 consent_expired; 409 consent_other_browser
POST /oauth/approve { handle, approve: boolean, scope?: [...] } # the consent page's decision → { redirect_to };
# a viewer seat can grant read access only. 400 with a code when the consent can't be used
GET /oauth/grants # → { configured, apps: [{ grant_id, client, client_id, scope, created_at, seat, … }] };
# the owner and admin seats see every seat's apps, other seats their own
POST /oauth/grants/revoke { grant_id } # disconnect one of those apps → { ok }; 404 if not one you can see
Weekly export (Agency, export). GET /export?dataset=weekly returns one row per business × ISO week × AI engine over the last 13 weeks, for one market (industry, city, state) or, with those left out, every market on the account. It's built for Looker Studio, Sheets or a warehouse: zero rows are kept, so you can sum named_in and answers and divide.
format=json returns { dataset, weeks, markets, rows } with the same row fields. MCP: export_weekly.
Trials while billing isn't live. A trial doesn't end until billing opens: GET /account has trial_paused: true and access: "trial" even past trial_ends_at. Once billing opens, trial_paused is false and trial_ends_at is the real end, at least a week after billing opened.
Billing. Once Stripe billing is on, GET /account has billing: { stripe: true, subscribed }, and the account's owner (signed in, not with an API key) can POST /billing/checkout { tier, extra_markets?, white_label? } to subscribe, POST /billing/upgrade to change plan (Stripe's plan change page with a subscription, Checkout without), and POST /billing/portal for the card, invoices and canceling. Each answers { url } to open in a browser. While billing is off they answer 404. With a subscription, POST /account/cancel answers 400 and points at the Portal. With a billing anchor, the report quota resets on your billing day, not the 1st.
Past due. A payment that fails makes the plan past_due (access: "past_due", with past_due_since): everything works for 7 days while the card is retried. After that it's access: "past_due_read_only", read-only like the states below, and at 21 days the plan is canceled. Your markets, share links and custom domain stay through all of it.
Read-only accounts. When a trial has ended (access: "trial_expired"), a payment has been past due for 7 days ("past_due_read_only") or a plan is canceled (access: "canceled"), you can still sign in, read everything and change settings: account, facts, digest off, markets/keep, revoking share links and keys, deleting outcomes and removing seats. Anything that spends answers 402 with code: "plan_inactive": running reports, adding or swapping markets, writing AI drafts (the tool GETs unless ?drafts=0), downloads, exports, share links and the other writes.
Errors come back as { "error": "…" }, sometimes with a code or a hint for scripts:
400: a missing or malformed field, an emailed link that's invalid, expired or already used, a password that doesn't meet the rules (code: "password_too_short", "password_breached", …), or code: "state_required" when a city is in more than one of your states (the body lists states; resend with state).401: no credential, or a bad, revoked or expired one.402: report quota used up (code: "report_quota"), a feature your tier doesn't include ("feature_locked"), more markets than your plan allows ("market_quota"), no market swaps left this month ("swap_limit"), or "plan_inactive" (read-only account; the body also has access). The message says where to write to upgrade while billing isn't live.403: that market isn't one of your active markets (with a hint), code: "owner_only" for key and seat management, or code: "signup_closed" (new accounts aren't being taken yet).404: no such report, share, client, outcome, key or fact sheet on your account.409: already 5 active API keys, or a market name close to one already covered (the body lists suggestions; resend with confirm_new: true to add it as typed).410: the report is more than 60 days old (or older than the tools), so its tools are closed. Run a new one.422: a new market's first answers named no businesses, so nothing was added; or the writing model declined to write a draft.429: code: "rate_limited" (too many sign-up or sign-in attempts; wait a minute), code: "signup_cap" (the day's limit on new accounts), 5 fact checks for that business today, a draft already rewritten 3 times (or rewriting paused for the month), or the day's limit on building new markets (5 per account).500: something went wrong on our side. Try again in a minute.502: the writing model failed or wrote something unusable. Try again; nothing was used up.
The tools marked Latest call the same routes as the app, with the same plan, seat and connection rules: