What's Covered by the API Contract

What we keep stable, what can change, and how much notice you get.

If you are going to build a business on this API, you need to know which parts we will not move under your feet. This page says exactly that.

The contract is what's documented

Every operation published in this documentation is part of the API contract. We commit to keeping it working as described.

Anything not published here is internal, even if you can reach it with your token. Our services expose far more endpoints than we document — they power our own web platform — and those can change or disappear at any time, without notice and without appearing in the changelog.

If you found an endpoint by inspecting network traffic on the platform, it is not part of the contract. Using it is not forbidden, but nothing protects you when it changes.

If something you need is missing from these pages, tell us. Promoting an internal endpoint into the contract is a conversation we want to have — discovering you depended on one after we broke it is not.

What counts as a breaking change

These we will not do without notice:

  • Removing an operation, a field from a response, or an accepted parameter
  • Renaming anything
  • Making an optional request field required
  • Narrowing what a field accepts — a shorter maximum, a smaller enum, a stricter format
  • Changing the type of a field
  • Changing the meaning of an existing value
  • Changing an HTTP status or error code for a case that already worked

What we may change without notice

These we consider safe, and your integration must tolerate them:

  • Adding fields to a response. This is the most common change we make
  • Adding optional request parameters
  • Adding a new value to an enum in a response
  • Adding new operations, or a new error code for a genuinely new failure
  • Changing the wording of error.message — see Errors

Unknown query parameters are usually rejected, not ignored

On most Management API operations, a parameter that is not in the operation's contract fails the request:

{ "statusCode": 400, "error": "Bad Request", "message": "Invalid request query input" }

Many APIs ignore parameters they don't recognize. This one rejects them.

It is not universal. An operation that declares no query parameters at all validates nothing, and will accept and ignore anything you send. You cannot tell which is which from the outside, and we do not recommend finding out by experiment.

Two consequences:

  • Don't send parameters "just in case". A limit on an operation that does not paginate is a 400 on most operations, and silently does nothing on the rest. Neither is what you wanted
  • When we add a parameter, it is additive and safe — your existing calls keep working, because you were not sending it

See Errors for which status code you get, and why it is not always the same one.

How to build so these don't break you

DoDon't
Ignore fields you don't recognizeFail validation on unexpected fields
Branch on error.code familiesMatch on error.message text — it changes and arrives in several languages
Read identifiers from our catalog endpointsHard-code carrier, service or package-type ids
Handle a new enum value as "unknown"Assume the enum is closed

Versioning, honestly

The version in a path (/v4/orders) means a new shape of that resource, not a new release of the API as a whole. Different resources sit at different versions, and most have no version in the path at all.

Where several versions exist, the documented one is the one to build against. Orders is the clearest case: /orders, /orders-v2 and /v3/orders are still reachable, but the documented and maintained one today is /v4/orders. The older ones receive no new fields and no fixes.

We are not going to pretend this is tidier than it is. What we do commit to:

  • New resources get no version in the path until they need one
  • A new version appears only for a breaking change that cannot be made additively
  • The documentation always says which version to use
  • A new version does not deprecate the previous one by itself

That last point matters more than it sounds. When a new version of a resource appears, the one you are on keeps working exactly as documented. It is not deprecated until we say so, in the changelog, with a date — and then the notice period below applies from that announcement.

You are never obliged to migrate on our schedule because something newer exists. Migrate when the new version gives you something you want.

Deprecation

When an operation is going away:

  1. It is marked deprecated in this documentation, with what to use instead
  2. It is announced in the Changelog
  3. It keeps working for at least three months from that announcement
  4. Only then is it removed

Deprecated does not mean broken. It means we have stopped adding to it and you should plan the move.

Three months is the floor, not the target. Where a change affects many integrations we give longer, and the changelog entry always states the actual removal date rather than leaving you to count.

One exception. If something has to be withdrawn faster — a security vulnerability, or a legal or carrier obligation outside our control — we will say so explicitly, say why, and give you as much notice as the situation allows. We will not use this to save ourselves work.

Sandbox is different. api-test.envia.com and queries.test.envia.com are where we try things. They can change faster and with less notice. Do not treat sandbox behavior as a contract.

How you find out

ChangelogEvery change to the contract
This documentationAlways reflects what is live in production
SupportIf something here does not match what you observe, that is a bug and we want to hear about it

If the documentation and the API disagree, the API is right and the documentation is wrong — tell us and we will fix the page.

Next steps


Did this page help you?