Melhor Envio API: what you can do and how to use it with AI agents
Melhor Envio is a Brazilian shipping platform. Its API lets you quote shipping across several carriers, buy and generate labels, and follow shipments. Online stores and e-commerce platforms that want to automate dispatch use it. Access is through an app with OAuth 2.0, and a sandbox environment exists for testing.
What the Melhor Envio API offers
Shipping quote
Price and delivery time from several carriers for a postal code, weight and dimensions.
Shipment cart
Add the shipments to be purchased, with sender, recipient and packages.
Purchase and labels
Pay for shipping with the account balance, then generate and print labels.
Tracking
Status and events of each shipment.
Agencies and carriers
Drop-off points and available services.
Webhooks
Notices of shipment status changes.
How to access the Melhor Envio API
- With your company’s credentialsOAuth 2.0 with an app registered in Melhor Envio. The store account authorizes the scopes and the token is renewed periodically.
- Buying shipping uses real balance: keep approval or a value cap per batch.
- Use the sandbox to test before you authorize the production account.
- Customer addresses are personal data: restrict access to those who need it (LGPD, Brazil's data-protection law).
Official documentation: docs.melhorenvio.com.br
What an iTeam agent does with the Melhor Envio API
Today's labels without typing
Paid orders go into the Melhor Envio cart with the service chosen by the agent. The owner approves the batch and the labels come out ready.
Shipping for a non-standard order
For a large volume or a remote postal code, the agent quotes the carriers and gives the seller the options with delivery time and price.
Wallet balance running low
The agent watches the balance used to pay for shipping and warns finance before dispatch is blocked.
Customer asking about delivery
The agent looks up the shipment's tracking and replies on WhatsApp with the latest event and the estimated date.
From the credential to the agent at work, with approval
Create the app and test in the sandbox
Register the app in Melhor Envio, validate the flows in the test environment and then authorize the production account.
Register the authorization in the iTeam vault
The support agent only looks up tracking. The dispatch agent quotes and builds the cart.
Purchase with approval
Paying for shipping and generating labels go through human approval at the start.
Ready-made AI teams that use Melhor Envio
Questions about the Melhor Envio API
Is the Melhor Envio API free?
Generally yes: the integration has no cost of its own, and you pay for the shipping bought with the account balance.
Do I need to code to use the Melhor Envio API with iTeam?
Not necessarily. iTeam's HTTP tool reads the documentation and the deployment team sets up the flows.
Is there a test environment?
Yes, Melhor Envio offers a sandbox to test quotes and labels at no real cost.