HTTP API reference
Generated from the OpenAPI document the API itself produces (Alive Healthtech API 1.0.0-beta). The machine-readable document is in the repository at contracts/openapi.json, and the typed TypeScript client @alive/sdk is generated from it.
Base URL: https://api.alivehealthtech.com (pilot access only during development). Authenticate with Authorization: Bearer <token>: a signed-in session or an API token. Errors always look like {code, message, details, request_id}; see errors and limits.
Public (no account needed)
/v1/healthpublicHealth
/v1/intakes/validatepublicValidate Intake
/v1/modelspublicVersioned model catalog. Proprietary implementation code is never included.
Parameters: category? (query, string | null)
/v1/models/{ref}publicGet Model
Parameters: ref (path, string)
/v1/prompts/{kind}publicGet Prompt
Parameters: kind (path, string)
/v1/schemas/{name}/{version}publicGet Schema
Parameters: name (path, string) · version (path, string)
/v1/world-specs/validatepublicSchema, semantic and safety validation with resolved model locks. Never executes.
Projects, intake and plans
/v1/intakes/extractauthRead and screen material without any AI call. Nothing is stored.
| files? | string[] | null |
| text? | string | null |
/v1/projectsauthList Projects
Parameters: org_id? (query, string | null)
/v1/projectsauthIdempotency-KeyCreate Project
| org_id? | string | null |
| title | string |
/v1/projects/{project_id}authGet Project
Parameters: project_id (path, string)
/v1/projects/{project_id}/context/exportauthPortable, minimal context manifest for another AI agent (spec §4).
Parameters: project_id (path, string)
/v1/projects/{project_id}/evaluation-plansauthCreate Plan
Parameters: project_id (path, string)
| byok? | boolean |
| intake_revision? | integer | null |
/v1/projects/{project_id}/evaluation-plans/{plan_id}authGet Plan
Parameters: project_id (path, string) · plan_id (path, string)
/v1/projects/{project_id}/evaluation-plans/{plan_id}/approveauthApprove one scope (paid inference, staging access, or execution) separately.
Parameters: project_id (path, string) · plan_id (path, string)
| budget_limit_credits? | integer | null |
| scope | ApprovalScope |
/v1/projects/{project_id}/intakesauthIdempotency-KeySave Intake
Parameters: project_id (path, string)
| confirm? | boolean |
| intake | object |
| origin? | string |
/v1/projects/{project_id}/intakes/parseauthDraft an IntakeSpec with bounded AI. The draft is NOT saved; the user confirms it first.
Parameters: project_id (path, string)
| byok_provider? | ProviderName | null |
| evaluation_goal? | string | null |
| external_ai_approved | boolean |
| files? | string[] | null |
| text? | string | null |
/v1/projects/{project_id}/intakes/{revision}authGet Intake
Parameters: project_id (path, string) · revision (path, integer)
Worlds, runs and reviews
/v1/experiments/compareauthRead stored paired comparisons from one completed run; never launch new work. Variants were executed together with common random numbers. Unrelated runs are not assumed comparable. Partial results retain the actual pair counts and null intervals.
| run_id | string |
/v1/projects/{project_id}/reviewsauthIdempotency-KeyCreate Review
Parameters: project_id (path, string)
| budget_limit_credits | integer |
| byok_provider? | ProviderName | null |
| plan_id | string |
/v1/projects/{project_id}/worldsauthStore an immutable WorldSpec revision after full validation.
Parameters: project_id (path, string)
| spec | object |
/v1/reviews/{review_id}authGet Review
Parameters: review_id (path, string)
/v1/runsauthIdempotency-KeyValidate, reserve credits and queue a run. An explicit budget is the user's approval.
| approval_id? | string | null |
| budget_limit_credits | integer |
| world_revision_id | string |
/v1/runs/estimateauthEstimate Run
| world_revision_id | string |
/v1/runs/{run_id}authGet Run
Parameters: run_id (path, string)
/v1/runs/{run_id}/cancelauthCancel Run
Parameters: run_id (path, string)
/v1/runs/{run_id}/eventsauthRun Events
Parameters: run_id (path, string) · variant? (query, string | null) · replication? (query, integer | null) · event_type? (query, string | null) · offset? (query, integer) · limit? (query, integer)
/v1/runs/{run_id}/exportauthRun Export
Parameters: run_id (path, string)
/v1/runs/{run_id}/resultsauthRun Results
Parameters: run_id (path, string)
/v1/world-revisions/{world_revision_id}authGet World
Parameters: world_revision_id (path, string)
Account, tokens and credits
/v1/credits/balanceauthCredit Balance
Parameters: org_id? (query, string | null)
/v1/meauthMe
/v1/orgs/{org_id}/provider-keysauthList Provider Keys
Parameters: org_id (path, string)
/v1/orgs/{org_id}/provider-keysauthAdd Provider Key
Parameters: org_id (path, string)
| api_key | string |
| label | string |
| provider | ProviderName |
/v1/orgs/{org_id}/provider-keys/{key_id}authRevoke Provider Key
Parameters: org_id (path, string) · key_id (path, string)
/v1/research/consentauthGive Consent
| level | string |
| org_id | string |
| policy_version | string |
| project_id? | string | null |
/v1/tokensauthList Tokens
/v1/tokensauthCreate a scoped token for the CLI/SDK. The secret is returned once and never stored.
| expires_in_days? | integer |
| name | string |
| org_id | string |
| scopes? | string[] |
/v1/tokens/{token_id}authRevoke Token
Parameters: token_id (path, string)