API docs

The public API is fast-follow, feature-flagged off (apiEnabled: false). Until launch, every request is refused with 503.

Create a panel — POST /v1/panels

Authentication: send your key as a bearer token in the Authorization header: Authorization: Bearer atp_live_...

POST /v1/panels
Authorization: Bearer atp_live_...
Content-Type: application/json

{
  "question": "Should we ship API-first or web-first?",
  "mode": "standard",
  "context": "Solo founder, launch in two weeks.",
  "webhook_url": "https://example.com/hook"
}

Modes: standard | quick | deep | deep_quick. context and webhook_url (https only) are optional.

Response

201 Created
{
  "id": "panel_1",
  "status": "completed",
  "outcome": "consensus" | "no_consensus",
  "winner": "option-abc123" | null,
  "tally": { "counts": { "option-abc123": 3 }, "totalVotes": 5, "winner": "option-abc123", "outcome": "consensus" },
  "dissent": [ { "seat": "Grok", "vote": "option-def456", "critique": "...", "reason": "..." } ],
  "missing_seats": [],
  "verdict": { "summary": "...", "recommendedAction": "..." },
  "credits_charged": 1,
  "payg_usd": 0,
  "balance_after": 23,
  "webhook": null
}

Billing is reserve-settle-refund: credits are held before the run, settled on completion (consensus or no-consensus), and automatically refunded when a run fails. Pay-as-you-go accounts are metered only on completion.

Credit costs

ModeCreditsPAYG USD
standard1$0.95
quick0.5$0.48
deep3$2.85
deep_quick1.5$1.43

Error codes

StatuserrorMeaning
400invalid_json / invalid_requestMalformed JSON, missing question, unknown mode, or non-https webhook_url.
401unauthorizedMissing or invalid API key.
402insufficient_creditsBalance cannot cover the run (includes required / available).
403plan_restrictionTier has no API or Deep access.
403no_walletAccount has no credit wallet.
403feature_disabledMode not launched yet; held credit refunded.
404not_foundPath other than /v1/panels.
405method_not_allowedMethod other than POST.
500internal_errorRun failed; any held credit was refunded.
502panel_failedFewer than 3 seats completed; credit refunded, missing_seats listed.
503feature_disabledPublic API not launched yet.