The payroll provider moves the start date into a nested object, and two clients call your integration: your own HR app, ready today, and a benefits partner who needs a month. With EchoRelay you version the integration endpoint once, choose per API version whether it follows the change or stays where it is, and saved test calls check the change before it goes live.
Your HR app gets the new shape this afternoon. The benefits partner keeps getting exactly what it got yesterday. Nobody ships code for either.
One endpoint, numbered versions
An endpoint is the path your callers send to, with its targets (where we deliver) and its mapping (how the request is reshaped for each target). It belongs to the project, not to one API version, and it has numbered versions: v1, v2, v3.
Every change starts as a draft, and the draft is always the next number. While you edit v4, v3 keeps serving. A draft can't be attached anywhere until you publish it, so a half-finished change never reaches a caller by accident.
For the payroll change, that means one edit: open the POST /employees endpoint, move start_date into employment.start_date in the mapping, publish v4.
Each API version follows the change or stays fixed
A line is a version of your API, such as v1 or v2 (it can also split by environment or by team). Its key is the first part of your callers' path. A line holds endpoints, and you choose how each one is attached:
- Follow latest: the line picks up every endpoint version you publish.
- A fixed version: the line keeps serving, say,
v3until you change it.
Your HR app calls the internal line, which follows latest, so it gets v4 as soon as it is published. The benefits partner calls the partners line, attached at v3. Next month, when they are ready, you switch that one attachment to v4 or to follow latest. One endpoint can sit on more than one line, each with its own choice.
Lines are numbered too. Every publish of a line creates a new version (1, 2, 3), and each version switches on or off on its own. A caller who wants to stay on exactly one version puts it in the path:
https://<your-project>.echorelay.cloud/partners@2/employees
Without the @2, the request reaches the line's highest active version. A request to a version you switched off is refused, or, if you set the line that way, falls through to the highest active version. Switching an attachment changes the published line version in place, so partners@2 keeps its number and callers pinned to it get the new endpoint version. How many lines and active versions a project can hold depends on the plan; the pricing page has the numbers.
Saved test calls check the change before it goes live
Pinning protects the caller who isn't ready. Testing protects the ones who follow along.
You can save test calls on an endpoint: a sample request, the reply you expect the partner to give, and what should come out. A test checks the status or body your caller gets back, or the body your mapping sends to the partner. It runs against the reply you saved, so nothing is sent to the payroll provider while you test.
The test calls run at the two moments a change reaches a live line version:
- Publishing an endpoint version. Every active line version that follows latest runs its saved test calls against the new draft before it picks it up. Line versions fixed at an older endpoint version aren't touched.
- Switching an attachment. Moving
partnersfromv3tov4runs that line version's test calls first.
If one fails, the change is stopped. The panel lists each failure by line version, endpoint, test name and reason, for example:
partners@2 POST /employees "new hire with cost centre": outgoing body missing expected key "start_date"
Fix the draft, or choose Confirm anyway if you know the failure is expected. The override is recorded in the audit log.
The same versioning works for a support team that forwards escalations to a helpdesk: the helpdesk renames its priority field, the internal tools follow latest, and the partner portal stays on the version it was certified against.
Rotate the payroll provider's key before it expires
Versioning keeps the shape right. The other thing that breaks a partner integration on a quiet day is an expired secret.
A target credential (the payroll provider's API key, kept in the credential vault) holds a current secret and a next one. Save the new key as the next secret whenever the provider issues it. Nothing changes until you rotate.
When you rotate, EchoRelay first dry-runs every published version that delivers with that credential, using the next secret. If any of them fails, the rotation is refused, the failing target version is named, and both secrets stay as they were. If all pass, the next secret becomes current, and the old one stays valid for 7 hours so deliveries already in flight still go through.
Give the credential an expiry date and you get a notification 30, 7 and 1 days before it, naming the target versions and active lines that use it. It arrives in the panel and by email.
In the panel, the REST API or your agent
Endpoints, endpoint versions, attachments, line versions, credential rotation and expiry work the same in the panel, the REST API and the MCP tools. You add saved test calls over REST or MCP. When a change is stopped, every surface lists the failed test calls and lets you confirm anyway. An agent can publish v4, read which test failed, fix the mapping and publish again; the audit log records each draft it saves and each version it publishes, marked as coming from MCP.
The next time a partner announces a change, it is one endpoint version, tested against every API version that will receive it, and held back from every one that isn't ready. Set up your first line and endpoint, or read how lines and their numbered versions work.