← API reference

Usage API

Usage, quotas, and billing-period metrics.

GET /usage

Current billing-period usage

Auth: API key (Authorization: Bearer). Scope: usage:read.

Requires one of the following scopes: usage:read.

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.billing_periodobject

Omitted unless the caller may see billing. Billing is for organization owners and admins: an API key sees it only while the user who created it is an owner or admin of the key's organization (a platform super-admin creator counts as an owner), checked on every request.

data.billing_period.startstring
data.billing_period.endstring
data.billing_period.days_remaininginteger
data.usageobject
data.usage.total_callsinteger
data.usage.total_minutesnumber
data.usage.inbound_callsinteger
data.usage.outbound_callsinteger
data.usage.llm_callsinteger
data.usage.nlu_callsinteger
data.usage.input_tokensinteger
data.usage.output_tokensinteger
data.usage.tokens_by_sourceobject

Accepts any keys

data.usage.estimated_cost_usdnumber

Omitted unless the caller may see billing. Billing is for organization owners and admins: an API key sees it only while the user who created it is an owner or admin of the key's organization (a platform super-admin creator counts as an owner), checked on every request.

data.usage.active_agentsinteger
data.usage.knowledge_basesinteger
data.usage.concurrent_callsinteger | null

Calls in progress right now; null when the count could not be read.

data.limitsobject
data.limits.max_monthly_minutesinteger
data.limits.max_agentsinteger
data.limits.max_knowledge_basesinteger
data.limits.max_usersinteger
data.percentagesobject

Accepts any keys; each value is number

data.planobject
data.plan.typestring
data.plan.statusstring
data.alertsarray of object

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

GET /usage/agents

Per-agent usage metrics

Auth: API key (Authorization: Bearer). Scope: usage:read.

Requires one of the following scopes: usage:read.

Parameters

NameInTypeDescription
start_datequerystring (date)

YYYY-MM-DD (default 30 days ago).

end_datequerystring (date)

YYYY-MM-DD (default today).

agent_idqueryinteger

Responses

200 Success

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.periodobject
data.period.startstring
data.period.endstring
data.agentsarray of object
data.summaryobject
data.summary.total_agentsinteger
data.summary.total_callsinteger
data.summary.total_minutesnumber
data.summary.avg_success_ratenumber

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

404 Resource not found (also returned for cross-tenant ids to avoid existence leaks).

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

GET /usage/history

Historical usage

Auth: API key (Authorization: Bearer). Scope: usage:read.

Requires one of the following scopes: usage:read. Date range capped at 365 days.

Parameters

NameInTypeDescription
start_datequerystring (date)

YYYY-MM-DD (default 30 days ago).

end_datequerystring (date)

YYYY-MM-DD (default today).

group_byquerystring

One of: day, week, month · Default day

Responses

200 Success. estimated_cost_usd is billing: it is left out of every history row and of totals unless the caller is an organization owner or admin, or uses an API key whose creator is currently one.

Headers: X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-API-Key-Expires-At, X-API-Key-Expires-In-Days

Response fields
FieldTypeDescription
successboolean required

Always true

dataobject required
data.periodobject
data.period.startstring
data.period.endstring
data.period.group_bystring
data.historyarray of object
data.totalsobject

Accepts any keys

400 Invalid request (validation errors under error.details.validation_errors).

401 Missing or invalid API key.

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

403 Authenticated but not permitted (insufficient scope uses the auth envelope with code INSUFFICIENT_SCOPE; policy/plan denials use the router envelope).

Headers: X-Request-ID

Response fields

Shape 1 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.codestring required

e.g. MISSING_AUTH, INVALID_API_KEY, INSUFFICIENT_SCOPE, RATE_LIMIT_EXCEEDED.

error.messagestring required
error.retry_afterinteger

Seconds; present on 429 only.

Shape 2 of 2

FieldTypeDescription
successboolean required

Always false

errorobject required
error.messagestring required
error.codestring required

Machine-readable error code, e.g. bad_request, not_found.

error.detailsobject | null

Optional; validation failures put field errors under details.validation_errors.

Accepts any keys

429 Rate limit exceeded.

Headers: Retry-After, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Request-ID

Ready to build on Vosy?

API access is included with the Business and Enterprise plans. Sign up, choose a plan with API access, and create your own keys from the Vosy API page in your account. Compare plans

Get Started