{"openapi":"3.1.0","info":{"title":"Claude Enterprise analytics: adoption, token usage, cost, skills, connectors (your key) API","version":"0.1.0","description":"Claude Enterprise analytics: adoption, token usage, cost, skills, connectors (your key) lets an AI assistant read your own Anthropic Analytics data through the Anthropic Analytics API with a key you supply (Anthropic API key with the read:analytics scope (Claude Enterprise plan)). Read-only: 5 tools (get_activity_summaries, get_token_usage_over_time, get_cost_over_time, get_skill_usage,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-anthropic-analytics.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-anthropic-analytics/docs"},"termsOfService":"https://connectorbay.com/byok-anthropic-analytics/terms"},"servers":[{"url":"https://byok-anthropic-analytics.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-anthropic-analytics/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_activity_summaries":{"post":{"operationId":"get_activity_summaries","summary":"Get one summary per day of Claude Enterprise adoption: seats, daily, weekly and monthly active users overall and per pro","description":"Get one summary per day of Claude Enterprise adoption: seats, daily, weekly and monthly active users overall and per product (chat, Claude Code, Cowork) and adoption rates. Needs a Claude Enterprise plan. Use for \"How many people used Claude in our organization each day last week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"starting_date":{"description":"First UTC day, YYYY-MM-DD (not before 2026-01-01).","maxLength":10,"title":"Starting Date","type":"string"},"ending_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Last UTC day, exclusive, YYYY-MM-DD. Defaults to today.","title":"Ending Date"}},"required":["starting_date"],"title":"get_activity_summariesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_token_usage_over_time":{"post":{"operationId":"get_token_usage_over_time","summary":"Get organization token usage in time buckets (1 day, 1 hour or 1 minute): uncached, cached and output tokens and request","description":"Get organization token usage in time buckets (1 day, 1 hour or 1 minute): uncached, cached and output tokens and requests. Needs a Claude Enterprise plan. Use for \"How many tokens did our organization use per day this week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"starting_at":{"description":"Start of range, RFC 3339 with time zone, for example 2026-10-01T00:00:00Z (not before 2026-01-01).","maxLength":40,"title":"Starting At","type":"string"},"ending_at":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"End of range, exclusive (at most 31 days after starting_at). Defaults to now or 31 days after the start.","title":"Ending At"},"bucket_width":{"anyOf":[{"enum":["1d","1h","1m"],"type":"string"},{"type":"null"}],"default":"1d","description":"Bucket size: 1d, 1h or 1m.","title":"Bucket Width"},"group_by":{"anyOf":[{"enum":["model","product","context_window","inference_geo","speed","rbac_group_id"],"type":"string"},{"type":"null"}],"default":null,"description":"Optional breakdown dimension: model, product, context_window, inference_geo, speed or rbac_group_id.","title":"Group By"},"limit":{"anyOf":[{"maximum":256,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of time buckets in one page (1d: up to 31, 1h: up to 168, 1m: up to 256).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"required":["starting_at"],"title":"get_token_usage_over_timeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_cost_over_time":{"post":{"operationId":"get_cost_over_time","summary":"Get organization cost in USD in time buckets (1 day, 1 hour or 1 minute), optionally broken down by model, product, cost","description":"Get organization cost in USD in time buckets (1 day, 1 hour or 1 minute), optionally broken down by model, product, cost type or token type. Needs a Claude Enterprise plan. Use for \"How much did Claude cost our organization per day this week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"starting_at":{"description":"Start of range, RFC 3339 with time zone, for example 2026-10-01T00:00:00Z (not before 2026-01-01).","maxLength":40,"title":"Starting At","type":"string"},"ending_at":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"End of range, exclusive (at most 31 days after starting_at). Defaults to now or 31 days after the start.","title":"Ending At"},"bucket_width":{"anyOf":[{"enum":["1d","1h","1m"],"type":"string"},{"type":"null"}],"default":"1d","description":"Bucket size: 1d, 1h or 1m.","title":"Bucket Width"},"group_by":{"anyOf":[{"enum":["model","product","context_window","inference_geo","speed","cost_type","token_type","rbac_group_id"],"type":"string"},{"type":"null"}],"default":null,"description":"Optional breakdown dimension: model, product, context_window, inference_geo, speed, cost_type, token_type or rbac_group_id.","title":"Group By"},"limit":{"anyOf":[{"maximum":256,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of time buckets in one page (1d: up to 31, 1h: up to 168, 1m: up to 256).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"required":["starting_at"],"title":"get_cost_over_timeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_skill_usage":{"post":{"operationId":"get_skill_usage","summary":"Get usage per Claude skill for one day or a date range: distinct users, invocation counts and per-surface metrics, sorte","description":"Get usage per Claude skill for one day or a date range: distinct users, invocation counts and per-surface metrics, sorted by skill name. Needs a Claude Enterprise plan. Use for \"Which Claude skills are used most in our organization\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"One UTC day, YYYY-MM-DD (not before 2026-01-01).","title":"Date"},"starting_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Start of a date range, YYYY-MM-DD; returns one row per skill over the range.","title":"Starting Date"},"ending_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"End of the range, exclusive; only with starting_date.","title":"Ending Date"},"order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction: asc or desc.","title":"Order"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Rows per page (1 to 1000).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"get_skill_usageArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_connector_usage":{"post":{"operationId":"get_connector_usage","summary":"Get usage per connector (MCP and built-in integrations, names normalized) for one day or a date range: distinct users, r","description":"Get usage per connector (MCP and built-in integrations, names normalized) for one day or a date range: distinct users, read and write call counts. Needs a Claude Enterprise plan. Use for \"Which connectors do people in our Claude organization use\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"One UTC day, YYYY-MM-DD (not before 2026-01-01).","title":"Date"},"starting_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Start of a date range, YYYY-MM-DD; returns one row per connector over the range.","title":"Starting Date"},"ending_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"End of the range, exclusive; only with starting_date.","title":"Ending Date"},"order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction: asc or desc.","title":"Order"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Rows per page (1 to 1000).","title":"Limit"},"page":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from a previous answer's next_page to get the following page.","title":"Page"}},"title":"get_connector_usageArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}