moth docs
Reference Activity

Activity

Lists the account's latest 200 settled calls, newest first, with what each one cost.

GEThttps://api.runmoth.si/v1/activity

kind is chat, image, video or music. Media calls list outputs instead of tokens, which counts what was billed, so it is the images delivered, the seconds of a clip, or 1 for a song job. Calls made from the apps have no key. An entry's id names its record and is not the call's moth-request-id.

Errors

401authentication_errorThe key is missing, revoked or expired
429rate_limit_errorToo many reads from the key, so wait for retry-after
curl https://api.runmoth.si/v1/activity \
  -H "Authorization: Bearer $MOTH_API_KEY"
Response
{
  "data": [
    {
      "id": "req_0002k1",
      "created_at": "2026-10-30T09:14:02Z",
      "model": "gemini-3.8-flash",
      "kind": "chat",
      "key_id": "key_0b6f3c1e-8d2a-4f7e-9a51-2c4d6e8f0a1b",
      "key_name": "Server",
      "input_tokens": 290,
      "output_tokens": 180,
      "charged_usd": "0.000447",
      "latency_ms": 1240,
      "status": 200
    }
  ]
}