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
| Mode | Credits | PAYG USD |
|---|---|---|
| standard | 1 | $0.95 |
| quick | 0.5 | $0.48 |
| deep | 3 | $2.85 |
| deep_quick | 1.5 | $1.43 |
Error codes
| Status | error | Meaning |
|---|---|---|
| 400 | invalid_json / invalid_request | Malformed JSON, missing question, unknown mode, or non-https webhook_url. |
| 401 | unauthorized | Missing or invalid API key. |
| 402 | insufficient_credits | Balance cannot cover the run (includes required / available). |
| 403 | plan_restriction | Tier has no API or Deep access. |
| 403 | no_wallet | Account has no credit wallet. |
| 403 | feature_disabled | Mode not launched yet; held credit refunded. |
| 404 | not_found | Path other than /v1/panels. |
| 405 | method_not_allowed | Method other than POST. |
| 500 | internal_error | Run failed; any held credit was refunded. |
| 502 | panel_failed | Fewer than 3 seats completed; credit refunded, missing_seats listed. |
| 503 | feature_disabled | Public API not launched yet. |