API Reference
Aweb V2 exposes public discovery, selected OpenAI-compatible generation routes, Aweb-native lifecycle routes, Maestro orchestration, and OS9 governance surfaces. The catalog currently reports 245 provider surfaces, 200 API genome providers, and 506 MCP tools.
Base URLs
REST API
https://aweblabs.ai/api/v2OpenAPI
https://aweblabs.ai/api/openapi.jsonInteractive API docs
https://aweblabs.ai/api/docsAuthentication
Execution routes require a bearer token. Public discovery routes may be readable without a token, but clients should still send scoped keys for workspace-specific behavior.
Authorization: Bearer sk-aweb-your_api_keyEndpoint map
Catalog discovery
Use the integration catalog when docs, agents, SDK examples, or startup-program reviewers need the current provider/API/MCP state.
curl "https://aweblabs.ai/api/v2/integrations/catalog" | jq '.summary'Chat completion
curl -X POST "https://aweblabs.ai/api/v2/chat/completions" \
-H "Authorization: Bearer $AWEB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{ "role": "user", "content": "Explain Aweb provider routing." }
],
"stream": false
}'Maestro orchestration
curl -X POST "https://aweblabs.ai/api/v2/orchestrate/run" \
-H "Authorization: Bearer $AWEB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Research competitors, synthesize the signal, and draft launch positioning",
"capabilities": ["search.web", "llm.chat"],
"policy": "balanced"
}'Errors and receipts
Errors use problem-detail style fields when available. Lifecycle routes may include additive job, run, and audit_receipt objects.
{
"type": "https://aweblabs.ai/errors/provider_unavailable",
"title": "Provider Unavailable",
"status": 503,
"detail": "No provider could fulfill the request.",
"request_id": "req_provider_123",
"code": "providers_exhausted"
}