{"openapi":"3.1.0","info":{"title":"Travel Risk API (BYOK) API","version":"0.1.0","description":"Travel Risk API (BYOK) lets an AI assistant read your own Travel Risk API data through the Travel Risk API API with a key you supply (Travel Risk API key). Read-only: 9 tools (get_risk_score, list_countries, get_country, list_country_codes, list_advisories, list_alerts, get_alert, list_conflicts, get_usage). The BYOK key travels with each request, is used for that one call only and is never...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-travelriskapi.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-travelriskapi/docs"},"termsOfService":"https://connectorbay.com/byok-travelriskapi/terms"},"servers":[{"url":"https://byok-travelriskapi.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-travelriskapi/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_risk_score":{"post":{"operationId":"get_risk_score","summary":"Get a 1 to 5 travel risk score for one country: the highest government advisory level plus an impact from active alerts,","description":"Get a 1 to 5 travel risk score for one country: the highest government advisory level plus an impact from active alerts, with the breakdown of how it was calculated. Use for \"How risky is travel to Turkey right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"iso_code":{"description":"Country code, ISO 3166-1 alpha-3 (for example 'TUR') or alpha-2 ('TR').","maxLength":3,"title":"Iso Code","type":"string"}},"required":["iso_code"],"title":"get_risk_scoreArguments","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_countries":{"post":{"operationId":"list_countries","summary":"List countries with their government advisory level and risk score, paged with skip and limit. Use for \"Which countries ","description":"List countries with their government advisory level and risk score, paged with skip and limit. Use for \"Which countries have the highest travel risk scores\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"skip":{"anyOf":[{"maximum":1000000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Number of records to skip, for paging.","title":"Skip"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Records to return (1 to 1000).","title":"Limit"}},"title":"list_countriesArguments","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_country":{"post":{"operationId":"get_country","summary":"Get one country's advisory level, advisory text, advisory date and risk score. Use for \"What is the current travel advis","description":"Get one country's advisory level, advisory text, advisory date and risk score. Use for \"What is the current travel advisory for Turkey\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"iso_code":{"description":"Country code, ISO 3166-1 alpha-3 (for example 'TUR') or alpha-2 ('TR').","maxLength":3,"title":"Iso Code","type":"string"}},"required":["iso_code"],"title":"get_countryArguments","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_country_codes":{"post":{"operationId":"list_country_codes","summary":"List every supported country code in one answer, without paging. Use for \"Which country codes does the Travel Risk API s","description":"List every supported country code in one answer, without paging. Use for \"Which country codes does the Travel Risk API support\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_country_codesArguments","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_advisories":{"post":{"operationId":"list_advisories","summary":"List government travel advisories grouped by country, with each agency's assessment, the highest level (1 normal, 2 incr","description":"List government travel advisories grouped by country, with each agency's assessment, the highest level (1 normal, 2 increased caution, 3 reconsider, 4 do not travel) and its source link. Use for \"Which countries have a level 4 do not travel advisory\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country_iso":{"anyOf":[{"maxLength":3,"type":"string"},{"type":"null"}],"default":null,"description":"Only this country, as an alpha-3 or alpha-2 code.","title":"Country Iso"},"min_level":{"anyOf":[{"maximum":4,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only countries whose highest level is at least this (1 to 4).","title":"Min Level"}},"title":"list_advisoriesArguments","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_alerts":{"post":{"operationId":"list_alerts","summary":"List active natural-hazard and weather alerts (earthquake, flood, wildfire, cyclone, volcano, drought, severe storm, hum","description":"List active natural-hazard and weather alerts (earthquake, flood, wildfire, cyclone, volcano, drought, severe storm, humanitarian), refreshed every 6 hours, with filters and paging. Use for \"Are there any high or critical flood alerts in the last 3 days\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country_iso":{"anyOf":[{"maxLength":3,"type":"string"},{"type":"null"}],"default":null,"description":"Only this country, as an alpha-3 or alpha-2 code.","title":"Country Iso"},"severity":{"anyOf":[{"enum":["Low","Medium","High","Critical"],"type":"string"},{"type":"null"}],"default":null,"description":"Alert severity.","title":"Severity"},"alert_type":{"anyOf":[{"enum":["earthquake","flood","wildfire","cyclone","volcano","drought","severe_storm","humanitarian"],"type":"string"},{"type":"null"}],"default":null,"description":"Alert type.","title":"Alert Type"},"days":{"anyOf":[{"maximum":365,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only events from the last N days (1 to 365).","title":"Days"},"updated_since":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"ISO 8601 timestamp; only alerts created or revised since then.","title":"Updated Since"},"skip":{"anyOf":[{"maximum":1000000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Number of records to skip, for paging.","title":"Skip"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Records to return (1 to 1000).","title":"Limit"}},"title":"list_alertsArguments","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_alert":{"post":{"operationId":"get_alert","summary":"Get one alert by id, including its affected-area polygon when the source provides one. Use for \"Show the details of aler","description":"Get one alert by id, including its affected-area polygon when the source provides one. Use for \"Show the details of alert 75533\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"alert_id":{"description":"Alert id from list_alerts, for example '75533'.","maxLength":20,"title":"Alert Id","type":"string"}},"required":["alert_id"],"title":"get_alertArguments","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_conflicts":{"post":{"operationId":"list_conflicts","summary":"List armed-clash, assault and mass-violence events from the rolling 30-day window (refreshed every 15 minutes) with loca","description":"List armed-clash, assault and mass-violence events from the rolling 30-day window (refreshed every 15 minutes) with location, severity and a source link. Use for \"What conflict events happened in Ukraine this week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country_iso":{"anyOf":[{"maxLength":3,"type":"string"},{"type":"null"}],"default":null,"description":"Only this country, as an alpha-3 or alpha-2 code.","title":"Country Iso"},"days":{"anyOf":[{"maximum":30,"minimum":1,"type":"integer"},{"type":"null"}],"default":7,"description":"Look-back window in days (1 to 30).","title":"Days"},"min_severity":{"anyOf":[{"enum":["Low","Medium","High","Critical"],"type":"string"},{"type":"null"}],"default":null,"description":"Only events at or above this severity.","title":"Min Severity"},"skip":{"anyOf":[{"maximum":1000000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Number of records to skip, for paging.","title":"Skip"},"limit":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Records to return (1 to 1000).","title":"Limit"}},"title":"list_conflictsArguments","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":{"post":{"operationId":"get_usage","summary":"Show your own API usage by day for the key (requests used against the plan quota). Use for \"How many Travel Risk API req","description":"Show your own API usage by day for the key (requests used against the plan quota). Use for \"How many Travel Risk API requests have I used this week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"days":{"anyOf":[{"maximum":90,"minimum":1,"type":"integer"},{"type":"null"}],"default":7,"description":"How many days to include.","title":"Days"}},"title":"get_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}}}}