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.
Authorization
BearerAuth In: header
Query Parameters
First day, ISO 8601 (YYYY-MM-DD or a datetime)
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"
}The people behind the largest activity figures GET
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. Each list names at most three people, the largest figure first, and nobody whose figure is zero. behind_on_version and without_managed_settings count everyone they apply to among the people who reported usage in the range, and name three. The answer names people, so it is sent with Cache-Control: no-store.
Claude Enterprise at list price, against what it cost after discount GET
What each Claude product would have cost at Anthropic's list price, beside what it cost after discount, over the range. The amount after discount is the same whether Anthropic or a marketplace invoices it. Anthropic reports a list price for Claude Enterprise alone, so an organization on another plan is answered with zeros.