Reference

Claude Code activity per day

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. A series per key of the measures the board charts (session, active_time, prompt, permission_mode, api_error, lines, git_output). Every day of the range has a value, zero on a day nothing was reported.

GET
/api/v1/providers/anthropic/activity/daily

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/daily?start=string&end=string"
{
  "success": true,
  "data": {
    "days": [
      "2019-08-24"
    ],
    "series": [
      {
        "measure": "string",
        "key": "string",
        "events": [
          0
        ],
        "amount": [
          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