Skip to main content
The CLI reads an authenticated OpenAPI document and sends JSON to the corresponding operation routes. Prefer the CLI for agent workflows. These HTTP details are for developers who need to understand or integrate the same public contract; they do not describe internal or admin APIs.
Use Aident OAuth for an authorized caller. Do not put access tokens in a page, repository, example payload, or browser URL. The OpenAPI document is filtered by the caller’s access and is the current source for complete JSON Schemas, enums, and response types. The table below covers the public workflow operations; their field lists are intentionally concise.

Discovery and execution operations

For capabilities_search, use types: ["action"] for executable external operations. For capabilities_get, useful parts include inputSchema, outputSchema, description, and examples. The input object for preflight and execute is Action-specific. Read its current inputSchema from capabilities_get before constructing it. Action names use the form <integration-type>:<integration-id>:<action-id>.

Request examples

Each example body goes to POST /api/openapi/loadout/<operationId> with the matching operation ID from the table. Replace the Action name and input with values returned by discovery and capabilities_get.
The last shape is shared by preflight and execute. Execution can also select an account alias or carry a one-time approval token. Neither is a substitute for getting the user’s authorization for the proposed Action.

Guidance, access, and audit operations

The same loadout_vault endpoint backs the CLI’s vault status, vault connect, and vault disconnect commands. loadout_audit backs audit recent and audit summary. When connecting from an agent, omit plaintext credentials and show the user the returned Aident connection URL. Do not disconnect or replace an account without the user’s authorization.

Request examples

These bodies correspond to loadout_skills_search, loadout_skills_read, loadout_vault, and loadout_audit in order. Read the live OpenAPI document for optional filters and full nested schemas, including Skill traversal state and multi-account connection fields.

Response envelope

Operation responses use a JSON envelope. The exact data schema differs by operation and appears in the live OpenAPI document.
Check both HTTP status and success. An Action result can also contain provider-level fields such as successful or ok; inspect those before claiming the external operation succeeded. A validation error, missing OAuth scope, or unknown operation can return a typed error. The CLI handles catalog lookup and request routing for you; the CLI reference shows the matching commands.