apigent show
apigent show
Print everything stored on a saved request: method, URL, headers, body, auth, extraction rules, scripts, collection and tags. Literal secrets are masked by default.
Synopsis
apigent show <name> [flags]Values of credential headers, sensitive query parameters (for example ?token=...) and secret auth params print as *****. Values that are placeholders such as Bearer {{API_KEY}} stay visible, because they only name a variable. Pass --reveal to print the literals; --reveal is refused in agent mode.
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--format | -f | pretty | Output format: pretty, json, or curl |
--json | false | Output as JSON (same as --format json) | |
--reveal | false | Show secret header and auth values instead of masking them |
Aliases
inspectviewinfo
Examples
Inspect a request before running it
apigent show literalName: literal
Method: GET
URL: http://127.0.0.1:18731/x?token=*****
Headers:
Authorization: *****JSON for scripts
apigent show "create-order" --json | jq .headersReconstruct the curl command
apigent show "create-order" --format curlPrints an equivalent curl command, masked the same way. For a copy-paste-ready command use apigent codegen -l curl.
Related commands
apigent run- Execute a saved request (--dry-runpreviews the resolved request)apigent edit- Edit a saved requestapigent list- List saved requests- Header redaction - What gets masked