{"openapi":"3.1.0","info":{"title":"Sendcloud Network API (your keys) API","version":"0.1.0","description":"Sendcloud Network API (your keys) lets an AI assistant read your own Sendcloud Network data through the Sendcloud Network API with a key you supply (public API key). Read-only: 5 tools (list_service_points, get_service_point, list_parcel_statuses, get_carrier_transit_times, get_shipping_option_transit_times). 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-sendcloud-network.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-sendcloud-network/docs"},"termsOfService":"https://connectorbay.com/byok-sendcloud-network/terms"},"servers":[{"url":"https://byok-sendcloud-network.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-sendcloud-network/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_service_points":{"post":{"operationId":"list_service_points","summary":"Find parcel service points, lockers and post offices of a carrier near coordinates or inside a bounding box in one count","description":"Find parcel service points, lockers and post offices of a carrier near coordinates or inside a bounding box in one country, nearest first; returns the provider's JSON with id, shop type, business address, position, opening times and distance. Not paginated: use limit. Use for \"Which PostNL parcel lockers are within 1 km of latitude 51.4432, longitude 5.4816 in the Netherlands\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country_code":{"description":"Country as ISO 3166-1 alpha-2 code, for example 'NL'.","maxLength":2,"title":"Country Code","type":"string"},"carrier_code":{"description":"Carrier code, for example 'postnl', 'dhl', 'dpd' or 'ups' (one value).","maxLength":40,"title":"Carrier Code","type":"string"},"latitude":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude of the reference point (use with longitude).","title":"Latitude"},"longitude":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude of the reference point (use with latitude).","title":"Longitude"},"radius":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Only service points within this many meters of the reference point.","title":"Radius"},"ne_latitude":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"North-east corner latitude of a bounding box (give all four corners, diagonal at most 50 km; not with radius).","title":"Ne Latitude"},"ne_longitude":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"North-east corner longitude of a bounding box.","title":"Ne Longitude"},"sw_latitude":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"South-west corner latitude of a bounding box.","title":"Sw Latitude"},"sw_longitude":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"South-west corner longitude of a bounding box.","title":"Sw Longitude"},"general_shop_type":{"anyOf":[{"enum":["servicepoint","locker","post_office","carrier_depot"],"type":"string"},{"type":"null"}],"default":null,"description":"Only this kind: servicepoint, locker, post_office or carrier_depot.","title":"General Shop Type"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Maximum number of service points to return.","title":"Limit"}},"required":["country_code","carrier_code"],"title":"list_service_pointsArguments","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_service_point":{"post":{"operationId":"get_service_point","summary":"Get one service point by its Sendcloud id: carrier, shop type, business address, position, opening times and whether the","description":"Get one service point by its Sendcloud id: carrier, shop type, business address, position, opening times and whether the record is expired. Use for \"Show service point 1000001\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"service_point_id":{"description":"Sendcloud service point id (a number from list_service_points).","minimum":1,"title":"Service Point Id","type":"integer"}},"required":["service_point_id"],"title":"get_service_pointArguments","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_parcel_statuses":{"post":{"operationId":"list_parcel_statuses","summary":"List all parcel status codes Sendcloud uses, each with its numeric code and message. Use for \"What parcel statuses does ","description":"List all parcel status codes Sendcloud uses, each with its numeric code and message. Use for \"What parcel statuses does Sendcloud define\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_parcel_statusesArguments","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_carrier_transit_times":{"post":{"operationId":"get_carrier_transit_times","summary":"Aggregated transit time statistics of your own parcels per carrier (parcels count, hours and days), optionally by origin","description":"Aggregated transit time statistics of your own parcels per carrier (parcels count, hours and days), optionally by origin and destination country and date window. Use for \"How many days does PostNL take from the Netherlands to Germany on my shipments\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"carrier_code":{"description":"Carrier code, for example 'postnl' (one value).","maxLength":40,"title":"Carrier Code","type":"string"},"from_country_code":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Origin country as ISO 3166-1 alpha-2 code, for example 'NL' (one value).","title":"From Country Code"},"to_country_code":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Destination country as ISO 3166-1 alpha-2 code, for example 'DE' (one value).","title":"To Country Code"},"start_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the window, YYYY-MM-DD (default 90 days ago).","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"End of the window, YYYY-MM-DD (default today).","title":"End Date"}},"required":["carrier_code"],"title":"get_carrier_transit_timesArguments","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_shipping_option_transit_times":{"post":{"operationId":"get_shipping_option_transit_times","summary":"Aggregated transit time statistics of your own parcels per shipping option code (parcels count, hours and days), optiona","description":"Aggregated transit time statistics of your own parcels per shipping option code (parcels count, hours and days), optionally by country pair and date window. Use for \"How fast is the postnl:standard shipping option from NL to DE\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"shipping_option_code":{"description":"Shipping option code, for example 'postnl:standard' (one value).","maxLength":100,"title":"Shipping Option Code","type":"string"},"from_country_code":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Origin country as ISO 3166-1 alpha-2 code, for example 'NL' (one value).","title":"From Country Code"},"to_country_code":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Destination country as ISO 3166-1 alpha-2 code, for example 'DE' (one value).","title":"To Country Code"},"start_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Start of the window, YYYY-MM-DD (default 90 days ago).","title":"Start Date"},"end_date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"End of the window, YYYY-MM-DD (default today).","title":"End Date"}},"required":["shipping_option_code"],"title":"get_shipping_option_transit_timesArguments","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}}}}