Lines¶
A line is a version of your API, such as v1 or v2. It groups your endpoints under one
key, and that key is the first part of the path your callers use:
https://<your-project>.echorelay.cloud/v1/<endpoint>. Open Lines in the project menu to
add one, change what it serves, or publish a new version of it.
You don't have to use lines for versions. They work just as well to split by environment or by team.
What the page shows¶
The list shows each line's key and name, its base URL, whether it is active, how many endpoints it has, and a dot when it has unpublished changes.
Open a line to see:
- Base URL for this line, the address its endpoints answer on.
- Documentation sharing, which sets who can read the line's generated docs: only people in the project, anyone with a link you can replace, or anyone.
- Duplicate, which copies the line to a new key. The copy starts off, so you can build
v2beside a livev1. - Publishing. Changes to endpoints collect in a draft. Publish draft creates a new numbered version, Discard draft throws the draft away, and a scheduled publish can be cancelled before it runs.
- Rollback. Restore an older published version as a new numbered version, or switch the newest version off to return traffic to an older active version.
- Endpoints, where you add one, import them from an OpenAPI document, or edit their targets and mapping.
To compare a draft with what is live before you publish, open Config diff.
Numbered versions¶
Every publish creates a new numbered version (1, 2, 3, ...). Each version can be switched
on or off on its own.
- Callers reach a specific active version at
/<line>@<number>/<endpoint>, or call/<line>/<endpoint>to reach the highest active version. - Publishing turns the new version on when your plan has room under its active-version and active-line limits. When a limit is full, the new version is published off with a notice and your running versions stay untouched.
- Requests to a switched-off version return an error by default, or fall through to the highest active version when the line is configured to do so.
Limits¶
How many active lines, active versions per line, and endpoints a project can hold depends on your plan; the pricing page has the current numbers.
When it fails¶
- A request to a line or version that is switched off, or to a key no line has, is refused unless the line's off-version setting routes off versions to the latest active version. Check the line key and version number in the request path against the list.
- "This draft changed since you loaded the page. Refresh and try again." Someone else, or one of your agents, changed the same draft. Reload, check their change, and publish again.
- "The published revision changed since this rollback was previewed. Re-check the diff before confirming." Something was published after you opened the rollback. Nothing was changed; open the rollback again and check the new diff.
- Switching a version on is refused when the line already has as many active versions, or the project already has as many active lines, as your plan allows. Switch another version off in the same step, or move to a plan with more.
- Deleting a line is refused while any version of that line is active. Switch off all active versions first.
What it costs¶
Nothing. Lines, drafts, publishing and rollback cost no credits; only deliveries do, as Credits & billing describes.
Try it¶
List your lines and their endpoint counts with a project management token:
export ECHORELAY_MANAGEMENT_TOKEN='er_mcp_…'
curl -sS "https://api.echorelay.dev/lines" \
-H "Authorization: Bearer $ECHORELAY_MANAGEMENT_TOKEN"
Over MCP the same list is the list_lines tool; config_diff compares a draft with what is
live.