Base URL
Versioning
The major version is the/v1 at the end of the base URL. Send nothing else to pick a version.
A request to a path with no version, or to a version that doesn’t exist, gets a 404 with error_code NOT_FOUND.
Changes within /v1 are meant to be additive: a new route, a new response field, a new optional parameter, or a new value in a response enum. Ignore fields you don’t know, and handle an error_code you don’t know by its HTTP status.
A breaking change would ship as /v2 beside /v1. The docs would announce the old version, along with Deprecation and Sunset response headers, before it is removed.
What you can do
- Read a portfolio’s holdings, allocation bands, position size ranges, and scenario rules
- Check compliance against those rules, using prices you supply
- Check a proposed change before you make it elsewhere (
POST /trades/check; see Check a change) - Work out the pro rata amounts that close a gap to the portfolio’s targets
- Set holdings to the share counts you hold now, and record deposits and withdrawals
- Read and edit scenarios, asset classes and rules, or exchange them as rules text (see Rules text)
- Export a setup file of your research definitions, or preview and apply one (see ALLOCAIT.md)
- Read and write watchlists, Inputs, playbooks, monitors and charts
- Read the record of position and cash changes
- File support requests and feedback
- Subscribe to webhooks for compliance events (needs Read and change access)
Prices are always yours
Allocait’s own stored market data is never returned by this API, and nothing computed from it is either: not a value, a compliance status, a trade, or a monitor reading. The pattern is two calls: fetch a portfolio snapshot to see what symbols need a price, then call again with aprices map for those symbols. See Prices for the full flow.
Next steps
API quickstart
A key, a first read, a first check and error handling.
Authentication
How to get and use an API key.
Endpoints by task
The route and the MCP tool for each job.
Conventions
Lists, paging, ids and request format.
Errors
The error envelope and status codes.
Docs for agents
Point an agent at these docs.