PgBeam Docs
agents

agents get

Show a single agent credential

Show one agent credential's metadata: name, Postgres username, policy profile, principal type, status, and timestamps. Secrets are never included; use pgbeam agents rotate to mint fresh secrets.

Usage

pgbeam agents get <id>

Options

OptionDescriptionRequiredDefault
<id>Agent credential IDYes-

Global options

All global options (--token, --profile, --project, --org, --json, --no-color, --debug) are also available on this command.

Examples

# Show an agent credential
pgbeam agents get agt_xxx

# Show as JSON
pgbeam agents get agt_xxx --json

Output

Prints the credential's ID, name, username, policy, principal type, status, and expiry. With --json, returns the raw credential object.

On this page