Skip to content

Account endpoints

Credits left, tier and scopes for the calling key. Free to call.

Endpoints

Paths are under https://threatcluster.io/api/public/v1. Cost is credits per call.

MethodPathCostScope
GET/meFreeany key

GET /me

Your plan, credits left and key

Free to call · any key

What this key can do and how much budget is left, in one call.

Costs nothing (weight 0), so an agent or a cron job can check before a batch instead of parsing headers off every response. Reads the same per-key bucket that every request is charged against, so used_today matches the X-RateLimit-Remaining header on your last call. Works with an API key or a bearer minted from one.

Request

curl -H "X-API-Key: $TC_KEY" \
  "https://threatcluster.io/api/public/v1/me"

Response fields

FieldTypeMeaning
tierstringPlan this key is on, e.g. free, starter, growth or business.
rate_limitstringPer-minute burst limit for this key, e.g. 120/minute
creditsobjectDaily credit budget and what is left of it.
credits.daily_limitinteger or nullCredits per UTC day on this plan: Free 100, Starter 1,000, Growth 5,000. Omitted on Business, whose budget is pooled across the organisation (10,000 a day plus 10,000 per managed customer, enforced); read that from X-RateLimit-Limit on any charged response.
credits.used_todayinteger or nullCredits charged to this key's bucket since 00:00 UTC; null = counter unavailable
credits.remaining_todayinteger or nulldaily_limit minus used_today, never below 0; null when either is null.
credits.resets_atstring or nullISO-8601 UTC, when the daily allowance refills
credits.pack_balanceintegerPrepaid credits, spent only after the daily allowance; never expire
keyobjectThe key or bearer that made this call.
key.sourcestringapi_key (X-API-Key) or bearer (tc login / agent token)
key.key_classstring or nulllive, test, agent, org
key.key_idstring or nullIdentifier of the key used (for a bearer, the key it was minted from), never the secret. Null when none is recorded.
key.scopesarrayScopes granted to this key or bearer, sorted, e.g. threats:read.
request_costsobjectCredits per request by endpoint family; everything else costs default
docsstringLink to the API documentation.

Errors

Errors are JSON with an error code and a message. A call refused for its key, scope or rate is not charged.

StatusWhen
400A parameter has the wrong form, for example invalid_since for a timestamp that is not ISO-8601.
401The key is missing, wrong or revoked.
403 insufficient_scopeThe key lacks the scope this endpoint needs. The body names required_scope and the scopes the key has.
403 lookback_exceededA free key asked for a record older than its 7-day window.
404Nothing with that id. The credits are refunded and X-Request-Cost is 0.
422The request body or a typed parameter failed validation; the body lists each field.
429Too many calls a minute, or daily_budget_exceeded. Wait for the Retry-After seconds; the daily allowance refills at 00:00 UTC.

Limits by plan

PlanCredits a dayCalls a minuteHistoryRows a list
Free10030Last 7 days10
Starter1,00012090 days50
Growth5,000240Full archive100
Business10,000, plus 10,000 per managed customer, pooled600Full archiveNo cap

Headers and credits are covered in conventions.

Standards and sources

FAQ

Does GET /me cost a credit?

No. Call it before a batch job to see credits used today, the daily limit, when it resets (00:00 UTC) and any prepaid pack balance.

What happens when I run out?

Calls return 429 daily_budget_exceeded with Retry-After until the allowance refills at 00:00 UTC. Prepaid credit packs are spent after the daily allowance and never expire.

Which scopes does my key have?

GET /me lists them. Your personal tc_live_ key always holds the scopes your current plan allows; agent keys hold the scopes chosen when they were made.