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.
| Method | Path | Cost | Scope |
|---|---|---|---|
| GET | /me | Free | any 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
| Field | Type | Meaning |
|---|---|---|
| tier | string | Plan this key is on, e.g. free, starter, growth or business. |
| rate_limit | string | Per-minute burst limit for this key, e.g. 120/minute |
| credits | object | Daily credit budget and what is left of it. |
| credits.daily_limit | integer or null | Credits 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_today | integer or null | Credits charged to this key's bucket since 00:00 UTC; null = counter unavailable |
| credits.remaining_today | integer or null | daily_limit minus used_today, never below 0; null when either is null. |
| credits.resets_at | string or null | ISO-8601 UTC, when the daily allowance refills |
| credits.pack_balance | integer | Prepaid credits, spent only after the daily allowance; never expire |
| key | object | The key or bearer that made this call. |
| key.source | string | api_key (X-API-Key) or bearer (tc login / agent token) |
| key.key_class | string or null | live, test, agent, org |
| key.key_id | string or null | Identifier of the key used (for a bearer, the key it was minted from), never the secret. Null when none is recorded. |
| key.scopes | array | Scopes granted to this key or bearer, sorted, e.g. threats:read. |
| request_costs | object | Credits per request by endpoint family; everything else costs default |
| docs | string | Link 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.
| Status | When |
|---|---|
| 400 | A parameter has the wrong form, for example invalid_since for a timestamp that is not ISO-8601. |
| 401 | The key is missing, wrong or revoked. |
| 403 insufficient_scope | The key lacks the scope this endpoint needs. The body names required_scope and the scopes the key has. |
| 403 lookback_exceeded | A free key asked for a record older than its 7-day window. |
| 404 | Nothing with that id. The credits are refunded and X-Request-Cost is 0. |
| 422 | The request body or a typed parameter failed validation; the body lists each field. |
| 429 | Too 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
| Plan | Credits a day | Calls a minute | History | Rows a list |
|---|---|---|---|---|
| Free | 100 | 30 | Last 7 days | 10 |
| Starter | 1,000 | 120 | 90 days | 50 |
| Growth | 5,000 | 240 | Full archive | 100 |
| Business | 10,000, plus 10,000 per managed customer, pooled | 600 | Full archive | No 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.