API reference
Aleph publishes a live OpenAPI contract and an interactive Scalar reference.
Open the generated reference
/scalaropens the interactive API explorer./docreturns the OpenAPI document as JSON.
Use these paths on your configured Aleph API URL.
The generated contract is the authority for current paths, request bodies, response schemas, and status codes. It includes agents, versions, conversations, memories, schedules, channels, catalog, Vault, variables, usage, and billing surfaces.
Authenticate
Browser clients use Better Auth session cookies through /api/auth/*. Non-interactive automation can use user or organization API keys as Bearer credentials.
The Aleph CLI uses Better Auth device authorization with the fixed aleph-cli client ID. Credential precedence is:
--api-key;ALEPH_API_KEY;- the stored device-authorized Bearer session.
Build against the contract
Generate client types from /doc rather than copying schemas by hand. Path parameters may appear in Hono :param form in the contract, so clients must serialize them correctly.
Aleph is pre-production and the API may make direct breaking changes. Regenerate clients and review the contract whenever the backend version changes; no compatibility shim is implied.