Key info

GET /api/v1/key

The calling key's name, what it has spent in dollars (in all, today, this week and this month, in UTC), its spending limit and what is left of it, its permissions, expiry and rate limit.

curl https://functionvoice.ai/api/v1/key \
  -H "Authorization: Bearer $FUNCTION_API_KEY"
Response
{
  "data": {
    "label": "Production",
    "usage": 4.21,
    "usage_daily": 0.12,
    "usage_weekly": 0.95,
    "usage_monthly": 4.21,
    "limit": 25,
    "limit_remaining": 20.79,
    "limit_reset": "monthly",
    "expires_at": null,
    "permissions": [
      "dictate",
      "transcribe"
    ],
    "is_free_tier": false,
    "is_management_key": false,
    "rate_limit": {
      "requests": 120,
      "interval": "1m"
    }
  }
}
FieldTypeDescription
dataobject
data.labelstringThe key's name.
data.usagenumberDollars spent, in all.
data.usage_dailynumberDollars spent today (UTC).
data.usage_weeklynumberDollars spent this week (UTC, from Monday).
data.usage_monthlynumberDollars spent this month (UTC).
data.limitnumber or nullThe spending limit in dollars, or null for none.
data.limit_remainingnumber or nullWhat is left of it.
data.limit_resetstring or nullWhen the limit starts over. Null for a lifetime limit, or none.
data.expires_atstring or nullWhen the key stops working, or null.
data.permissionsarray of stringsThe models it may use.
data.is_free_tierbooleanAlways false.
data.is_management_keybooleanAlways false.
data.rate_limitobject{"requests": 120, "interval": "1m"}.

View as Markdown