{"openapi":"3.1.0","info":{"title":"Envia (BYOK) API","version":"0.1.0","description":"Envia (BYOK) lets an AI assistant read your own Envia data through the Envia API with a key you supply (Envia production API token (Developer > API Keys)). Read-only: 9 tools (list_carriers_by_country, list_services, list_carriers_with_services, list_shipment_types, list_countries, list_states, list_shipments_by_month, get_shipment, list_webhook_types). The BYOK key travels with each request, is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-envia.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-envia/docs"},"termsOfService":"https://connectorbay.com/byok-envia/terms"},"servers":[{"url":"https://byok-envia.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-envia/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_carriers_by_country":{"post":{"operationId":"list_carriers_by_country","summary":"List the carriers currently active in one country, with id, name and active flag. Use for \"Which carriers can I use in M","description":"List the carriers currently active in one country, with id, name and active flag. Use for \"Which carriers can I use in Mexico with Envia\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country_code":{"description":"Two-letter country code, for example MX, US, CO, CL, BR, CA or ES.","maxLength":2,"title":"Country Code","type":"string"}},"required":["country_code"],"title":"list_carriers_by_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_services":{"post":{"operationId":"list_services","summary":"List shipping service levels of a country, optionally for one carrier. Use for \"Which FedEx services does Envia offer in","description":"List shipping service levels of a country, optionally for one carrier. Use for \"Which FedEx services does Envia offer in Mexico\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country_code":{"description":"Two-letter country code, for example MX, US, CO, CL, BR, CA or ES.","maxLength":2,"title":"Country Code","type":"string"},"carrier":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Carrier name as returned by the carriers list, for example fedex.","title":"Carrier"}},"required":["country_code"],"title":"list_servicesArguments","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_carriers_with_services":{"post":{"operationId":"list_carriers_with_services","summary":"List carriers available for a country, domestic or international flag and shipment type. Use for \"Which carriers handle ","description":"List carriers available for a country, domestic or international flag and shipment type. Use for \"Which carriers handle international parcels from the US\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country":{"description":"Two-letter country code.","enum":["MX","US","CA","CO","CL","BR","GT","AR","ES","IN","FR","IT"],"title":"Country","type":"string"},"international":{"description":"0 for domestic, 1 for international shipments.","enum":["0","1"],"title":"International","type":"string"},"shipment_type_id":{"description":"Shipment type: 1 parcel, 2 freight (LTL), 3 full truck load.","enum":[1,2,3],"title":"Shipment Type Id","type":"integer"}},"required":["country","international","shipment_type_id"],"title":"list_carriers_with_servicesArguments","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_types":{"post":{"operationId":"list_shipment_types","summary":"List the shipment types Envia supports (parcel, freight and full truck load). Use for \"What shipment types does Envia su","description":"List the shipment types Envia supports (parcel, freight and full truck load). Use for \"What shipment types does Envia support\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_shipment_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_countries":{"post":{"operationId":"list_countries","summary":"List the countries you can ship from with Envia, with code, name and currency. Use for \"Which countries does Envia ship ","description":"List the countries you can ship from with Envia, with code, name and currency. Use for \"Which countries does Envia ship from\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"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/list_states":{"post":{"operationId":"list_states","summary":"List the states or provinces of a country with their 2 and 3 character codes. Use for \"What are the state codes for Mexi","description":"List the states or provinces of a country with their 2 and 3 character codes. Use for \"What are the state codes for Mexico in Envia\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country_code":{"description":"Two-letter country code, for example MX, US, CO, CL, BR, CA or ES.","maxLength":2,"title":"Country Code","type":"string"}},"required":["country_code"],"title":"list_statesArguments","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_shipments_by_month":{"post":{"operationId":"list_shipments_by_month","summary":"List the shipments created in your account in one calendar month with tracking number, carrier, status and creation date","description":"List the shipments created in your account in one calendar month with tracking number, carrier, status and creation date. Use for \"Which shipments did I create in September 2026 on Envia\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"month":{"description":"Month as two digits, 01 to 12.","maxLength":200,"title":"Month","type":"string"},"year":{"description":"Year as four digits.","maxLength":200,"title":"Year","type":"string"}},"required":["month","year"],"title":"list_shipments_by_monthArguments","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 by tracking number with carrier, status and dates. Origin and destination addresses are not returned. U","description":"Get one shipment by tracking number with carrier, status and dates. Origin and destination addresses are not returned. Use for \"What is the status of Envia shipment 794644790138\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"tracking_number":{"description":"Shipment tracking number.","maxLength":200,"title":"Tracking Number","type":"string"}},"required":["tracking_number"],"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_webhook_types":{"post":{"operationId":"list_webhook_types","summary":"List the webhook event types Envia can send. Use for \"Which webhook events does Envia offer\".","description":"List the webhook event types Envia can send. Use for \"Which webhook events does Envia offer\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_webhook_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}}}}