tdx workspaces#
Manage workspaces, their policy and spend.
List, create, edit, pause, resume, archive and restore workspaces; set their guardrail, rules and budgets; preview key mints; read key provenance, availability, spend reports and key templates. The gateway authorizes every route. Pausing, archiving and other changes that reduce access need --acknowledge with the digest of the gateway's review for the same credential; each such command's help shows how to obtain it with the api command. IdP group bindings are session-only and unavailable to this bearer-only CLI.
Every command also takes the global flags and reads the environment variables that the command reference lists once.
Commands#
| Command | Description | Type |
|---|---|---|
| tdx workspaces list | List workspaces. | Read |
| tdx workspaces create | Create a workspace. | Write |
| tdx workspaces show | Read a workspace. | Read |
| tdx workspaces edit | Rename or retag a workspace. | Write |
| tdx workspaces guardrail | Set a workspace's guardrail and budgets. | Group |
| tdx workspaces guardrail set | Replace a workspace's guardrail and budgets. | Write |
| tdx workspaces rules | Set a workspace's own rules. | Group |
| tdx workspaces rules set | Replace a workspace's rules. | Write |
| tdx workspaces pause | Pause a workspace. | Write |
| tdx workspaces resume | Resume a paused workspace. | Write |
| tdx workspaces archive | Archive an empty workspace. | Write |
| tdx workspaces restore | Restore an archived workspace. | Write |
| tdx workspaces idp-bindings | Identity-provider group bindings (dashboard only). | Group |
| tdx workspaces idp-bindings set | Replace a workspace's IdP group bindings (dashboard only). | Dashboard only |
| tdx workspaces key-preview | Preview the API key a mint would create here. | Read |
| tdx workspaces keys | Inspect a workspace's keys. | Group |
| tdx workspaces keys provenance | Show who authorized a key and under which rules. | Read |
| tdx workspaces availability | Show what a workspace's keys can call. | Read |
| tdx workspaces spend-report | Report spend for every workspace or one. | Read |
| tdx workspaces templates | List key templates. | Read |
tdx workspaces list#
List workspaces.
Reads
Read the workspaces the gateway lets this credential see (workspaces.read), with this month's spend where it may read it. Only --status is sent. See Workspace reads.
# GET /control/v1/workspaces
tdx workspaces list [flags]Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--status | string | Status filter the gateway accepts, such as active, paused, archived or all; omitted lists every workspace that is not archived. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspaces | public-workspace[] | Id, slug, name, purpose, tags, status, counts, model access summary and this month's spend summary. |
Examples
List every workspace, archived ones included:
tdx workspaces list --status all --jsontdx workspaces create#
Create a workspace.
Writes
Create a workspace (install-wide workspaces.manage). The gateway's reply also suggests a first inference-key mint call; that suggestion is withheld, so mint the first key with api-keys create --owner. See Workspace changes.
# POST /control/v1/workspaces
tdx workspaces create --name <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | Display name. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--slug | string | URL slug; omitted derives one from the name; slugs are never reused. | |
--purpose | string | Purpose the gateway accepts, such as project or team. | |
--tags | json | JSON array of tag strings. | |
--guardrail | json | Guardrail: JSON policy layer object (models, maxKeyLifetimeDays, keyRpmMax, keyBudgetMax), or null for none; the gateway validates it. | |
--rules | json | Workspace rules: JSON policy layer object (models, maxKeyLifetimeDays, keyRpmMax, keyBudgetMax), or null for none; the gateway validates it. | |
--budget | json | Workspace budget: JSON {"window", "limit"} with limit a USD decimal string, or null to remove it; the gateway validates it. | |
--key-budget-default | json | Per-key default budget for new keys: JSON {"window", "limit"}, or null to remove it; the gateway validates it. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspace | public-workspace | Id, slug, name, purpose, tags, status and its reason, counts, model access summary, guardrail, rules, budgets and, where the credential may see them, IdP bindings. |
preview | write-preview|null | Requested method, path and body, unchecked by the gateway; null after execution. |
Examples
Preview creating a workspace:
tdx workspaces create --name Research --purpose project --dry-run --jsontdx workspaces show#
Read a workspace.
Reads
Read one workspace with its guardrail, rules, budgets and this month's spend. See Workspace reads.
# GET /control/v1/workspaces/:workspaceId
tdx workspaces show --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspace | public-workspace | Workspace view with guardrail, rules, budgets, IdP bindings where visible and this month's spend summary. |
Examples
Read one workspace:
tdx workspaces show --id <workspace-id> --json=workspacetdx workspaces edit#
Rename or retag a workspace.
Writes
Change a workspace's name, purpose or tags (install-wide workspaces.manage); an archived workspace must be restored first. A workspace keeps the slug it was created with. See Workspace changes.
# PATCH /control/v1/workspaces/:workspaceId
tdx workspaces edit --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | Display name. | |
--purpose | string | Purpose the gateway accepts. | |
--tags | json | JSON array of tag strings, replacing the current tags; [] clears them. |
Constraints
--nameis required unless--purposeor--tags
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspace | public-workspace | Id, slug, name, purpose, tags, status and its reason, counts, model access summary, guardrail, rules, budgets and, where the credential may see them, IdP bindings. |
preview | write-preview|null | Requested method, path and body, unchecked by the gateway; null after execution. |
Examples
Rename a workspace:
tdx workspaces edit --id <workspace-id> --name Research --jsontdx workspaces guardrail#
Set a workspace's guardrail and budgets.
Replace a workspace's guardrail layer and its budgets. A change that reduces access needs --acknowledge with the digest of the gateway's review for the same credential; see guardrail set --help.
tdx workspaces guardrail set#
Replace a workspace's guardrail and budgets.
Writes
Replace the guardrail layer and set the workspace or per-key default budget (install-wide workspaces.manage); omitted parts stay unchanged. A guardrail may only tighten the organisation's policy. A change the gateway's review finds reduces access (such as a new or lower budget, a lower key limit or keys losing models) needs --acknowledge with the digest of the gateway's review of exactly this change, obtained with this same credential; without it the gateway refuses with REVIEW_REQUIRED, and with a digest that no longer matches with REVIEW_STALE (both exit 6); it applies nothing and this CLI shows no review. This command's --dry-run cannot show that review. To obtain the review and its digest, send the identical request with tdx api PUT '/control/v1/workspaces/<workspace-id>/guardrail?dryRun=true' --input <file> (the JSON body this command would send, without acknowledge, under wire names such as keyBudgetDefault and remediation {"clampExpiryDays": <days>}) --json, then rerun this command with the same options and --acknowledge <digest>. Any other body, or a gateway change in between, makes the digest stale. If the digest in the api output prints as █, make the change in the gateway dashboard (a digest read there usually does not match this CLI's credential). Write budget limits with a decimal point, such as 5.00: a --dry-run preview masks text matching a whole-number limit such as 5. See Workspace changes.
# PUT /control/v1/workspaces/:workspaceId/guardrail
tdx workspaces guardrail set --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--guardrail | json | Guardrail: JSON policy layer object (models, maxKeyLifetimeDays, keyRpmMax, keyBudgetMax), or null for none; the gateway validates it. | |
--budget | json | Workspace budget: JSON {"window", "limit"} with limit a USD decimal string, or null to remove it; the gateway validates it. | |
--key-budget-default | json | Per-key default budget for new keys: JSON {"window", "limit"}, or null to remove it; the gateway validates it. | |
--clamp-expiry-days | integer | Remediation: shorten the lifetimes of keys the change leaves outside the new limit to this many days; the gateway validates the value. | |
--acknowledge | string | Digest of the gateway's review of exactly this change, obtained with this same credential; the gateway validates it. |
Constraints
--guardrailis required unless--budgetor--key-budget-default
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspace | public-workspace | Id, slug, name, purpose, tags, status and its reason, counts, model access summary, guardrail, rules, budgets and, where the credential may see them, IdP bindings. |
review | public-review|null | Kind, target, revision, whether acknowledgement was required, digest and change counts of the gateway's review; null when the gateway made no reviewed change. |
preview | write-preview|null | Requested method, path and body, unchecked by the gateway; null after execution. |
Examples
Preview a workspace budget:
tdx workspaces guardrail set --id <workspace-id> --budget '{"window":"month","limit":"100.00"}' --dry-run --jsontdx workspaces rules#
Set a workspace's own rules.
Replace a workspace's own rules layer. A change that reduces access needs --acknowledge with the digest of the gateway's review for the same credential; see rules set --help.
tdx workspaces rules set#
Replace a workspace's rules.
Writes
Replace the workspace's own rules layer and per-key default budget (workspace_rules.manage in the workspace); omitted parts stay unchanged. Rules may only tighten the guardrail, and without install-wide workspaces.manage the per-key default may only be lowered. A change the gateway's review finds reduces access (such as a lower key limit or keys losing models) needs --acknowledge with the digest of the gateway's review of exactly this change, obtained with this same credential; without it the gateway refuses with REVIEW_REQUIRED, and with a digest that no longer matches with REVIEW_STALE (both exit 6); it applies nothing and this CLI shows no review. This command's --dry-run cannot show that review. To obtain the review and its digest, send the identical request with tdx api PUT '/control/v1/workspaces/<workspace-id>/rules?dryRun=true' --input <file> (the JSON body this command would send, without acknowledge, under wire names such as keyBudgetDefault and remediation {"clampExpiryDays": <days>}) --json, then rerun this command with the same options and --acknowledge <digest>. Any other body, or a gateway change in between, makes the digest stale. If the digest in the api output prints as █, make the change in the gateway dashboard (a digest read there usually does not match this CLI's credential). Write budget limits with a decimal point, such as 5.00: a --dry-run preview masks text matching a whole-number limit such as 5. See Workspace changes.
# PUT /control/v1/workspaces/:workspaceId/rules
tdx workspaces rules set --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--rules | json | Workspace rules: JSON policy layer object (models, maxKeyLifetimeDays, keyRpmMax, keyBudgetMax), or null for none; the gateway validates it. | |
--key-budget-default | json | Per-key default budget for new keys: JSON {"window", "limit"}, or null to remove it; the gateway validates it. | |
--clamp-expiry-days | integer | Remediation: shorten the lifetimes of keys the change leaves outside the new limit to this many days; the gateway validates the value. | |
--acknowledge | string | Digest of the gateway's review of exactly this change, obtained with this same credential; the gateway validates it. |
Constraints
--rulesis required unless--key-budget-default
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspace | public-workspace | Id, slug, name, purpose, tags, status and its reason, counts, model access summary, guardrail, rules, budgets and, where the credential may see them, IdP bindings. |
review | public-review|null | Kind, target, revision, whether acknowledgement was required, digest and change counts of the gateway's review; null when the gateway made no reviewed change. |
preview | write-preview|null | Requested method, path and body, unchecked by the gateway; null after execution. |
Examples
Preview workspace rules:
tdx workspaces rules set --id <workspace-id> --rules '{"maxKeyLifetimeDays":30}' --dry-run --jsontdx workspaces pause#
Pause a workspace.
Writes
Pause a workspace, suspending its API keys until it is resumed (install-wide workspaces.manage). Pausing an active workspace always needs --acknowledge with the digest of the gateway's review of exactly this change, obtained with this same credential; without it the gateway refuses with REVIEW_REQUIRED, and with a digest that no longer matches with REVIEW_STALE (both exit 6); it applies nothing and this CLI shows no review. This command's --dry-run cannot show that review. To obtain the review and its digest, send the identical request with tdx api POST '/control/v1/workspaces/<workspace-id>/pause?dryRun=true' [--field reason=<reason>] --json, then rerun this command with the same options and --acknowledge <digest>. Any other body, or a gateway change in between, makes the digest stale. If the digest in the api output prints as █, make the change in the gateway dashboard (a digest read there usually does not match this CLI's credential). The api command's --field sends a bare number, true, false or null as a typed value, so for such a reason use --input <file> with the JSON body {"reason": "<reason>"}. Pausing a paused workspace changes nothing and returns review null. See Workspace changes.
# POST /control/v1/workspaces/:workspaceId/pause
tdx workspaces pause --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--reason | string | Non-secret reason shown with the paused status. | |
--acknowledge | string | Digest of the gateway's review of exactly this change, obtained with this same credential; the gateway validates it. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspace | public-workspace | Id, slug, name, purpose, tags, status and its reason, counts, model access summary, guardrail, rules, budgets and, where the credential may see them, IdP bindings. |
review | public-review|null | Kind, target, revision, whether acknowledgement was required, digest and change counts of the gateway's review; null when the gateway made no reviewed change. |
preview | write-preview|null | Requested method, path and body, unchecked by the gateway; null after execution. |
Examples
Preview the pause request:
tdx workspaces pause --id <workspace-id> --dry-run --jsontdx workspaces resume#
Resume a paused workspace.
Writes
Resume a paused workspace (install-wide workspaces.manage); resuming an active one changes nothing. Resuming never reduces access, so it needs no --acknowledge; the route accepts one while the workspace is paused, and the gateway refuses a digest that does not match its review with REVIEW_STALE (exit 6). See Workspace changes.
# POST /control/v1/workspaces/:workspaceId/resume
tdx workspaces resume --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--acknowledge | string | Optional review digest; resuming never needs one, and the gateway refuses one that does not match its review. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspace | public-workspace | Id, slug, name, purpose, tags, status and its reason, counts, model access summary, guardrail, rules, budgets and, where the credential may see them, IdP bindings. |
preview | write-preview|null | Requested method, path and body, unchecked by the gateway; null after execution. |
Examples
Preview the resume request:
tdx workspaces resume --id <workspace-id> --dry-run --jsontdx workspaces archive#
Archive an empty workspace.
Writes
Archive a workspace that holds no API keys (install-wide workspaces.manage): its roles, IdP bindings, admin keys and pending invites are removed. Archiving an open workspace always needs --acknowledge with the digest of the gateway's review of exactly this change, obtained with this same credential; without it the gateway refuses with REVIEW_REQUIRED, and with a digest that no longer matches with REVIEW_STALE (both exit 6); it applies nothing and this CLI shows no review. This command's --dry-run cannot show that review. To obtain the review and its digest, send the identical request with tdx api POST '/control/v1/workspaces/<workspace-id>/archive?dryRun=true' --json, then rerun this command with the same options and --acknowledge <digest>. Any other body, or a gateway change in between, makes the digest stale. If the digest in the api output prints as █, make the change in the gateway dashboard (a digest read there usually does not match this CLI's credential). Archiving an archived workspace changes nothing and returns review null. The Default workspace is never archived. See Workspace changes.
# POST /control/v1/workspaces/:workspaceId/archive
tdx workspaces archive --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--acknowledge | string | Digest of the gateway's review of exactly this change, obtained with this same credential; the gateway validates it. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspace | public-workspace | Id, slug, name, purpose, tags, status and its reason, counts, model access summary, guardrail, rules, budgets and, where the credential may see them, IdP bindings. |
review | public-review|null | Kind, target, revision, whether acknowledgement was required, digest and change counts of the gateway's review; null when the gateway made no reviewed change. |
preview | write-preview|null | Requested method, path and body, unchecked by the gateway; null after execution. |
Examples
Preview the archive request:
tdx workspaces archive --id <workspace-id> --dry-run --jsontdx workspaces restore#
Restore an archived workspace.
Writes
Restore an archived workspace, empty, with no roles, bindings or pending invites (install-wide workspaces.manage); restoring an open one changes nothing. See Workspace changes.
# POST /control/v1/workspaces/:workspaceId/restore
tdx workspaces restore --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspace | public-workspace | Id, slug, name, purpose, tags, status and its reason, counts, model access summary, guardrail, rules, budgets and, where the credential may see them, IdP bindings. |
preview | write-preview|null | Requested method, path and body, unchecked by the gateway; null after execution. |
Examples
Preview the restore request:
tdx workspaces restore --id <workspace-id> --dry-run --jsontdx workspaces idp-bindings#
Identity-provider group bindings (dashboard only).
Binding identity-provider groups to workspace roles is session-only with step-up; this bearer-only CLI refuses it with SESSION_REQUIRED before any request or credential read, --dry-run included. Use the gateway dashboard.
tdx workspaces idp-bindings set#
Replace a workspace's IdP group bindings (dashboard only).
Dashboard only. The gateway serves this only to a signed-in dashboard session, so the CLI refuses it with SESSION_REQUIRED.
Unavailable to this bearer-only CLI: PUT /control/v1/workspaces/:workspaceId/idp-bindings is session-only: binding an identity-provider group hands a workspace role to everyone in it, so the gateway serves it only to an interactive dashboard sign-in holding idp_bindings.manage in the workspace, after a recent sign-in (step-up), never to a key. Use the gateway dashboard. --dry-run also refuses: there is no reachable change to preview. No request is sent and no credential, profile or file is read.
# PUT /control/v1/workspaces/:workspaceId/idp-bindings
tdx workspaces idp-bindings set --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
tdx workspaces key-preview#
Preview the API key a mint would create here.
Reads
Ask the gateway whether an inference-key mint here would be allowed, authorized as that mint (inference_keys.manage where the key would land), and what it would mint after policy adjustments. The gateway saves nothing, mints nothing and issues no credential. This is a read, not a dry-run: it sends the request, including with --dry-run, and any failure is reported as a failed read. A refusal by policy is a successful answer with allowed false and the refusal. With neither --owner nor a workspace-kind --template-id the gateway previews a personal key, which only a person holds: a person's session or their own admin key can preview one, but the master key or a service or unowned admin key needs --owner workspace or a workspace-kind --template-id. See Workspace reads.
# POST /control/v1/workspaces/:workspaceId/key-preview
tdx workspaces key-preview --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--template-id | string | Key template id or slug from workspaces templates. | |
--owner | string | Owner kind the gateway accepts, such as personal or workspace; personal needs a signed-in person. | |
--allowed-model | string | Model id from tdx models list; repeat for several; omitted allows every model the workspace allows. Repeatable. | |
--expires-in | string | Lifetime the gateway accepts, such as 30d or never; omitted uses the template's. | |
--rpm | integer | Requests per minute; the gateway validates it. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
allowed | boolean | Whether the mint would be allowed. |
refusal | public-refusal|null | Gateway refusal code, message and parameter when not allowed. |
template | public-template|null | Template the preview applied. |
draft | public-key-draft|null | Owner, allowed models, expiry, rpm and template id the mint would use. |
adjustments | public-adjustment[] | Field, before, after and reason for each policy adjustment. |
holderAccessEndsAt | string|null | When a personal key holder's access ends. |
Examples
Check a workspace key mint:
tdx workspaces key-preview --id <workspace-id> --owner workspace --template-id <template-id> --jsontdx workspaces keys#
Inspect a workspace's keys.
Read the provenance of a key in a workspace.
tdx workspaces keys provenance#
Show who authorized a key and under which rules.
Reads
Read who minted a key in this workspace, its template and the rule revisions it was minted under, and whether the policy changed since. The gateway shows only a key this credential may read. The key id itself is withheld from output. See Workspace reads.
# GET /control/v1/workspaces/:workspaceId/keys/:keyId/provenance
tdx workspaces keys provenance --id <string> --key-id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. | |
--key-id | string | Public key id; never a credential. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
provenance | public-provenance | Name, creation, creator, authority, template, rule revisions and whether policy changed since. |
Examples
Read a key's provenance:
tdx workspaces keys provenance --id <workspace-id> --key-id <key-id> --jsontdx workspaces availability#
Show what a workspace's keys can call.
Reads
Read every model the gateway serves with whether this workspace's keys can call it and why not, prices of callable models where the gateway has them, and each provider's status there. See Workspace reads.
# GET /control/v1/workspaces/:workspaceId/availability
tdx workspaces availability --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id from workspaces list; never a credential. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
workspaceId | string | Workspace id. |
workspaceStatus | string | Workspace status. |
modelAccess | public-model-access | Mode, listed models and the layer that set them. |
models | public-model-availability[] | Each model's kind, providers, status, restriction, providers off and prices. |
providers | public-provider-availability[] | Each provider's status and model counts. |
Examples
List what a workspace can call:
tdx workspaces availability --id <workspace-id> --json=modelstdx workspaces spend-report#
Report spend for every workspace or one.
Reads
Read one month's spend report (spend.read): without --id, GET /control/v1/workspaces/spend-report across the workspaces this credential may read (grouped by workspace by default); with --id, that workspace's report (grouped by key by default; a developer sees only their own keys). JSON only: the gateway's CSV download (format=csv) is not supported, because this CLI reads JSON replies only. Rows withhold the reply's keyId and keyName fields; for key groupings the row's group and name are the key's id and name. A key row's keyKind prints the kind the gateway reports, a workspace (service) key's included. See Workspace reads.
# GET /control/v1/workspaces/spend-report
# GET /control/v1/workspaces/:workspaceId/spend-report
tdx workspaces spend-report [flags]Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public workspace id; omitted reports every workspace the credential may read. | |
--period | string | Month as YYYY-MM; omitted is the current month; the gateway validates the range. | |
--group-by | string | Grouping the gateway accepts, such as workspace, key, person or model; workspace is not accepted with --id. | |
--key-id | string | Public key id; the gateway accepts it only with --group-by model. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
period | string | Reported month. |
periodStart | string | Month start. |
periodEnd | string | Month end. |
current | boolean | Whether the month is still running. |
groupBy | string | Grouping used. |
modelIds | string|null | Which model ids rows name, when grouped by model. |
days | string[] | UTC days covered. |
compare | public-compare|null | Comparison month and whether it is like for like. |
rows | public-spend-row[] | One row per group with calls, token counts, cost, previous cost and daily cost. |
total | public-spend-row | Total row. |
projectedCostUsd | string|null | Projected month cost. |
coverage | public-coverage | Calls, priced, unpriced and estimated calls. |
Examples
Report one workspace's spend by model:
tdx workspaces spend-report --id <workspace-id> --group-by model --json=rows,totaltdx workspaces templates#
List key templates.
Reads
Read the key templates the gateway offers, with how many unrevoked keys this credential may see use each. See Workspace reads.
# GET /control/v1/templates
tdx workspaces templates [flags]Output fields (inside data)
| Field | Type | Description |
|---|---|---|
templates | public-template[] | Id, slug, name, description, kind, lifetime, budget, rpm and use count. |
Examples
List key templates:
tdx workspaces templates --json