Skip to main content
api is the escape hatch for Gateway operations without a dedicated CLI command. The CLI resolves the Gateway and credential before sending the request.

Usage

Use --list-ops without a request to inspect known operations.

Options

--field always sends strings. --raw-field converts integers, true, false, and null; values starting with @ read a file, and @- reads stdin.

Examples

Read identity:
Create a workspace with a string field:
Send typed fields:
Fetch every page:
Preview a destructive request:

Output and behavior

  • Response data goes to stdout; progress and diagnostics go to stderr.
  • --jq and --template operate on JSON responses.
  • Pagination stops when the response has no next page. --slurp requires --paginate.
  • Destructive methods prompt unless --confirm is supplied. Prefer --dry-run before skipping confirmation.
  • Authentication failures exit with code 4; other HTTP or decoding failures exit with code 1.