{"openapi":"3.1.0","info":{"title":"Shipwell (BYOK) API","version":"0.1.0","description":"Shipwell (BYOK) lets an AI assistant read your own Shipwell data through the Shipwell API with a key you supply (Shipwell user token (the value after 'Token ')). Read-only: 12 tools (list_shipments, get_shipment, list_shipment_stops, get_shipment_tracking, list_shipment_timeline_events, search_carriers, list_power_units, list_trailers, get_fleet_locations, list_customers, list_equipment_types,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-shipwell.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-shipwell/docs"},"termsOfService":"https://connectorbay.com/byok-shipwell/terms"},"servers":[{"url":"https://byok-shipwell.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-shipwell/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_shipments":{"post":{"operationId":"list_shipments","summary":"List shipments visible to the account, newest activity first by default, with reference numbers, state, delay flag, plan","description":"List shipments visible to the account, newest activity first by default, with reference numbers, state, delay flag, planned delivery, distance and customer name. Filter by text, status text, mode, equipment, dates or customer name. Use for \"Which shipments are in transit or delayed right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Free-text search over shipments.","title":"Q"},"status_contains":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only shipments whose status contains this text, for example transit or delivered.","title":"Status Contains"},"open":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True for open shipments only, false for closed ones.","title":"Open"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to list archived shipments, false to exclude them.","title":"Archived"},"time_frame":{"anyOf":[{"enum":["current","upcoming","active","past"],"type":"string"},{"type":"null"}],"default":null,"description":"Limit to current, upcoming, active (current plus upcoming) or past shipments.","title":"Time Frame"},"customer_contains":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"Only shipments whose customer company name contains this text.","title":"Customer Contains"},"pickup_from":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only shipments with a pickup planned on or after this ISO 8601 date or time.","title":"Pickup From"},"pickup_to":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only shipments with a pickup planned on or before this ISO 8601 date or time.","title":"Pickup To"},"updated_since":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only shipments updated on or after this ISO 8601 time.","title":"Updated Since"},"ordering":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Sort column; prefix with - for descending, for example -created_at.","title":"Ordering"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Items per page (1 to 100; the maximum is not documented, keep it modest).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_shipmentsArguments","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_shipment":{"post":{"operationId":"get_shipment","summary":"Get one shipment: reference numbers, state, delay flag, planned delivery, trip miles, customer name, equipment type, can","description":"Get one shipment: reference numbers, state, delay flag, planned delivery, trip miles, customer name, equipment type, cancellation reason and the latest reported address (city and region). Use for \"Give me the details of this Shipwell shipment\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"shipment_id":{"description":"Shipwell shipment id (UUID), as returned by list_shipments.","maxLength":64,"title":"Shipment Id","type":"string"}},"required":["shipment_id"],"title":"get_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/list_shipment_stops":{"post":{"operationId":"list_shipment_stops","summary":"List a shipment's stops in order with pickup or drop-off flag, status, planned date and time window, confirmed arrival a","description":"List a shipment's stops in order with pickup or drop-off flag, status, planned date and time window, confirmed arrival and departure and the facility name and city. Contact people and notes are not returned. Use for \"When is each stop of this shipment planned and has the truck arrived\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"shipment_id":{"description":"Shipwell shipment id (UUID), as returned by list_shipments.","maxLength":64,"title":"Shipment Id","type":"string"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Items per page (1 to 100; the maximum is not documented, keep it modest).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["shipment_id"],"title":"list_shipment_stopsArguments","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_shipment_tracking":{"post":{"operationId":"get_shipment_tracking","summary":"Get the reported positions of the truck or device on a shipment between two times, with speed, odometer and event descri","description":"Get the reported positions of the truck or device on a shipment between two times, with speed, odometer and event description, plus the tracking status and source. Positions of a company asset on a load only. Use for \"Where is this shipment right now and is it being tracked\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"shipment_id":{"description":"Shipwell shipment id (UUID), as returned by list_shipments.","maxLength":64,"title":"Shipment Id","type":"string"},"begin_datetime":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only positions from this ISO 8601 time.","title":"Begin Datetime"},"end_datetime":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only positions up to this ISO 8601 time.","title":"End Datetime"},"filter_distance":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Only return points more than this many km apart; -1 returns all points.","title":"Filter Distance"}},"required":["shipment_id"],"title":"get_shipment_trackingArguments","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_shipment_timeline_events":{"post":{"operationId":"list_shipment_timeline_events","summary":"List the status history of a shipment: event type and sub type, description, source and times, newest page first as the ","description":"List the status history of a shipment: event type and sub type, description, source and times, newest page first as the API orders them. Use for \"What has happened on this shipment so far\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"shipment_id":{"description":"Shipwell shipment id (UUID), as returned by list_shipments.","maxLength":64,"title":"Shipment Id","type":"string"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Items per page (1 to 100; the maximum is not documented, keep it modest).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["shipment_id"],"title":"list_shipment_timeline_eventsArguments","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_carriers":{"post":{"operationId":"search_carriers","summary":"Search carriers by name, DOT or MC text and return legal name, DBA name, USDOT and MC numbers, active flag and the busin","description":"Search carriers by name, DOT or MC text and return legal name, DBA name, USDOT and MC numbers, active flag and the business address (not a home address). Use for \"Find the carrier named Swift and its USDOT number\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Search text such as a carrier name, USDOT or MC number.","maxLength":100,"title":"Q","type":"string"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Items per page (1 to 100; the maximum is not documented, keep it modest).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["q"],"title":"search_carriersArguments","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_power_units":{"post":{"operationId":"list_power_units","summary":"List a carrier's power units (tractors) with name, make, model, VIN, status, odometer distance, data provider and last d","description":"List a carrier's power units (tractors) with name, make, model, VIN, status, odometer distance, data provider and last data report. Filter by name or status. Use for \"List my active trucks and when each last reported\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"carrier_id":{"description":"Shipwell carrier id (UUID) of the carrier company whose fleet to read; the id comes from the carrier record or shipment equipment.","maxLength":64,"title":"Carrier Id","type":"string"},"name_contains":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only power units whose name contains this text.","title":"Name Contains"},"status":{"anyOf":[{"enum":["Active","Inactive"],"type":"string"},{"type":"null"}],"default":null,"description":"Active or Inactive.","title":"Status"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Items per page (1 to 100; the maximum is not documented, keep it modest).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["carrier_id"],"title":"list_power_unitsArguments","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_trailers":{"post":{"operationId":"list_trailers","summary":"List a carrier's trailers with name, equipment type, capacity limits and odometer distance. Use for \"How many trailers d","description":"List a carrier's trailers with name, equipment type, capacity limits and odometer distance. Use for \"How many trailers does my carrier have and what are their capacities\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"carrier_id":{"description":"Shipwell carrier id (UUID) of the carrier company whose fleet to read; the id comes from the carrier record or shipment equipment.","maxLength":64,"title":"Carrier Id","type":"string"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Items per page (1 to 100; the maximum is not documented, keep it modest).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["carrier_id"],"title":"list_trailersArguments","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_fleet_locations":{"post":{"operationId":"get_fleet_locations","summary":"Get the most recently reported location of each of a carrier's ELD-connected power units: unit id, position, speed, odom","description":"Get the most recently reported location of each of a carrier's ELD-connected power units: unit id, position, speed, odometer, event and report time. Last known position of company vehicles only. Use for \"Where are my trucks right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"carrier_id":{"description":"Shipwell carrier id (UUID) of the carrier company whose fleet to read; the id comes from the carrier record or shipment equipment.","maxLength":64,"title":"Carrier Id","type":"string"}},"required":["carrier_id"],"title":"get_fleet_locationsArguments","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_customers":{"post":{"operationId":"list_customers","summary":"List the customers (shippers) in the account with name, external id and dates. Billing contacts are not returned. Use fo","description":"List the customers (shippers) in the account with name, external id and dates. Billing contacts are not returned. Use for \"Which customers are set up in Shipwell\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Search text over customers.","title":"Q"},"name":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Exact customer name.","title":"Name"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Items per page (1 to 100; the maximum is not documented, keep it modest).","title":"Page Size"},"page":{"anyOf":[{"maximum":10000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_customersArguments","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_equipment_types":{"post":{"operationId":"list_equipment_types","summary":"List all equipment types the API supports (for example dry van, reefer, flatbed) with id and machine-readable name. Use ","description":"List all equipment types the API supports (for example dry van, reefer, flatbed) with id and machine-readable name. Use for \"What equipment types does Shipwell support\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_equipment_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/list_service_levels":{"post":{"operationId":"list_service_levels","summary":"List all shipment service levels the API supports with id, code and description. Use for \"What service levels can a Ship","description":"List all shipment service levels the API supports with id, code and description. Use for \"What service levels can a Shipwell shipment have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_service_levelsArguments","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}}}}