Reference

What Claude Code was used for, by kind of activity

Activity is what Claude Code and Cowork reported about themselves, kept as daily totals: names, counts and durations, never the text of a prompt, a response or a command. sections has one entry per kind of activity over the range, with its largest rows. response_times estimates, per model, how long a request took and how long its first token took: the times are kept in buckets, so each figure can be off by the width of one. people says how many people each kind of activity reached, and names nobody.

GET
/api/v1/providers/anthropic/activity

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

start*Start

First day, ISO 8601 (YYYY-MM-DD or a datetime)

end*End

Last day, ISO 8601 (YYYY-MM-DD or a datetime), included

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/providers/anthropic/activity?start=string&end=string"
{
  "success": true,
  "data": {
    "sections": [
      {
        "events": 0,
        "amount": 0,
        "measure": "string",
        "items": [
          {
            "events": 0,
            "amount": 0,
            "key": "string",
            "detail": "string"
          }
        ],
        "more": {
          "events": 0,
          "amount": 0
        }
      }
    ],
    "response_times": [
      {
        "model": "string",
        "requests": 0,
        "first_token_p50_ms": 0,
        "first_token_p90_ms": 0,
        "total_p50_ms": 0,
        "total_p90_ms": 0
      }
    ],
    "people": {
      "sessions": 0,
      "active_time": 0,
      "prompts": 0,
      "api_errors": 0,
      "lines": 0,
      "git_output": 0
    }
  },
  "timestamp": "string"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": {
    "code": "string",
    "message": "string",
    "details": null
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
Ask the FinOps Agent about your cloud spend