Skip to main content
Complete installation, authentication, and context selection. API discovery reads the OpenAPI schema from your configured service, so it requires connectivity and may require authentication.

Find the operation

The result is an array of operation records. Add --path-contains /jobs to narrow the list, or --fields operation_id,method,path,request_body_required for a compact view. --limit and --offset slice the fetched records locally. Choose the exact operation_id from your deployment and inspect it before calling it. The following example uses get_job. Use that operation ID only if discovery returns it for your service; otherwise, substitute the operation ID and parameters shown by your service.
The description includes method, path, parameters with their in and required fields, and request_body_required. The example below assumes a job read with a job_id path parameter and a required org_id query parameter.

Resolve, then call

Replace job-example with a job ID obtained from your project. Supply every required path and query parameter. Organization/project parameters can be filled from effective CLI context when the operation defines them.
Review the method, destination, query, and body. The CLI resolves the request against OpenAPI, but a preview is not a guarantee that the server will accept the payload. --dry-run still fetches the schema. Once the request is correct, perform the read:
The result is the backend response, not a universal CLI envelope. Confirm it describes your intended job. For operations requiring JSON, --body accepts a JSON string or @request.json; inspect the deployed schema for its required structure first. Missing required parameters or required bodies produce an error before the target request is sent.
Add global --json when you need to capture or parse the preview:
Example output:
Authenticated CLI API and raw requests accept relative paths or absolute URLs only when the URL’s HTTP(S) origin exactly matches the configured API origin (scheme, normalized host, and effective port). Explicitly configured HTTP deployments remain supported, but an HTTPS API cannot be downgraded per request. Invalid or ambiguous URLs and origin mismatches are rejected before credentials are acquired. Redirects are not followed.

Keep the two query options distinct

Before api, global --query status selects a field from the response. After call, command-local --query name=value adds an HTTP query parameter; use this to supply HTTP query values explicitly. Organization and project values can otherwise come from saved context when the operation defines them. The output selector supports field paths and list indices, not JMESPath filters or expressions. Only select status after verifying that field exists in the full response. If discovery finds no match, broaden the path filter and inspect the available operation IDs. If a write times out, inspect server state before retrying; request previews do not make writes idempotent. See the command reference, SDK overview, and SDK errors.