Skip to content

View API usage

GET /v1/usage

https://api.voygr.tech/v1/usage

Open in playground

Overview

Get current usage, quota, and reset date for the API key.

Authentication

  • API key in header X-API-Key: Your customer API key (pk_live_...), sent on every request. Self-serve at https://api.voygr.tech/checkout.

Responses

200

Successful Response

application/json

Schema: UsageResponse

401

Missing or invalid X-API-Key.

application/json

X-API-Key header absent

{
  "detail": {
    "error": "API key required"
  }
}

X-API-Key doesn't resolve to an active key

{
  "detail": {
    "error": "invalid API key"
  }
}

403

The key is expired, or its tier is not permitted to use the API.

application/json

expired

{
  "detail": {
    "error": "API key expired on 2026-01-01"
  }
}

429

Rate limit exceeded; wait and follow Retry-After when returned. Free keys are limited to 10 requests per second and 120 requests per minute, and can place 1 call at a time, up to 25 calls per day. Paid keys are limited to 10 requests per second and 120 requests per minute. A top-up raises a key's daily cap to 5,000 calls and its concurrent-call ceiling to 10. Enterprise limits are set per contract.

application/json

ratelimited

{
  "detail": {
    "error": "rate limit exceeded"
  }
}

Schemas

UsageResponse

Type: object

Response model for usage endpoint.

FieldTypeRequiredDescription and constraints
tierstringrequiredAccount plan identifier associated with the API key.
api_key_idstringrequiredAPI key ID
customer_idstringrequiredThe account this key belongs to. Stable across key rotation; key per-customer client state on this, not on api_key_id.
key_hintstring | nulloptionalLast 4 characters of the key's plaintext, so the holder can recognize it. null on keys minted before this was recorded.
key_created_atstring | nulloptionalWhen this key was minted (ISO 8601). null if unknown.
customer_namestringrequiredCustomer name
quota_limitintegerrequiredCredit allowance for the current period, not a number of requests.
current_usageintegerrequiredCredits charged plus credits reserved by requests still in progress. Unused reservations are released on settlement.
remainingintegerrequiredCredits available to spend, after charges and current holds. Same value as available.
availableinteger | nulloptionalCredits you can spend now; the same value as remaining. Already net of credits frozen by in-flight reservations.
owedinteger | nulloptionalCredits owed after a refunded or disputed top-up took back credits that were already spent. The next top-up covers this first, so it adds this much less to available. 0 for an account in credit.
call_credit_holdinteger | nulloptionalCredits one outbound call freezes at dial time (a refundable hold, not a charge). available // call_credit_hold is the credit-limited bound on calls in flight. Entitlement and the per-customer concurrency cap apply separately, so that many calls are not guaranteed to start.
max_placesinteger | nulloptionalTotal places search and import may deliver to this key (self-serve trial cap). Null when the key is uncapped.
places_usedinteger | nulloptionalPlaces delivered so far, plus those reserved by in-flight requests, against max_places. Null when uncapped.
contact_emailstring | nulloptionalThe address a support or sales reply would be sent to: the email on this key. Empty string when the key carries none. Null from a backend that predates the field.
credits_per_fieldinteger | nulloptionalCredits one (place × field) fill costs in deep research.
credits_per_placeinteger | nulloptionalCredits one found/imported place costs (places search + import).
enrichmentobject | nulloptionalPer-lane pricing for POST /v1/enrich: lanes (standard and deep_research, each with credits and unit), mixed, and the deprecated aliases that resolve to the same handler.
open_invoicesarray of object | nulloptionalOpen (unpaid) invoices raised for this key, newest first.
percentage_usednumberrequiredPercentage of quota used
reset_datestringrequiredWhen a periodic quota resets. Informational only on a lifetime key.
periodstringrequiredQuota period. lifetime for self-serve keys: their credits never expire.
statusstringrequiredAPI key status (active, revoked, suspended)
validation_timestampstring | nulloptionalUTC timestamp when usage response was produced (ISO 8601).
mcp_confirm_limitintegeroptionalCredits above which the Places MCP connector asks before running a request.
mcp_daily_credit_capintegeroptionalThe most an AI assistant may spend from this account per UTC day: the account's own cap, else the default.
mcp_daily_credit_cap_defaultintegeroptionalThe default daily cap, so a client can offer a reset to it.
mcp_spent_todayintegeroptionalCredits counted against today's MCP cap, in UTC. A hold counts in full even when the final charge is lower; a request that never ran gives its count back.

Example 1

{
  "api_key_id": "f4d0a2c2-f73f-4de6-ac3e-f42ce35af4d6",
  "customer_id": "cus_0001example",
  "customer_name": "Acme Inc",
  "quota_limit": 10000,
  "current_usage": 2375,
  "remaining": 7625,
  "percentage_used": 23.75,
  "reset_date": "2026-03-31",
  "period": "monthly",
  "status": "active",
  "tier": "<account-plan>"
}

Example 2

{
  "api_key_id": "eaa59659-7fab-4d1f-a80d-4f1e0f9388e4",
  "customer_id": "cus_0002example",
  "customer_name": "Beta Foods",
  "quota_limit": 5000,
  "current_usage": 5000,
  "remaining": 0,
  "percentage_used": 100.0,
  "reset_date": "2026-03-01",
  "period": "monthly",
  "status": "active",
  "tier": "<account-plan>"
}