Spend, budgets, and API tokens
Use verdictan spend to examine recorded spending. Use verdictan token to limit an application credential by provider, model, spend, request count, or expiry.
All commands use API authentication. Set VERDICTAN_API_TOKEN, or sign in with verdictan auth login before you run them. Each command accepts --json. The verdictan spend commands accept the standard overrides --config <path>, --api-url <url>, --profile <name>, and --region <region>. The verdictan token commands accept --config <path>, --api-url <url>, and --profile <name> only. The tables below list only the command-specific flags.
Examine recorded cost
verdictan spend summary --from 7d --group-by region --jsonRead these values as estimated costs from recorded usage. They are not your provider invoice. If usage or pricing is missing, the total does not include all costs.
Before you create a limit, select the control that applies to your request path:
| Control | Use it for |
|---|---|
| API token limits | Limit requests made with a specified API token. |
| Provider budget | Limit provider headroom when targets have pricing metadata. |
| Scope budget | Store an organization, team, user, or key budget. Connected gateways do not load these records for routing. |
For a procedure to configure and verify a token limit, see Usage costs and budgets.
verdictan spend summary
verdictan spend summary returns the spend report for the organization.
Usage
verdictan spend summary [--from <duration|rfc3339>] [--to <duration|rfc3339>] [--group-by <dimension>] [--json]Options
| Flag | Description |
|---|---|
--from <duration|rfc3339> | Start of the report window. Accepts an RFC3339 UTC timestamp or a relative duration such as 30d. |
--to <duration|rfc3339> | End of the report window. Accepts an RFC3339 UTC timestamp or a relative duration such as 1d. A relative duration counts back from now. |
--group-by <dimension> | Group the totals by one dimension, such as region. |
Examples
verdictan spend summary
verdictan spend summary --from 30d --group-by region --jsonverdictan spend budget
verdictan spend budget manages scope budgets at /v1/budgets. A scope budget applies to an organization, a team, a user, or a key.
Usage
verdictan spend budget list [--json]
verdictan spend budget get --budget-id <id> [--json]
verdictan spend budget create --name <name> --max-budget <amount> --target-type <type> [OPTIONS]
verdictan spend budget update --budget-id <id> [OPTIONS]
verdictan spend budget delete --budget-id <id> --yesOptions
| Flag | Applies to | Description |
|---|---|---|
--budget-id <id> | get, update, delete | Mandatory budget ID. |
--name <name> | create, update | Budget name. Mandatory for create. |
--max-budget <amount> | create, update | Maximum amount. Mandatory for create. |
--target-type <key|user|team|organization> | create | Mandatory scope of the budget. |
--target-id <id> | create | ID of the key, user, or team. Mandatory for those target types. |
--currency <code> | create, update | Currency code. The default for create is usd. |
--reset-schedule <schedule> | create, update | Reset schedule: never, daily, weekly, or monthly. The API rejects any other value with 422. A budget without a schedule does not reset. |
--alert-threshold-pct <n> | create, update | Alert threshold as a percentage. The default for create is 80. |
--yes | delete | Mandatory confirmation. Without it, the command stops with an error and makes no changes. |
Examples
# Store an organization-level monthly budget
verdictan spend budget create \
--name "Monthly planning budget" \
--max-budget 100 \
--target-type organization \
--reset-schedule monthly
# Team budget with an earlier alert
verdictan spend budget create \
--name "Support Team" \
--max-budget 25 \
--target-type team \
--target-id team_abc123 \
--alert-threshold-pct 70
# Raise a limit, then confirm the stored value
verdictan spend budget update --budget-id budget_abc123 --max-budget 150
verdictan spend budget get --budget-id budget_abc123 --jsonReset periods are in UTC. A daily period starts at 00:00 UTC, a weekly period on Monday, and a monthly period on the first day of the month. When a period ends, the budget shows zero spend.
The gateway does not load scope budgets for routing. For the connected request path, use provider budgets, API token limits, and usage authorization. Usage and budgets gives details about the difference.
verdictan spend provider-budget
verdictan spend provider-budget manages spend limits for one provider. The gateway uses provider budgets in its provider-headroom check.
Usage
verdictan spend provider-budget list [--json]
verdictan spend provider-budget get --budget-id <id> [--json]
verdictan spend provider-budget create --provider <name> --limit-usd <amount> [--reset-schedule <schedule>] [--reset-at <time>] [--json]
verdictan spend provider-budget delete --budget-id <id> --yesOptions
| Flag | Applies to | Description |
|---|---|---|
--budget-id <id> | get, delete | Mandatory provider budget ID. |
--provider <name> | create | Mandatory provider name, such as openai or anthropic. |
--limit-usd <amount> | create | Mandatory limit in USD. |
--reset-schedule <schedule> | create | Reset schedule: daily, weekly, monthly, or lifetime (no reset). The default is monthly. The CLI rejects the removed --period alias. |
--reset-at <time> | create | Next reset time as an RFC 3339 timestamp. It also sets the start of later periods. |
--yes | delete | Mandatory confirmation. Without it, the command stops with an error and makes no changes. |
Examples
verdictan spend provider-budget create --provider openai --limit-usd 25 --reset-schedule monthly
verdictan spend provider-budget list --jsonTo remove a provider budget that is not in use, copy its ID from list. Then run verdictan spend provider-budget delete --budget-id "$BUDGET_ID" --yes. Removal changes provider headroom.
Before you use a provider budget, make sure that the target has pricing metadata. Send one allowed request through the gateway. Then verify that the gateway blocks a request when the budget is exhausted.
verdictan token
verdictan token governs the API tokens that applications, IDEs, gateways, and integrations use. The token ID is a positional argument for each subcommand that acts on one token.
Usage
verdictan token list [--purpose <purpose>] [--alerts-only] [--json]
verdictan token get <id> [--json]
verdictan token create --name <name> [OPTIONS]
verdictan token update <id> [OPTIONS]
verdictan token clone <id> --reason <text> [OPTIONS]
verdictan token rotate <id> [--json]
verdictan token validate [--force-tty] [--json]
verdictan token delete <id> --yes [--json]
verdictan token emergency-revoke <id> --reason <text> --yes [--revoke-active-sessions] [--json]
verdictan token exchange-code [OPTIONS]verdictan auth documents verdictan token exchange-code, which changes a PKCE authorization code into one API token.
Options
| Flag | Applies to | Description |
|---|---|---|
<id> | get, update, clone, rotate, delete, emergency-revoke | Mandatory positional token ID. |
--purpose <general|gateway-runtime|integration> | list, create | Token purpose. For list, return only one purpose. For create, the default is general. |
--alerts-only | list | Return only tokens with a budget, request, expiry, or terminal alert. |
--name <name> | create, update, clone | Display name. Mandatory for create. |
--key-class <durable|virtual|disposable> | create | Governed key class. The default is durable. |
--provider <name> | create, update, clone | Provider binding. update and clone can only narrow it. |
--model-filter <model> | create, update, clone | Model filter. Supply the flag for each value, or pass values with commas between them. |
--gateway-id <id> | create, update, clone | Gateway binding. |
--team-id <id> | create, update, clone | Team binding. |
--budget-id <id> | update, clone | Budget binding. |
--rate-limit-rpm <n> | create, update, clone | Requests for each minute. update and clone can only lower it. |
--rate-limit-tpm <n> | create, update, clone | Tokens for each minute. update and clone can only lower it. |
--max-budget <amount> | create, update, clone | Maximum spend for the token. update and clone can only lower it. |
--max-requests <n> | create, update, clone | Maximum request count. update and clone can only lower it. |
--currency <code> | create, update, clone | Budget currency, such as USD. |
--metadata-json <json> | update, clone | Replace the public token metadata with one JSON object. |
--policy-id <id> | update, clone | Replace the attached policy IDs. Supply the flag for each value, or pass values with commas between them. |
--expires-in <duration> | create | Expiry duration, such as 30d or 24h. |
--expires-in-seconds <n> | clone | Expiry duration in seconds. |
--expires-at <timestamp> | clone | Expiry timestamp in the format that the API accepts. |
--reason <text> | clone, emergency-revoke | Mandatory lifecycle reason. |
--revoke-active-sessions | emergency-revoke | Also revoke the active sessions of the token subject when applicable. |
--force-tty | validate | Accept the token value from an interactive terminal as an alternative to a pipe. |
--yes | delete, emergency-revoke | Mandatory confirmation. Without it, the command stops with an error and makes no changes. |
Create a bounded API token
This example creates a short-lived token with a small spending limit and at most three requests:
verdictan token create \
--name docs-request-test \
--purpose general \
--key-class disposable \
--max-budget 1 \
--max-requests 3 \
--expires-in 1hSave the returned token value immediately. It shows one time. Keep the token ID for subsequent management. Before use, apply the necessary gateway, provider, and model bindings.
The limits apply to requests made with this token. They do not limit traffic that uses other credentials.
Update or copy a configured token
Set TOKEN_ID to an ID from verdictan token list. An update can narrow its limits:
verdictan token update "$TOKEN_ID" --max-requests 2
verdictan token get "$TOKEN_ID" --jsonTo make a narrower copy for a different task:
verdictan token clone "$TOKEN_ID" \
--reason "Isolated documentation test" \
--model-filter "replace-with-an-allowed-model-id"Rotate a token
Rotation replaces the raw credential. Prepare to update its consumers before you run this command:
verdictan token rotate "$TOKEN_ID"Save the new value. Update the application. Send a request with the replacement to verify it.
Validate or revoke a token
Validation reads the candidate value from standard input:
printf '%s' "$CANDIDATE_TOKEN" | verdictan token validateTo revoke a token that is no longer necessary:
verdictan token delete "$TOKEN_ID" --yesIf you think that the credential was exposed, record the reason with an emergency revocation:
verdictan token emergency-revoke "$TOKEN_ID" \
--reason "Suspected credential exposure" --yes| Task | Subcommand |
|---|---|
| Create a new bounded token | create |
| Narrow metadata, bindings, limits, or policies of one token | update |
| Create a narrower copy of one token record | clone |
| Replace the raw value and keep the record | rotate |
| Verify a raw value against the API | validate |
| Revoke with proof metadata | emergency-revoke |
Limits and failure behavior
- All commands stop with an authentication error when no API token or session is available.
verdictan tokencommands do not accept--api-tokenor--region. UseVERDICTAN_API_TOKENor a stored profile.spend budget delete,spend provider-budget delete,token delete, andtoken emergency-revokedo not prompt. They stop with an error unless you pass--yes.token create,token clone, andtoken rotateshow the raw token value one time. Store the value immediately and keep JSON output out of logs.token validatereads the raw token from standard input. When standard input is a terminal, the command stops unless you pass--force-tty. Do not put a token value in shell history or process arguments.token rotatereturns a replacement value. Update each consumer immediately, and do not give the previous value to consumers.token updateandtoken clonenarrow a token. They do not widen a binding or increase a limit.- A scope budget is a stored record. It does not enforce spend on a connected gateway.
- A provider budget uses pricing metadata on the target. Verify one allowed request. Then verify that the gateway blocks a request when the budget is exhausted.
Complete command reference
Select a command for its complete input table. Default input means the value used when that option is omitted.
A value marked Not set can still come from configuration or the environment, as described above.
Set uppercase variables in example templates to your own resource IDs and paths before use.
See CLI scripting for quoting, output streams, confirmation, and exit codes.
verdictan spend summary [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--from <FROM> | No | Not set | Start time (RFC3339 UTC or a relative duration, for example 30d) |
--to <TO> | No | Not set | End time (RFC3339 UTC or a relative duration, for example 1d) |
--group-by <GROUP_BY> | No | Not set | Group results by dimension (for example, "region") |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text presents the selected resource records. With --json, the command prints the API response. See the workflow above for its fields.
Example template:
verdictan spend summaryverdictan spend budget list [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text presents the selected resource records. With --json, the command prints the API response. See the workflow above for its fields.
Example template:
verdictan spend budget listverdictan spend budget get [OPTIONS] --budget-id <BUDGET_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--budget-id <BUDGET_ID> | Yes | Not set | Budget id |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text presents the selected resource records. With --json, the command prints the API response. See the workflow above for its fields.
Example template:
verdictan spend budget get --budget-id "$BUDGET_ID"verdictan spend budget create [OPTIONS] --name <NAME> --max-budget <MAX_BUDGET> --target-type <TARGET_TYPE>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--name <NAME> | Yes | Not set | Budget name |
--max-budget <MAX_BUDGET> | Yes | Not set | Maximum budget amount Use a number. |
--target-type <TARGET_TYPE> | Yes | Not set | Budget target type (key, user, team, organization) Values: key, user, team, organization. |
--target-id <TARGET_ID> | No | Not set | Target entity id (mandatory for key, user, and team target types) |
--currency <CURRENCY> | No | usd | Currency (default: usd) |
--reset-schedule <RESET_SCHEDULE> | No | Not set | Budget renewal schedule (for example, "monthly", "daily", or "weekly") |
--alert-threshold-pct <ALERT_THRESHOLD_PCT> | No | 80 | Alert threshold percentage (default: 80) Use an integer from -2147483648 through 2147483647. |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan spend budget create --name "example" --max-budget 25 --target-type keyverdictan spend budget update [OPTIONS] --budget-id <BUDGET_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--budget-id <BUDGET_ID> | Yes | Not set | Budget id |
--name <NAME> | No | Not set | Name of the resource or local gateway definition selected by this command. |
--max-budget <MAX_BUDGET> | No | Not set | Maximum budget amount Use a number. |
--currency <CURRENCY> | No | Not set | Currency |
--reset-schedule <RESET_SCHEDULE> | No | Not set | Budget renewal schedule (for example, "monthly", "daily", or "weekly") |
--alert-threshold-pct <ALERT_THRESHOLD_PCT> | No | Not set | Alert threshold percentage Use an integer from -2147483648 through 2147483647. |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan spend budget update --budget-id "$BUDGET_ID"verdictan spend budget delete [OPTIONS] --budget-id <BUDGET_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--budget-id <BUDGET_ID> | Yes | Not set | Budget id |
--yes | No | false | Required confirmation. Without it, this command stops and changes nothing. This is a switch without a value. |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan spend budget delete --budget-id "$BUDGET_ID" --yesverdictan spend provider-budget list [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text presents the selected resource records. With --json, the command prints the API response. See the workflow above for its fields.
Example template:
verdictan spend provider-budget listverdictan spend provider-budget get [OPTIONS] --budget-id <BUDGET_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--budget-id <BUDGET_ID> | Yes | Not set | Provider budget id |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text presents the selected resource records. With --json, the command prints the API response. See the workflow above for its fields.
Example template:
verdictan spend provider-budget get --budget-id "$BUDGET_ID"verdictan spend provider-budget create [OPTIONS] --provider <PROVIDER> --limit-usd <LIMIT_USD>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--provider <PROVIDER> | Yes | Not set | Provider name (for example, "openai" or "anthropic") |
--limit-usd <LIMIT_USD> | Yes | Not set | Limit in USD. The API stores it as max_budget Use a number. Also accepts --max-budget. |
--reset-schedule <RESET_SCHEDULE> | No | monthly | Spend reset schedule: daily, weekly, monthly, or lifetime (no reset) |
--reset-at <RESET_AT> | No | Not set | Next reset time as an RFC 3339 timestamp. It also anchors later periods |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan spend provider-budget create --provider openai --limit-usd 25verdictan spend provider-budget delete [OPTIONS] --budget-id <BUDGET_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--budget-id <BUDGET_ID> | Yes | Not set | Provider budget id |
--yes | No | false | Required confirmation. Without it, this command stops and changes nothing. This is a switch without a value. |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan spend provider-budget delete --budget-id "$BUDGET_ID" --yesverdictan token list [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--purpose <PURPOSE> | No | Not set | Filter by purpose (general, gateway_runtime, integration) Values: general, gateway-runtime, integration. |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--alerts-only | No | false | Show only tokens with derived budget, request, expiry, or terminal alerts This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text presents the selected resource records. With --json, the command prints the API response. See the workflow above for its fields.
Example template:
verdictan token listverdictan token get [OPTIONS] <ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
<ID> | Yes | Not set | Token ID to retrieve |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text presents the selected resource records. With --json, the command prints the API response. See the workflow above for its fields.
Example template:
verdictan token get "$ID"verdictan token create [OPTIONS] --name <NAME>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--name <NAME> | Yes | Not set | Display name for the token |
--purpose <PURPOSE> | No | general | Token purpose (general, gateway_runtime, integration) Values: general, gateway-runtime, integration. |
--key-class <KEY_CLASS> | No | durable | Governed key class (durable, virtual, disposable) Values: durable, virtual, disposable. |
--provider <PROVIDER> | No | Not set | Provider filter (optional) |
--model-filter <MODEL_FILTER> | No | Not set | Model filter. Use more than one time or pass comma-separated values Repeat this input. Values can also use , as a separator. |
--rate-limit-rpm <RATE_LIMIT_RPM> | No | Not set | Rate limit — requests for each minute (optional) Use a nonnegative integer. |
--rate-limit-tpm <RATE_LIMIT_TPM> | No | Not set | Rate limit — tokens for each minute (optional) Use a nonnegative integer. |
--max-budget <MAX_BUDGET> | No | Not set | Maximum budget for this token (optional) Use a number. |
--max-requests <MAX_REQUESTS> | No | Not set | Maximum request count for this token (optional) Use a nonnegative integer. |
--currency <CURRENCY> | No | Not set | Budget currency (optional, for example USD) |
--gateway-id <GATEWAY_ID> | No | Not set | Bind to a gateway ID (optional) |
--team-id <TEAM_ID> | No | Not set | Bind to a team ID (optional) |
--expires-in <EXPIRES_IN> | No | Not set | Token expiry duration (for example, 30d or 24h) |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the new token and shows its raw value once. JSON contains the creation response and token_value.
Example template:
verdictan token create --name "example"verdictan token update [OPTIONS] <ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
<ID> | Yes | Not set | Token ID to update |
--name <NAME> | No | Not set | New display name |
--provider <PROVIDER> | No | Not set | Narrow provider binding |
--model-filter <MODEL_FILTER> | No | Not set | Narrow model filter. Use more than one time or pass comma-separated values Repeat this input. Values can also use , as a separator. |
--gateway-id <GATEWAY_ID> | No | Not set | Narrow gateway binding |
--team-id <TEAM_ID> | No | Not set | Narrow team binding |
--budget-id <BUDGET_ID> | No | Not set | Narrow budget binding |
--rate-limit-rpm <RATE_LIMIT_RPM> | No | Not set | Lower requests-per-minute rate limit Use a nonnegative integer. |
--rate-limit-tpm <RATE_LIMIT_TPM> | No | Not set | Lower tokens-per-minute rate limit Use a nonnegative integer. |
--max-budget <MAX_BUDGET> | No | Not set | Lower maximum budget Use a number. |
--max-requests <MAX_REQUESTS> | No | Not set | Lower maximum request count Use a nonnegative integer. |
--currency <CURRENCY> | No | Not set | Budget currency when max budget is set |
--metadata-json <METADATA_JSON> | No | Not set | Replace public token metadata with a JSON object |
--policy-id <POLICY_IDS> | No | Not set | Replace attached policy IDs. Use more than one time or pass comma-separated values Repeat this input. Values can also use , as a separator. |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan token update "$ID" --name "Updated name"verdictan token clone [OPTIONS] --reason <REASON> <ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
<ID> | Yes | Not set | Source token ID to clone |
--name <NAME> | No | Not set | Display name for the clone |
--reason <REASON> | Yes | Not set | Mandatory lifecycle reason for the narrower clone |
--provider <PROVIDER> | No | Not set | Narrow provider binding |
--model-filter <MODEL_FILTER> | No | Not set | Narrow model filter. Use more than one time or pass comma-separated values Repeat this input. Values can also use , as a separator. |
--gateway-id <GATEWAY_ID> | No | Not set | Narrow gateway binding |
--team-id <TEAM_ID> | No | Not set | Narrow team binding |
--budget-id <BUDGET_ID> | No | Not set | Narrow budget binding |
--rate-limit-rpm <RATE_LIMIT_RPM> | No | Not set | Lower requests-per-minute rate limit Use a nonnegative integer. |
--rate-limit-tpm <RATE_LIMIT_TPM> | No | Not set | Lower tokens-per-minute rate limit Use a nonnegative integer. |
--max-budget <MAX_BUDGET> | No | Not set | Lower maximum budget Use a number. |
--max-requests <MAX_REQUESTS> | No | Not set | Lower maximum request count Use a nonnegative integer. |
--currency <CURRENCY> | No | Not set | Budget currency when max budget is set |
--metadata-json <METADATA_JSON> | No | Not set | Replace public token metadata with a JSON object |
--policy-id <POLICY_IDS> | No | Not set | Replace attached policy IDs. Use more than one time or pass comma-separated values Repeat this input. Values can also use , as a separator. |
--expires-in-seconds <EXPIRES_IN_SECONDS> | No | Not set | Token expiry duration in seconds Use a signed integer. |
--expires-at <EXPIRES_AT> | No | Not set | Token expiry timestamp accepted by the API |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text or JSON reports the clone and its newly issued credential. Treat the output as a secret.
Example template:
verdictan token clone --reason "Reviewed change" "$ID"verdictan token emergency-revoke [OPTIONS] --reason <REASON> <ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
<ID> | Yes | Not set | Token ID to emergency revoke |
--reason <REASON> | Yes | Not set | Mandatory proof reason for emergency revocation |
--revoke-active-sessions | No | false | Also revoke active sessions for the token subject when applicable This is a switch without a value. |
--yes | No | false | Required confirmation. Without it, this command stops and changes nothing. This is a switch without a value. |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan token emergency-revoke --reason "Reviewed change" "$ID" --yesverdictan token delete [OPTIONS] <ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
<ID> | Yes | Not set | Token ID to revoke |
--yes | No | false | Required confirmation. Without it, this command stops and changes nothing. This is a switch without a value. |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan token delete "$ID" --yesverdictan token rotate [OPTIONS] <ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
<ID> | Yes | Not set | Token ID to rotate |
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the replacement token and shows its value once. JSON contains the rotation response.
Example template:
verdictan token rotate "$ID"verdictan token validate [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--json | No | false | Print structured JSON. See Result for this command's output and success conditions. This is a switch without a value. |
--force-tty | No | false | Allow token input directly from the terminal as an alternative to a pipe This is a switch without a value. |
--config <CONFIG> | No | Not set | CLI connection file. Use VERDICTAN_CONFIG or the standard profile file when omitted. |
--api-url <API_URL> | No | Not set | Control-plane API base URL. Overrides the environment, connection file, and stored session URL. |
--profile <PROFILE> | No | default | Profile to read or write. Use the same profile for related commands. |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Read the raw token from standard input. Terminal input requires --force-tty. An invalid token result can still exit 0. Read valid.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text reports valid or invalid. JSON includes valid and the validation details.
Example template:
verdictan token validate --force-ttyNext steps
- Manage API tokens: create and give tokens for applications and IDEs.
- Usage and budgets: learn which budget control acts on which request path.
- verdictan auth: sign in, and run
verdictan token exchange-codefor an OAuth flow.