Skip to content

cla api - The Clarive API on the server

cla api: the API operation catalog, local calls and access tokens, for administrators working on the Clarive server. The same operations are available remotely through /api/v2, /mcp and the clarive CLI (see API, MCP Server and the clarive CLI).

cla api-catalog

Prints the catalog of every operation as JSON, with parameters and JSON schemas. The clarive CLI embeds it (make catalog in clarive-cli/).

cla api-catalog -c myconfig
cla api-catalog -c myconfig --namespace job,topic

cla api-ops

Lists the operations with their kind (read, write, destructive) and summary.

cla api-ops -c myconfig
cla api-ops -c myconfig --search "job log"

cla api-call

Runs an operation on the server, as a user (root by default), with the same validation and permissions as a remote call. Parameters are JSON.

cla api-call job.list '{"limit":5}' -c myconfig
cla api-call topic.get '{"mid":"42","format":"values"}' --user jdoe -c myconfig

cla api-token

Creates a personal access token for a user, for example for a CI system or an AI agent. It prints only the token.

cla api-token --user jdoe --days 30 -c myconfig
cla api-token --user reporter --read-only --description "weekly report" -c myconfig

cla api catalog, cla api ops, cla api call and cla api token are the same commands.