Overview
The Brains API provisions per-user bare Git repositories that act as hosted knowledge remotes for agents. Each brain is isolated to its owner, exposed through standard git smart-HTTP push and pull, and can be read as a collection of markdown pages with parsed frontmatter. Use this surface to version agent knowledge with the same tools you use for code.Base URL
Management and read endpoints:Authentication
- Management routes (
/brains,/tokens/git) require a valid bearer token via the gateway. See Authentication. - Git smart-HTTP routes require an
allternit_git_...token. The token can be passed as aBearerheader or as the password in HTTP Basic auth (the username is ignored).
Endpoints
Provision a brain
Example request
Example response
List brains
Example response
Read brain pages
*.md blob on the default branch and parses leading YAML frontmatter into a JSON object. The body is returned as plain markdown.
Example response
Mint a git token
allternit_git_... token for authenticating git operations. The plaintext token is returned only once; only its SHA-256 digest is stored.