Call a tool
The two addresses every API call uses, the request and answer shapes, and the rules every action shares.
At a glance
- Send the body as JSON with
Content-Type: application/json. An action with no input takes an empty body. - A field the action does not know is refused with
400 invalid_body, not ignored, so a typo shows in your log. - A body over 200 KB is refused with
413 body_too_large.
List what a key may call
The answer names only the actions this key's permissions open. permissions lists the permissions that would each open the action. input is the full JSON Schema of the body; it is shortened here. This request is free and does not count toward the rate limit.
Call an action
A read answers 200 with the data it found. A write answers with a message that says what changed, and a link where there is one. The link is a path in Alchex: put https://app.alchex.com in front to open it.
Adding rows answers 201. Every error has the same shape; see Errors.
Every action
The action must match the body
The body must be the action you call. Sending "status": "Archived" to write_document/edit, for example, is refused with 403 not_allowed_for_api_key. Nothing is changed.