{
  "info": {
    "_postman_id": "b22024e3-2fa8-4b0c-a8aa-e895c9a6c121",
    "name": "Anthropic Claude Code Analytics API",
    "description": "Programmatically access your organization's Claude Code usage analytics and productivity metrics. Track sessions, lines of code, commits, pull requests, and tool usage with daily aggregated user-level data and model breakdowns. Requires an Admin API key (sk-ant-admin...).\n\n\nContact Support:\n Name: Anthropic Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-06-05T15:05:36.000Z",
    "updatedAt": "2026-06-05T15:05:36.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-b22024e3-2fa8-4b0c-a8aa-e895c9a6c121"
  },
  "item": [
    {
      "name": "v1",
      "item": [
        {
          "name": "organizations",
          "item": [
            {
              "name": "usage_report",
              "item": [
                {
                  "name": "claude_code",
                  "item": [
                    {
                      "name": "Anthropic Get Claude Code Usage Report",
                      "id": "77215c91-2253-4991-b7b9-699aa14928e6",
                      "protocolProfileBehavior": {
                        "disableBodyPruning": true
                      },
                      "request": {
                        "method": "GET",
                        "header": [
                          {
                            "description": "(Required) ",
                            "key": "anthropic-version",
                            "value": "2023-06-01"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v1/organizations/usage_report/claude_code?starting_at=<dateTime>&ending_at=<dateTime>&limit=20&page=<string>",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v1",
                            "organizations",
                            "usage_report",
                            "claude_code"
                          ],
                          "query": [
                            {
                              "description": "(Required) RFC3339 inclusive lower bound (UTC date) for the report window.",
                              "key": "starting_at",
                              "value": "<dateTime>"
                            },
                            {
                              "description": "RFC3339 exclusive upper bound (UTC date) for the report window.",
                              "key": "ending_at",
                              "value": "<dateTime>"
                            },
                            {
                              "key": "limit",
                              "value": "20"
                            },
                            {
                              "key": "page",
                              "value": "<string>"
                            }
                          ]
                        },
                        "description": "Daily aggregated user-level Claude Code usage including session counts, lines of code added/removed, commits, pull requests created, tool actions, and estimated costs by model.\n"
                      },
                      "response": [
                        {
                          "id": "bd591101-003f-4165-9cb2-bfaf4e425eda",
                          "name": "Claude Code analytics report.",
                          "originalRequest": {
                            "method": "GET",
                            "header": [
                              {
                                "description": "(Required) ",
                                "key": "anthropic-version",
                                "value": "2023-06-01"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: apikey",
                                "key": "x-api-key",
                                "value": "<API Key>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/v1/organizations/usage_report/claude_code?starting_at=<dateTime>&ending_at=<dateTime>&limit=20&page=<string>",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                "organizations",
                                "usage_report",
                                "claude_code"
                              ],
                              "query": [
                                {
                                  "description": "(Required) RFC3339 inclusive lower bound (UTC date) for the report window.",
                                  "key": "starting_at",
                                  "value": "<dateTime>"
                                },
                                {
                                  "description": "RFC3339 exclusive upper bound (UTC date) for the report window.",
                                  "key": "ending_at",
                                  "value": "<dateTime>"
                                },
                                {
                                  "key": "limit",
                                  "value": "20"
                                },
                                {
                                  "key": "page",
                                  "value": "<string>"
                                }
                              ]
                            }
                          },
                          "status": "OK",
                          "code": 200,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"data\": [\n    {\n      \"date\": \"<date>\",\n      \"actor\": {\n        \"type\": \"<string>\",\n        \"email_address\": \"<string>\",\n        \"user_id\": \"<string>\"\n      },\n      \"organization_id\": \"<string>\",\n      \"terminal_type\": \"<string>\",\n      \"core_metrics\": {\n        \"num_sessions\": \"<integer>\",\n        \"lines_of_code\": {\n          \"added\": \"<integer>\",\n          \"removed\": \"<integer>\"\n        },\n        \"commits_by_claude_code\": \"<integer>\",\n        \"pull_requests_by_claude_code\": \"<integer>\"\n      },\n      \"tool_actions\": {\n        \"edit_tool\": {\n          \"accepted\": \"<integer>\",\n          \"rejected\": \"<integer>\"\n        },\n        \"multi_edit_tool\": {\n          \"accepted\": \"<integer>\",\n          \"rejected\": \"<integer>\"\n        },\n        \"write_tool\": {\n          \"accepted\": \"<integer>\",\n          \"rejected\": \"<integer>\"\n        },\n        \"notebook_edit_tool\": {\n          \"accepted\": \"<integer>\",\n          \"rejected\": \"<integer>\"\n        }\n      },\n      \"model_breakdown\": [\n        {\n          \"model\": \"<string>\",\n          \"tokens\": {\n            \"input\": \"<integer>\",\n            \"output\": \"<integer>\",\n            \"cache_read\": \"<integer>\",\n            \"cache_creation\": {\n              \"ephemeral_5m_input_tokens\": \"<integer>\",\n              \"ephemeral_1h_input_tokens\": \"<integer>\"\n            }\n          },\n          \"estimated_cost\": {\n            \"currency\": \"USD\",\n            \"amount\": \"<string>\"\n          }\n        },\n        {\n          \"model\": \"<string>\",\n          \"tokens\": {\n            \"input\": \"<integer>\",\n            \"output\": \"<integer>\",\n            \"cache_read\": \"<integer>\",\n            \"cache_creation\": {\n              \"ephemeral_5m_input_tokens\": \"<integer>\",\n              \"ephemeral_1h_input_tokens\": \"<integer>\"\n            }\n          },\n          \"estimated_cost\": {\n            \"currency\": \"USD\",\n            \"amount\": \"<string>\"\n          }\n        }\n      ]\n    },\n    {\n      \"date\": \"<date>\",\n      \"actor\": {\n        \"type\": \"<string>\",\n        \"email_address\": \"<string>\",\n        \"user_id\": \"<string>\"\n      },\n      \"organization_id\": \"<string>\",\n      \"terminal_type\": \"<string>\",\n      \"core_metrics\": {\n        \"num_sessions\": \"<integer>\",\n        \"lines_of_code\": {\n          \"added\": \"<integer>\",\n          \"removed\": \"<integer>\"\n        },\n        \"commits_by_claude_code\": \"<integer>\",\n        \"pull_requests_by_claude_code\": \"<integer>\"\n      },\n      \"tool_actions\": {\n        \"edit_tool\": {\n          \"accepted\": \"<integer>\",\n          \"rejected\": \"<integer>\"\n        },\n        \"multi_edit_tool\": {\n          \"accepted\": \"<integer>\",\n          \"rejected\": \"<integer>\"\n        },\n        \"write_tool\": {\n          \"accepted\": \"<integer>\",\n          \"rejected\": \"<integer>\"\n        },\n        \"notebook_edit_tool\": {\n          \"accepted\": \"<integer>\",\n          \"rejected\": \"<integer>\"\n        }\n      },\n      \"model_breakdown\": [\n        {\n          \"model\": \"<string>\",\n          \"tokens\": {\n            \"input\": \"<integer>\",\n            \"output\": \"<integer>\",\n            \"cache_read\": \"<integer>\",\n            \"cache_creation\": {\n              \"ephemeral_5m_input_tokens\": \"<integer>\",\n              \"ephemeral_1h_input_tokens\": \"<integer>\"\n            }\n          },\n          \"estimated_cost\": {\n            \"currency\": \"USD\",\n            \"amount\": \"<string>\"\n          }\n        },\n        {\n          \"model\": \"<string>\",\n          \"tokens\": {\n            \"input\": \"<integer>\",\n            \"output\": \"<integer>\",\n            \"cache_read\": \"<integer>\",\n            \"cache_creation\": {\n              \"ephemeral_5m_input_tokens\": \"<integer>\",\n              \"ephemeral_1h_input_tokens\": \"<integer>\"\n            }\n          },\n          \"estimated_cost\": {\n            \"currency\": \"USD\",\n            \"amount\": \"<string>\"\n          }\n        }\n      ]\n    }\n  ],\n  \"has_more\": \"<boolean>\",\n  \"next_page\": \"<string>\"\n}",
                          "createdAt": "2026-06-05T15:05:37.000Z",
                          "updatedAt": "2026-06-05T15:05:37.000Z",
                          "uid": "35240-bd591101-003f-4165-9cb2-bfaf4e425eda"
                        },
                        {
                          "id": "0434345f-b7b0-4fc1-96a3-2eed808baa69",
                          "name": "Error response.",
                          "originalRequest": {
                            "method": "GET",
                            "header": [
                              {
                                "description": "(Required) ",
                                "key": "anthropic-version",
                                "value": "2023-06-01"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              },
                              {
                                "description": "Added as a part of security scheme: apikey",
                                "key": "x-api-key",
                                "value": "<API Key>"
                              }
                            ],
                            "url": {
                              "raw": "{{baseUrl}}/v1/organizations/usage_report/claude_code?starting_at=<dateTime>&ending_at=<dateTime>&limit=20&page=<string>",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "v1",
                                "organizations",
                                "usage_report",
                                "claude_code"
                              ],
                              "query": [
                                {
                                  "description": "(Required) RFC3339 inclusive lower bound (UTC date) for the report window.",
                                  "key": "starting_at",
                                  "value": "<dateTime>"
                                },
                                {
                                  "description": "RFC3339 exclusive upper bound (UTC date) for the report window.",
                                  "key": "ending_at",
                                  "value": "<dateTime>"
                                },
                                {
                                  "key": "limit",
                                  "value": "20"
                                },
                                {
                                  "key": "page",
                                  "value": "<string>"
                                }
                              ]
                            }
                          },
                          "status": "Bad Request",
                          "code": 400,
                          "_postman_previewlanguage": "json",
                          "header": [
                            {
                              "key": "Content-Type",
                              "value": "application/json"
                            }
                          ],
                          "cookie": [],
                          "responseTime": null,
                          "body": "{\n  \"type\": \"<string>\",\n  \"error\": {\n    \"type\": \"<string>\",\n    \"message\": \"<string>\"\n  }\n}",
                          "createdAt": "2026-06-05T15:05:37.000Z",
                          "updatedAt": "2026-06-05T15:05:37.000Z",
                          "uid": "35240-0434345f-b7b0-4fc1-96a3-2eed808baa69"
                        }
                      ],
                      "createdAt": "2026-06-05T15:05:37.000Z",
                      "updatedAt": "2026-06-05T15:05:37.000Z",
                      "uid": "35240-77215c91-2253-4991-b7b9-699aa14928e6"
                    }
                  ],
                  "id": "ab068092-d4d4-4af8-b070-8f077ba2a186",
                  "createdAt": "2026-06-05T15:05:37.000Z",
                  "updatedAt": "2026-06-05T15:05:37.000Z",
                  "uid": "35240-ab068092-d4d4-4af8-b070-8f077ba2a186"
                }
              ],
              "id": "39d7a7e3-8d0b-4408-9dcd-2b7cdfeae66b",
              "createdAt": "2026-06-05T15:05:37.000Z",
              "updatedAt": "2026-06-05T15:05:37.000Z",
              "uid": "35240-39d7a7e3-8d0b-4408-9dcd-2b7cdfeae66b"
            }
          ],
          "id": "69d45440-6e02-418b-ada9-d6fcdbd7f166",
          "createdAt": "2026-06-05T15:05:37.000Z",
          "updatedAt": "2026-06-05T15:05:37.000Z",
          "uid": "35240-69d45440-6e02-418b-ada9-d6fcdbd7f166"
        }
      ],
      "id": "63d5f88b-fca2-4efd-9314-6928fcf0e1ac",
      "createdAt": "2026-06-05T15:05:37.000Z",
      "updatedAt": "2026-06-05T15:05:37.000Z",
      "uid": "35240-63d5f88b-fca2-4efd-9314-6928fcf0e1ac"
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "x-api-key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.anthropic.com"
    }
  ]
}