{"openapi":"3.1.0","info":{"title":"Duffel Stays Catalog (your token) API","version":"0.1.0","description":"Duffel Stays Catalog (your token) lets an AI assistant read your own Duffel Stays data through the Duffel Stays API with a key you supply (Duffel access token). Read-only: 5 tools (list_accommodation_near, get_accommodation, list_hotel_brands, get_hotel_brand, list_hotel_loyalty_programmes). 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-duffel-stays.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-duffel-stays/docs"},"termsOfService":"https://connectorbay.com/byok-duffel-stays/terms"},"servers":[{"url":"https://byok-duffel-stays.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-duffel-stays/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_accommodation_near":{"post":{"operationId":"list_accommodation_near","summary":"List hotels and other accommodation within 1 to 100 km of a point, with name, star rating, review score, brand, chain, l","description":"List hotels and other accommodation within 1 to 100 km of a point, with name, star rating, review score, brand, chain, location, check-in times and amenities; paged by cursor. Use for \"Which hotels are within 5 km of latitude 51.5071, longitude -0.1416\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"latitude":{"description":"Latitude of the search center, -90 to 90.","maximum":90,"minimum":-90,"title":"Latitude","type":"number"},"longitude":{"description":"Longitude of the search center, -180 to 180.","maximum":180,"minimum":-180,"title":"Longitude","type":"number"},"radius":{"description":"Search radius in kilometers (1 to 100, default 5).","maximum":100,"minimum":1,"title":"Radius","type":"integer"},"limit":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page (1 to 200, default 50).","title":"Limit"},"after":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from the previous answer's meta.after to get the next page.","title":"After"},"before":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Cursor from meta.before to get the previous page.","title":"Before"}},"required":["latitude","longitude","radius"],"title":"list_accommodation_nearArguments","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_accommodation":{"post":{"operationId":"get_accommodation","summary":"Get one accommodation by its Duffel id: name, star rating, review score, brand, chain, location, check-in times and amen","description":"Get one accommodation by its Duffel id: name, star rating, review score, brand, chain, location, check-in times and amenities. Use for \"Show details of accommodation acc_0000AWr2VsUNIF1Vl91xg0\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"accommodation_id":{"description":"Accommodation id starting with 'acc_'.","maxLength":60,"title":"Accommodation Id","type":"string"}},"required":["accommodation_id"],"title":"get_accommodationArguments","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_hotel_brands":{"post":{"operationId":"list_hotel_brands","summary":"List the hotel brands supported by Duffel Stays with their ids. Use for \"Which hotel brands does Duffel Stays support\".","description":"List the hotel brands supported by Duffel Stays with their ids. Use for \"Which hotel brands does Duffel Stays support\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_hotel_brandsArguments","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_hotel_brand":{"post":{"operationId":"get_hotel_brand","summary":"Get one hotel brand by id. Use for \"What is hotel brand bra_0000Alr8BYNsbmDMThHSbI\".","description":"Get one hotel brand by id. Use for \"What is hotel brand bra_0000Alr8BYNsbmDMThHSbI\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"brand_id":{"description":"Brand id starting with 'bra_'.","maxLength":60,"title":"Brand Id","type":"string"}},"required":["brand_id"],"title":"get_hotel_brandArguments","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_hotel_loyalty_programmes":{"post":{"operationId":"list_hotel_loyalty_programmes","summary":"List the hotel loyalty programmes Duffel Stays supports, with reference code and name (logos left out). Use for \"Which h","description":"List the hotel loyalty programmes Duffel Stays supports, with reference code and name (logos left out). Use for \"Which hotel loyalty programmes can be used with Duffel Stays\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_hotel_loyalty_programmesArguments","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}}}}