{"openapi":"3.1.0","info":{"title":"Climatiq (BYOK) API","version":"0.1.0","description":"Climatiq (BYOK) lets an AI assistant read your own Climatiq data through the Climatiq API with a key you supply (Climatiq API key). Read-only: 6 tools (search_emission_factors, search_factors_by_activity, search_factors_by_scope, get_emission_factor, list_unit_types, get_latest_data_version). The BYOK key travels with each request, is used for that one call only and is never stored, logged or...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-climatiq.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-climatiq/docs"},"termsOfService":"https://connectorbay.com/byok-climatiq/terms"},"servers":[{"url":"https://byok-climatiq.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-climatiq/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/search_emission_factors":{"post":{"operationId":"search_emission_factors","summary":"Search emission factors by free text (fuzzy matching on names and descriptions) with optional filters for category, sect","description":"Search emission factors by free text (fuzzy matching on names and descriptions) with optional filters for category, sector, source, year, region and unit type. Returns the factor value, unit, source and scopes. Use for \"What is the emission factor for a light-duty truck in the US\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"data_version":{"description":"Data version to query: a release number such as '38' (fixed) or '^38' (latest compatible updates). Use get_latest_data_version to find the newest release.","maxLength":12,"title":"Data Version","type":"string"},"query":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Free-text query, for example 'light duty trucks' or 'grid electricity'.","title":"Query"},"category":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only factors of this category, for example 'Vehicles' or 'Electricity'.","title":"Category"},"sector":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only factors of this sector, for example 'Transport' or 'Energy'.","title":"Sector"},"source":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only factors from this data source, for example 'EPA' or 'GHG Protocol'.","title":"Source"},"year":{"anyOf":[{"maximum":2100,"minimum":1990,"type":"integer"},{"type":"null"}],"default":null,"description":"Only factors whose most relevant year is this one.","title":"Year"},"region":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Region code such as 'US', 'DE' or 'CA-ON'; a trailing * matches sub-regions (for example 'US*').","title":"Region"},"unit_type":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only factors of this unit category, for example Weight, Energy, Volume, Money or Distance (see list_unit_types).","title":"Unit Type"},"calculation_method":{"anyOf":[{"enum":["ar4","ar5","ar6"],"type":"string"},{"type":"null"}],"default":null,"description":"Global-warming-potential method: ar4, ar5 or ar6 (default is the newest supported by the source).","title":"Calculation Method"},"results_per_page":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many emission factors per page (1 to 500, default 20).","title":"Results Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["data_version"],"title":"search_emission_factorsArguments","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/search_factors_by_activity":{"post":{"operationId":"search_factors_by_activity","summary":"List emission factors that share a Climatiq activity id; a trailing * matches every id that starts with the given text. ","description":"List emission factors that share a Climatiq activity id; a trailing * matches every id that starts with the given text. Use for \"Which emission factors exist for activity ids starting with 'electricity-supply_grid'\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"data_version":{"description":"Data version to query: a release number such as '38' (fixed) or '^38' (latest compatible updates). Use get_latest_data_version to find the newest release.","maxLength":12,"title":"Data Version","type":"string"},"activity_id":{"description":"Activity id, or a prefix ending in * such as 'electricity-supply_grid*'.","maxLength":300,"title":"Activity Id","type":"string"},"region":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Region code such as 'US' or 'DE'; a trailing * matches sub-regions.","title":"Region"},"year":{"anyOf":[{"maximum":2100,"minimum":1990,"type":"integer"},{"type":"null"}],"default":null,"description":"Only factors whose most relevant year is this one.","title":"Year"},"calculation_method":{"anyOf":[{"enum":["ar4","ar5","ar6"],"type":"string"},{"type":"null"}],"default":null,"description":"Global-warming-potential method: ar4, ar5 or ar6.","title":"Calculation Method"},"results_per_page":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many emission factors per page (1 to 500, default 20).","title":"Results Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["data_version","activity_id"],"title":"search_factors_by_activityArguments","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/search_factors_by_scope":{"post":{"operationId":"search_factors_by_scope","summary":"List emission factors for a greenhouse-gas protocol scope (1, 2, 3 or a Scope 3 category such as 3.1), optionally narrow","description":"List emission factors for a greenhouse-gas protocol scope (1, 2, 3 or a Scope 3 category such as 3.1), optionally narrowed by a text query and region. Use for \"Show Scope 2 emission factors for Germany\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"data_version":{"description":"Data version to query: a release number such as '38' (fixed) or '^38' (latest compatible updates). Use get_latest_data_version to find the newest release.","maxLength":12,"title":"Data Version","type":"string"},"scope":{"description":"Scope: 1, 2, 3 (all Scope 3) or a category such as 3.1 or 3.6.","maxLength":6,"title":"Scope","type":"string"},"query":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Optional free-text query.","title":"Query"},"region":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Region code such as 'DE'; a trailing * matches sub-regions.","title":"Region"},"year":{"anyOf":[{"maximum":2100,"minimum":1990,"type":"integer"},{"type":"null"}],"default":null,"description":"Only factors whose most relevant year is this one.","title":"Year"},"results_per_page":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many emission factors per page (1 to 500, default 20).","title":"Results Per Page"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["data_version","scope"],"title":"search_factors_by_scopeArguments","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_emission_factor":{"post":{"operationId":"get_emission_factor","summary":"Get a single emission factor by its Climatiq id (returned when the factor was added no later than the data version). Use","description":"Get a single emission factor by its Climatiq id (returned when the factor was added no later than the data version). Use for \"Give me the emission factor with id e4256fa1-9527-42de-a46d-477f2c1bbb3f\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"data_version":{"description":"Data version to query: a release number such as '38' (fixed) or '^38' (latest compatible updates). Use get_latest_data_version to find the newest release.","maxLength":12,"title":"Data Version","type":"string"},"id":{"description":"Climatiq emission factor id (a UUID).","maxLength":60,"title":"Id","type":"string"}},"required":["data_version","id"],"title":"get_emission_factorArguments","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_unit_types":{"post":{"operationId":"list_unit_types","summary":"List the unit types Climatiq supports (area, energy, weight, money, distance ...) with the units accepted for each. Use ","description":"List the unit types Climatiq supports (area, energy, weight, money, distance ...) with the units accepted for each. Use for \"Which units can I use for an energy emission factor\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_unit_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}},"/v1/tools/get_latest_data_version":{"post":{"operationId":"get_latest_data_version","summary":"Show the latest Climatiq data release number to use as data_version. Use for \"What is the latest Climatiq data version\".","description":"Show the latest Climatiq data release number to use as data_version. Use for \"What is the latest Climatiq data version\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_latest_data_versionArguments","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}}}}