Skip to content

Documentation

Current period usage

GET/v1/usageAccount

Balance and usage for the current UTC month, the calling key's own request count, and how many links the account holds and made today. Free to call.

Example request

Terminal
curl "https://snip.link/v1/usage" \
  -H "Authorization: Bearer $SNIP_KEY"

Example response

Response
{
  "period": {
    "start": "2026-10-01T00:00:00.000Z",
    "end": "2026-11-01T00:00:00.000Z"
  },
  "plan": "pro",
  "balance": 9412,
  "granted_this_period": 10000,
  "usage": {
    "requests": 2140,
    "credits": 588,
    "cache_hits": 0,
    "errors": 3
  },
  "key": {
    "id": "b0a1c2d3-1111-4222-8333-444455556666",
    "name": "production",
    "requests": 1502,
    "rps": 10
  },
  "links": {
    "total": 312,
    "max": 5000,
    "created_today": 4,
    "per_day": 2000
  }
}

Response fields

FieldTypeDescription
periodobject
period.startstringISO 8601 start of the current UTC month.
period.endstringISO 8601 start of the next UTC month.
planstring
balanceintegerCredits available right now, across all keys.
granted_this_periodinteger
usageobject
usage.requestsintegerEvery API and MCP request this period, the free link routes included.
usage.creditsinteger
usage.cache_hitsinteger
usage.errorsinteger
keyobject
key.idstring
key.namestring
key.requestsintegerRequests this period on the calling key.
key.rpsinteger
linksobject
links.totalintegerLinks in the account, disabled ones included.
links.maxintegerThe plan's link allowance.
links.created_todayintegerLinks made today (UTC) across the website, the API and MCP.
links.per_dayintegerThe plan's links per UTC day.

Errors

StatusMeaning
401The API key is missing, malformed or revoked.
429Either the key exceeded its requests-per-second limit (honor Retry-After), or a daily or plan quota is used up (details.reason).

Back to getting started