Skip to main content
This guide shows you how to create a Melhor Envio app to get your OAuth credentials (client ID & secret). Production and sandbox are separate environments: create an app in each one you use, and a Nango integration for each.
1

Create a Melhor Envio account

Sign up for Melhor Envio (production) or the sandbox for testing.
2

Create an app

  1. In the Melhor Envio panel, open Integrações > Área Dev. (production, sandbox).
  2. Click Cadastrar aplicativo and fill in the app details.
  3. Set the callback URL to https://api.nango.dev/oauth/callback (or your own custom callback URL). It must match exactly, or Melhor Envio answers Client invalid.
  4. Save, then copy the Client ID and Client Secret.
3

Add the credentials in Nango

In your Melhor Envio integration in Nango, paste the client ID and secret, and add the scopes your integration needs, for example users-read, shipping-calculate and shipping-tracking.
4

Next

Follow the Quickstart.
For more details, see Melhor Envio’s authorization flow.