The Management API
Look up what you need before you ship, and review what happened after: addresses, carriers, shipments and logs.
Overview
The Management API covers what happens around a shipment: look up what you need before you ship — address rules, postal codes, the carriers and services for a route — and review what happened after: shipments, pickups and logs. The Shipping API creates the shipments; this one discovers, validates and monitors.
What you can do with the Management API
-
Address Structure Discovery
- Get address structure requirements and validation rules for different countries.
- Discover required fields, data types, and formatting rules to build country-specific address forms.
-
Carrier & Service Availability
- See which carriers/services are available per country/region/ZIP.
- Explore service constraints (e.g., supported package types, size/weight ranges) to guide checkout choices.
-
Account Resources
- List shops/e-commerce connections, webhooks, payment/invoice references, and other configuration you’ll use across environments and stores.
-
Shipments & Pickups (Read-only)
- Fetch shipment lists/history and pickup logs for analytics, reconciliation, and customer support tooling.
-
Reference Data for UX
- Countries, states, cities, serviceable areas—everything you need to power autocompletes and selectors in your app.
What you can do
See which carriers and services are available per country, region, or postal code. Explore service constraints to guide checkout choices.
Get address structure requirements and validation rules for different countries. Discover required fields and formatting rules to build country-specific address forms.
Retrieve complete lists of countries, states, and cities. Everything you need to power autocompletes and selectors in your app.
Retrieve available services filtered by country, international status, and shipment type. Explore service constraints and supported package types.
Fetch shipment lists, history, and detailed information for analytics, reconciliation, and customer support tooling.
Create and configure webhooks for your account. List webhooks and manage notification settings across environments and stores.
Retrieve a list of all saved package profiles. Manage package configurations you'll use across shipments.
Generate and cancel DC-e (Declaração de Conteúdo Eletrônica) documents for non-commercial domestic shipments within Brazil.
Download shipping labels for multiple shipments at once. Returns a merged PDF or a ZIP archive depending on label formats.
Environments & Authentication
- Production:
https://queries.envia.com/ - Sandbox/Test:
https://queries.test.envia.com/
Auth: Same Bearer token you use for the Shipping API. Generate and manage tokens in the Envia dashboard, under Developers — sandbox · production. Include it in every request via Authorization: Bearer <token>.
When to call Management vs. Shipping
- Use Management when you need to know something (validate, discover, list, or inspect).
- Use Shipping when you need to do something (rate, label, track, pickup, cancel).
A typical flow:
- Validate Address (Geocodes): validate postal code → locate city if needed.
- Discover options (Management): check available carriers and services, and get the address structure for the country.
- Execute (Shipping): request rates → choose service → create label → schedule pickup.
- Monitor (Management and Shipping): fetch shipment and pickup logs and statuses for dashboards or customer support.
Questions about your integration? Open a support ticket.
Next steps
Updated 18 days ago