accounts

Credits, spend, what in-flight runs hold, and the last 30 days

credits (the balance now), spent_total (charged by finished runs), reserved_now (held by runs still in flight), runs_total, last_30_days (one entry per UTC day, oldest first) and recent (the 20 newest runs). credits + spent_total + reserved_now is everything the account was given. Needs read. Free. MCP: usage.

get/v1/usage

Request

  • Base URL: https://api.hookdetector.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.hookdetector.com/v1/usage
  • Auth: none declared

Headers

authorizationstring nullable

Bearer hd_... from POST /v1/accounts or POST /v1/keys

Response

Successful Response

creditsinteger required
spent_totalinteger required
reserved_nowinteger required
runs_totalinteger required

Example response

{
  "credits": 437,
  "last_30_days": [
    {
      "charged": 63,
      "date": "2026-09-23",
      "runs": 1
    }
  ],
  "recent": [],
  "reserved_now": 0,
  "runs_total": 1,
  "spent_total": 63
}

Changes

No recorded changes to this operation across all 1 revision of this API.