truss api
Make raw HTTP requests to the Truss API. For advanced use, scripting, and endpoints not covered by dedicated commands.
Arguments
| Argument | Description |
|---|
<method> | HTTP method: GET, POST, PATCH, PUT, DELETE |
<path> | API path (e.g. /me, /agents) |
Options
| Option | Description |
|---|
-d, --data <json> | Request body as JSON |
-X, --method <method> | HTTP method (alternative to positional arg) |
-H, --header <key:value> | Custom header (repeatable) |
--pretty | Pretty-print JSON response |
Examples
truss api GET /me
truss api POST /agents -d '{"name":"my-agent","public_key":"abc123"}'
truss api GET /actions?limit=5 -H "X-Custom: value"
truss api PATCH /agents/agent_abc123 -d '{"name":"renamed"}'
truss api DELETE /agents/agent_abc123
truss api GET /me --pretty