{"openapi":"3.1.0","info":{"title":"DHL (BYOK) API","version":"0.1.0","description":"DHL (BYOK) lets an AI assistant read your own DHL data through the DHL API with a key you supply (DHL developer portal API key). Read-only: 5 tools (track_shipment, find_locations_by_address, find_locations_by_coordinates, get_location, find_location_by_keyword_id). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-dhl.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-dhl/docs"},"termsOfService":"https://connectorbay.com/byok-dhl/terms"},"servers":[{"url":"https://byok-dhl.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-dhl/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/track_shipment":{"post":{"operationId":"track_shipment","summary":"Get the latest status and event history of a DHL shipment by tracking number (DHL Shipment Tracking, unified API). Optio","description":"Get the latest status and event history of a DHL shipment by tracking number (DHL Shipment Tracking, unified API). Optionally narrow by DHL service, origin country or recipient postal code. Recipient and sender details are not returned. Use for \"Where is DHL shipment 00340434292135100186\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"api_host":{"const":"api-eu","description":"Fixed DHL API host label for tracking: always api-eu (api-eu.dhl.com).","title":"Api Host","type":"string"},"tracking_number":{"description":"DHL tracking number.","maxLength":60,"title":"Tracking Number","type":"string"},"service":{"anyOf":[{"enum":["dgf","dsc","ecommerce","ecommerce-apac","ecommerce-europe","ecommerce-ppl","ecommerce-iberia","express","freight","parcel-de","parcel-nl","parcel-pl","parcel-uk","post-de","post-international","sameday","svb"],"type":"string"},{"type":"null"}],"default":null,"description":"Limit to one DHL service.","title":"Service"},"requester_country_code":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter country code of the requester; some services need it for more detail.","title":"Requester Country Code"},"origin_country_code":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter country code of the shipment origin.","title":"Origin Country Code"},"recipient_postal_code":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Recipient postal code; some services need it to release full details.","title":"Recipient Postal Code"},"language":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":"en","description":"Two-letter language code for the status texts.","title":"Language"},"offset":{"anyOf":[{"maximum":1000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Number of results to skip when a tracking number matches several shipments.","title":"Offset"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":5,"description":"Maximum number of shipments to return.","title":"Limit"}},"required":["api_host","tracking_number"],"title":"track_shipmentArguments","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/find_locations_by_address":{"post":{"operationId":"find_locations_by_address","summary":"Find DHL service points, lockers and post offices near an address, with opening hours, distance and services. Use for \"F","description":"Find DHL service points, lockers and post offices near an address, with opening hours, distance and services. Use for \"Find DHL service points near postal code 53113 in Bonn, Germany\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"api_host":{"const":"api","description":"Fixed DHL API host label for the Location Finder: always api (api.dhl.com).","title":"Api Host","type":"string"},"country_code":{"description":"Two-letter country code of the search area, for example DE.","maxLength":2,"title":"Country Code","type":"string"},"address_locality":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"City or town.","title":"Address Locality"},"postal_code":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Postal code.","title":"Postal Code"},"street_address":{"anyOf":[{"maxLength":150,"type":"string"},{"type":"null"}],"default":null,"description":"Street and house number.","title":"Street Address"},"radius":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":5000,"description":"Search radius in metres.","title":"Radius"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":15,"description":"Maximum number of locations to return.","title":"Limit"},"hide_closed_locations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to leave out locations that are currently closed.","title":"Hide Closed Locations"}},"required":["api_host","country_code"],"title":"find_locations_by_addressArguments","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/find_locations_by_coordinates":{"post":{"operationId":"find_locations_by_coordinates","summary":"Find DHL service points, lockers and post offices near a latitude and longitude, with opening hours, distance and servic","description":"Find DHL service points, lockers and post offices near a latitude and longitude, with opening hours, distance and services. Use for \"Find DHL service points near latitude 50.73 and longitude 7.10\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"api_host":{"const":"api","description":"Fixed DHL API host label for the Location Finder: always api (api.dhl.com).","title":"Api Host","type":"string"},"latitude":{"description":"Latitude in decimal degrees.","maximum":90,"minimum":-90,"title":"Latitude","type":"number"},"longitude":{"description":"Longitude in decimal degrees.","maximum":180,"minimum":-180,"title":"Longitude","type":"number"},"country_code":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Optional two-letter country code to restrict the search.","title":"Country Code"},"radius":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":5000,"description":"Search radius in metres.","title":"Radius"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":15,"description":"Maximum number of locations to return.","title":"Limit"},"hide_closed_locations":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to leave out locations that are currently closed.","title":"Hide Closed Locations"}},"required":["api_host","latitude","longitude"],"title":"find_locations_by_coordinatesArguments","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_location":{"post":{"operationId":"get_location","summary":"Get one DHL service point or locker by its location id, with address, opening hours and services. Use for \"Show DHL loca","description":"Get one DHL service point or locker by its location id, with address, opening hours and services. Use for \"Show DHL location 8004-1234\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"api_host":{"const":"api","description":"Fixed DHL API host label for the Location Finder: always api (api.dhl.com).","title":"Api Host","type":"string"},"location_id":{"description":"DHL location id, as returned in location.ids by the search tools.","maxLength":200,"title":"Location Id","type":"string"}},"required":["api_host","location_id"],"title":"get_locationArguments","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/find_location_by_keyword_id":{"post":{"operationId":"find_location_by_keyword_id","summary":"Find the DHL location behind a keyword id (for example a Packstation number) in a country and postal code. Use for \"Whic","description":"Find the DHL location behind a keyword id (for example a Packstation number) in a country and postal code. Use for \"Which DHL location has keyword id 1234 in postal code 53113\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"api_host":{"const":"api","description":"Fixed DHL API host label for the Location Finder: always api (api.dhl.com).","title":"Api Host","type":"string"},"keyword_id":{"description":"DHL keyword id, for example a locker number.","maxLength":50,"title":"Keyword Id","type":"string"},"country_code":{"description":"Two-letter country code of the search area, for example DE.","maxLength":2,"title":"Country Code","type":"string"},"postal_code":{"description":"Postal code of the location.","maxLength":20,"title":"Postal Code","type":"string"}},"required":["api_host","keyword_id","country_code","postal_code"],"title":"find_location_by_keyword_idArguments","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}}}}