Asteria Docs

API Reference

Asteria API overview — authentication, routing modes, and endpoint index.

Base URL

https://api.asteria-labs.com/v1

Authentication

All /v1/ requests require a Bearer token in the Authorization header.

Two key types exist with different scopes:

Key prefixScopeUsed for
sk-ast-...ProjectChat completions, model/agent discovery
sk-ast-adm-...Admin/v1/organization/ management routes

Project keys are created per-project in the platform. Admin keys are created by org admins in Settings → Admin API Keys.

Routing modes

POST /v1/chat/completions supports three modes controlled by model + agent:

modelagentModeBehavior
(omitted)(omitted)GatewayPure LLM proxy on your organization's default chat model
"claude-opus-4-6"(omitted)GatewayPure LLM proxy — no system prompt, no tools
(omitted)"asteria"OrchestratorFull Asteria agent on the organization's default chat model
"claude-opus-4-6""asteria"OrchestratorFull Asteria agent with RAG, web search, code execution
"gpt-4o""hr-bot-h26dx"Custom agentShared custom agent by slug

Both fields are optional. agent selects the agent layer; model pins a specific model, and omitting it uses your organization's default chat model — so you can send a first request without looking up a model id. If the organization has no default chat model configured, an omitted model returns 400 invalid_request_error ("No default chat model is configured for this organization").

Quick example

curl -X POST https://api.asteria-labs.com/v1/chat/completions \
  -H "Authorization: Bearer sk-ast-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agent": "asteria",
    "messages": [{"role": "user", "content": "Summarize our Q4 board deck"}]
  }'

Endpoint index

Chat & Discovery (project key)

MethodPathDescription
POST/v1/chat/completionsChat completions — gateway, orchestrator, or custom agent
GET/v1/modelsList models available to your project
GET/v1/agentsList agents callable by your project

Organization management (admin key)

MethodPathDescription
GET/v1/organization/usersList org members
GET/PATCH/DELETE/v1/organization/users/:idRetrieve, update role, or remove user
GET/POST/v1/organization/invitesList or create pending invitations
GET/DELETE/v1/organization/invites/:idRetrieve or cancel invitation
GET/POST/v1/organization/projectsList or create projects
GET/PATCH/DELETE/v1/organization/projects/:idRetrieve, update, or archive project
GET/POST/v1/organization/projects/:id/api-keysList or create project API keys
GET/DELETE/v1/organization/projects/:id/api-keys/:key-idRetrieve or revoke key
GET/POST/v1/organization/projects/:id/usersList or add project members
GET/PATCH/DELETE/v1/organization/projects/:id/users/:uidRetrieve, update role, or remove member
GET/POST/v1/organization/admin-keysList or create admin API keys
DELETE/v1/organization/admin-keys/:idRevoke admin key
GET/v1/organization/usageOrg-wide usage summary
GET/v1/organization/projects/:id/usagePer-project usage summary
GET/v1/organization/audit-logsOrg-wide audit log (cursor-paginated)