{"openapi":"3.1.0","info":{"title":"Datadog Usage (BYOK) API","version":"0.1.0","description":"Datadog Usage (BYOK) lets an AI assistant read your own Datadog Usage data through the Datadog Usage API with a key you supply (Datadog API key (US1 site, datadoghq.com)). Read-only: 7 tools (get_usage_summary, get_billable_summary, get_hourly_usage, get_estimated_cost, get_projected_cost, get_historical_cost, get_usage_attribution_types). The BYOK key travels with each request, is used for that...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-datadog-usage.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-datadog-usage/docs"},"termsOfService":"https://connectorbay.com/byok-datadog-usage/terms"},"servers":[{"url":"https://byok-datadog-usage.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-datadog-usage/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_usage_summary":{"post":{"operationId":"get_usage_summary","summary":"Get monthly usage totals across the account: top-99th-percentile hosts (agent, infrastructure, APM), containers, custom ","description":"Get monthly usage totals across the account: top-99th-percentile hosts (agent, infrastructure, APM), containers, custom metrics, events, RUM sessions, synthetics calls and more. Per-day detail is left out. Only available to parent-level (or single root) organizations. Use for \"How many infrastructure hosts did my Datadog account use in September 2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"start_month":{"description":"First month to include, as YYYY-MM (at most 15 months back).","maxLength":7,"title":"Start Month","type":"string"},"end_month":{"anyOf":[{"maxLength":7,"type":"string"},{"type":"null"}],"default":null,"description":"Last month to include, as YYYY-MM.","title":"End Month"},"include_org_details":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include a summary per sub-organization.","title":"Include Org Details"}},"required":["start_month"],"title":"get_usage_summaryArguments","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_billable_summary":{"post":{"operationId":"get_billable_summary","summary":"Get billable usage for a month against commitments for key products: infrastructure hosts, APM hosts, indexed and ingest","description":"Get billable usage for a month against commitments for key products: infrastructure hosts, APM hosts, indexed and ingested logs, ingested spans and custom metrics (billable, committed and on-demand amounts). Only available to parent-level (or single root) organizations. Use for \"Is my Datadog infrastructure host usage above my commitment this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"month":{"anyOf":[{"maxLength":7,"type":"string"},{"type":"null"}],"default":null,"description":"Month as YYYY-MM (default: the current month).","title":"Month"}},"title":"get_billable_summaryArguments","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_hourly_usage":{"post":{"operationId":"get_hourly_usage","summary":"Get hourly usage measurements for one or more product families (for example infra_hosts, indexed_logs, ingested_spans, r","description":"Get hourly usage measurements for one or more product families (for example infra_hosts, indexed_logs, ingested_spans, rum, synthetics_api, timeseries). Page with next_record_id. Use for \"How many indexed logs did Datadog count per hour yesterday\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"start":{"description":"Start hour, as YYYY-MM-DDThh (UTC).","maxLength":13,"title":"Start","type":"string"},"product_families":{"description":"Comma-separated product families, or 'all', for example 'infra_hosts,indexed_logs'. Others include application_performance_monitoring, ingested_spans, rum, synthetics_api, synthetics_browser, serverless, timeseries.","maxLength":300,"title":"Product Families","type":"string"},"end":{"anyOf":[{"maxLength":13,"type":"string"},{"type":"null"}],"default":null,"description":"End hour (exclusive), as YYYY-MM-DDThh (UTC).","title":"End"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Maximum records (1 to 500).","title":"Limit"},"next_record_id":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from meta.pagination.next_record_id of the previous answer.","title":"Next Record Id"}},"required":["start","product_families"],"title":"get_hourly_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_estimated_cost":{"post":{"operationId":"get_estimated_cost","summary":"Get estimated cost for the current or previous month (delayed up to 72 hours): total and charges per product. Only avail","description":"Get estimated cost for the current or previous month (delayed up to 72 hours): total and charges per product. Only available to parent-level (or single root) organizations. Use for \"What is my estimated Datadog bill so far this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"view":{"anyOf":[{"enum":["summary","sub-org"],"type":"string"},{"type":"null"}],"default":null,"description":"Breakdown: summary for the parent organization, sub-org for each child organization. Default summary.","title":"View"},"start_month":{"anyOf":[{"maxLength":7,"type":"string"},{"type":"null"}],"default":null,"description":"First month as YYYY-MM (give this or start_date).","title":"Start Month"},"end_month":{"anyOf":[{"maxLength":7,"type":"string"},{"type":"null"}],"default":null,"description":"Last month as YYYY-MM.","title":"End Month"},"start_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"First day as YYYY-MM-DD (give this or start_month).","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Last day as YYYY-MM-DD.","title":"End Date"}},"title":"get_estimated_costArguments","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_projected_cost":{"post":{"operationId":"get_projected_cost","summary":"Get the projected cost for the current month (available from around the 12th): total and charges per product. Only avail","description":"Get the projected cost for the current month (available from around the 12th): total and charges per product. Only available to parent-level (or single root) organizations. Use for \"What will my Datadog bill be this month\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"view":{"anyOf":[{"enum":["summary","sub-org"],"type":"string"},{"type":"null"}],"default":null,"description":"Breakdown: summary for the parent organization, sub-org for each child organization. Default summary.","title":"View"}},"title":"get_projected_costArguments","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_historical_cost":{"post":{"operationId":"get_historical_cost","summary":"Get final cost of past months (available by the 16th of the following month): total and charges per product. Only availa","description":"Get final cost of past months (available by the 16th of the following month): total and charges per product. Only available to parent-level (or single root) organizations. Use for \"What did Datadog cost me in August 2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"start_month":{"description":"First month as YYYY-MM.","maxLength":7,"title":"Start Month","type":"string"},"end_month":{"anyOf":[{"maxLength":7,"type":"string"},{"type":"null"}],"default":null,"description":"Last month as YYYY-MM.","title":"End Month"},"view":{"anyOf":[{"enum":["summary","sub-org"],"type":"string"},{"type":"null"}],"default":null,"description":"Breakdown: summary for the parent organization, sub-org for each child organization. Default summary.","title":"View"}},"required":["start_month"],"title":"get_historical_costArguments","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_usage_attribution_types":{"post":{"operationId":"get_usage_attribution_types","summary":"List the usage attribution types the account can report on. Use for \"Which usage attribution types does Datadog support\"","description":"List the usage attribution types the account can report on. Use for \"Which usage attribution types does Datadog support\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_usage_attribution_typesArguments","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}}}}