{"openapi":"3.1.0","info":{"title":"Cloudflare Spectrum (BYOK) API","version":"0.1.0","description":"Cloudflare Spectrum (BYOK) lets an AI assistant read your own Cloudflare Spectrum data through the Cloudflare Spectrum API with a key you supply (Cloudflare API token with Zone Spectrum read permission). Read-only: 5 tools (list_applications, get_application, list_protocols, get_current_analytics, get_zones_bandwidth_report). The BYOK key travels with each request, is used for that one call only...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-cloudflare-spectrum.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-cloudflare-spectrum/docs"},"termsOfService":"https://connectorbay.com/byok-cloudflare-spectrum/terms"},"servers":[{"url":"https://byok-cloudflare-spectrum.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-cloudflare-spectrum/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/list_applications":{"post":{"operationId":"list_applications","summary":"List the Spectrum applications of a zone with protocol, DNS name, origin, TLS mode, traffic type and Argo and IP firewal","description":"List the Spectrum applications of a zone with protocol, DNS name, origin, TLS mode, traffic type and Argo and IP firewall flags. Use for \"Which TCP or UDP services do I proxy through Cloudflare Spectrum\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"zone_id":{"description":"Cloudflare zone id (32-character hex string, from the Cloudflare connector's list_zones).","maxLength":40,"title":"Zone Id","type":"string"},"order":{"anyOf":[{"enum":["protocol","app_id","created_on","modified_on","dns"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort field.","title":"Order"},"direction":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort direction.","title":"Direction"},"per_page":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many results per page (1 to 100).","title":"Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1; result_info.total_count says how many exist.","title":"Page"}},"required":["zone_id"],"title":"list_applicationsArguments","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_application":{"post":{"operationId":"get_application","summary":"Get one Spectrum application: protocol, DNS name, origin, TLS mode, proxy protocol and traffic type. Use for \"How is Spe","description":"Get one Spectrum application: protocol, DNS name, origin, TLS mode, proxy protocol and traffic type. Use for \"How is Spectrum application ea95132c configured\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"zone_id":{"description":"Cloudflare zone id (32-character hex string, from the Cloudflare connector's list_zones).","maxLength":40,"title":"Zone Id","type":"string"},"app_id":{"description":"Spectrum application id (32-character hex string), as returned by list_applications.","maxLength":40,"title":"App Id","type":"string"}},"required":["zone_id","app_id"],"title":"get_applicationArguments","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/list_protocols":{"post":{"operationId":"list_protocols","summary":"List the protocols Spectrum can proxy, with description, transport and ports. Use for \"Which protocols does Cloudflare S","description":"List the protocols Spectrum can proxy, with description, transport and ports. Use for \"Which protocols does Cloudflare Spectrum support\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"zone_id":{"description":"Cloudflare zone id (32-character hex string, from the Cloudflare connector's list_zones).","maxLength":40,"title":"Zone Id","type":"string"}},"required":["zone_id"],"title":"list_protocolsArguments","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_current_analytics":{"post":{"operationId":"get_current_analytics","summary":"Get the current aggregated Spectrum traffic per application: bytes in and out, connections and average duration. Use for","description":"Get the current aggregated Spectrum traffic per application: bytes in and out, connections and average duration. Use for \"How much traffic did my Spectrum apps handle\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"zone_id":{"description":"Cloudflare zone id (32-character hex string, from the Cloudflare connector's list_zones).","maxLength":40,"title":"Zone Id","type":"string"},"app_id":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only this application id.","title":"App Id"},"colo_name":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only this Cloudflare data center, for example 'SFO'.","title":"Colo Name"}},"required":["zone_id"],"title":"get_current_analyticsArguments","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_zones_bandwidth_report":{"post":{"operationId":"get_zones_bandwidth_report","summary":"Get the user-level Spectrum bandwidth totals (ingress, egress, all) per zone for a time range. Use for \"How much Spectru","description":"Get the user-level Spectrum bandwidth totals (ingress, egress, all) per zone for a time range. Use for \"How much Spectrum bandwidth did each of my zones use\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"since":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the range, ISO 8601 (for example 2026-10-01T00:00:00Z).","title":"Since"},"until":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"End of the range, ISO 8601.","title":"Until"},"cdn_traffic":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to include proxied CDN traffic as well.","title":"Cdn Traffic"}},"title":"get_zones_bandwidth_reportArguments","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}}}}