Hanzo
OpenapiAi

Imports the caller org's usage for a connected third-party account.

Imports the caller org's usage for a connected third-party account.

GET /v1/ai/connections/{provider}/usage

Addresshttps://api.hanzo.ai/v1/ai/connections/{provider}/usage
MethodGET
Operationget_ai_connections_by_provider_usage
AuthAuthorization: Bearer $HANZO_API_KEY

Imports the caller org's usage for a connected third-party account. The org is resolved from the VERIFIED principal (requireConnectionOrg), so a tenant reads only its own connection. The key is unsealed SERVER-SIDE and never returned. An unconnected account, a missing importer, or a scope-denied provider all return a 200 ProviderUsage with connected/available flags + a human note — the UI's honest-empty states — never a fabricated figure.

Request

1 field.

FieldInTypeRequiredDescription
providerpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo ai connections usage <provider>

AI API · All Hanzo APIs · Interactive reference

How is this guide?

On this page