Skip to main content

tcb env apikey list

Lists the API keys of the current environment.

Usage​

tcb env apikey list -e <envId> [options]

Flags​

FlagRequiredDescriptionDefault
-e, --env-id <envId>YesEnvironment ID—
--type <type>NoFilter by key type: api_key / publish_keyapi_key
--limit <limit>NoItems per page10
--offset <offset>NoOffset, starting from 00

Example​

# List API keys
tcb env apikey list -e env-xxx

# Filter by publish_key
tcb env apikey list -e env-xxx --type publish_key

# Paginated query
tcb env apikey list -e env-xxx --limit 5 --offset 5

# Output in JSON format
tcb env apikey list -e env-xxx --json

Output fields​

FieldDescription
KeyIdUnique identifier of the key
NameKey name
ApiKeyAPI key (partially masked)
ExpireAtExpiration time
CreateAtCreation time