Core Clients

Switch between Python and TypeScript code examples using the language tabs.
The Zaby instance provides several utility clients for health checks, runtime token management, approvals, and usage tracking.

Health

Check if the server is reachable. No authentication required.
Response:

Runtime Token Families

Token families group related runtime tokens for bulk management.

List

Response:

Revoke

Revoke an entire token family — invalidating all tokens within it:
Revoking a token family invalidates ALL tokens in that family immediately. Existing runtime sessions will be interrupted.

Runtime Token Policies

Policies control runtime token quotas — concurrent runs, TTL, max uses per token, and auto-rotation. Required for runtime tokens: A quota policy must exist and its id passed as quotaPolicyId when creating runtime tokens.

List

Create

Get

Update

Runtime Token Grants

Revoke

Runtime Token Usage

Query token consumption stats:

Approvals

Review and respond to agent-generated approval requests.

Usage & Billing

Query agent-level usage metrics for billing and analytics: