API
Deployments
You bring a git repository and one elan.yaml; these routes are how you ship it without the CLI. Deploying is ASYNCHRONOUS — every one of them answers in milliseconds and the work takes minutes.
202 means accepted, not deployed
This is the one thing to get right. A deploy walks ten phases — validate, build, scan, crosscheck, sign, provision, render, commit, sync, verify — and reports its outcome only through the read route. A caller that treats the 202 as success has shipped nothing and knows nothing about whether it worked.
Poll until state is terminal: succeeded, failed or refused
running is the only non-terminal value. A deploy is typically a few minutes and can legitimately be much longer — the build alone is allowed 30 minutes, and each rollout wave is given its own budget — so give your poll loop a generous ceiling and no fixed expectation.
A deploy of an unchanged target does nothing to it
The platform computes a blast radius from the diff: a target nobody touched keeps the digest it is already running, and the whole project moves only for a change to something they share. So deploying on every commit is cheap and safe.
One deploy per project, and a second is refused rather than queued
409 with the id of the one in flight. Queueing behind a ten-minute build is rarely what anybody wants, and the later deploy usually supersedes the earlier — so the choice is yours: poll it, or wait and resubmit.
A project scope guards the writes, not the reads
Deploying and rolling back carry the project in their path, so a credential issued for one project is refused with 403 for any other. The three read routes — the list, one deployment and its build log — check only the tenant: a scoped credential can read every project's deployments and logs, and project on the list narrows the answer rather than authorizing it.
Deploying needs no admin role
Any credential in the tenant can deploy and roll back, including a service user without Can write. Issue deploy credentials only to the systems that should be able to ship.
The samples use $API and $TOKEN, which the API overview sets.
Deploy a project
POST/v1/projects/{project}/deploymentsdeploy-service
Submits an elan.yaml and a resolved commit. Answers 202 with a deployment id, then builds, scans, signs, provisions and rolls out in the background.
The FILE travels, not a path to it
spec_yaml is the contents of elan.yaml. The platform never clones to read your config — it clones to build, by which point the config has already been validated.
ref must be a resolved 40-character sha
A branch name would make the deployment unreproducible. elan deploy resolves the branch and rewrites it into elan.yaml before submitting, so the file alone describes what ran. Do the same from your own CI.
Unknown fields are refused
The body is strict. A typo'd key is a 422 rather than a value silently ignored — which on a deploy would mean shipping something other than what you asked for.
One deploy per project at a time
A second deploy of the same project is REFUSED with 409, never queued, and the body names the one already running so you can poll it instead. Two concurrent deploys would race the config repo and each other's digests. Different projects deploy concurrently.
curl -X POST "$API/v1/projects/salmon/deployments" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "$(jq -n --rawfile spec elan.yaml \
--arg ref "$(git rev-parse HEAD)" \
'{spec_yaml: $spec, ref: $ref}')"Body
| Field | Type | Description | |
|---|---|---|---|
| spec_yaml | string | required | The contents of elan.yaml. |
| ref | string | required | The resolved 40-character commit sha to build. |
Responses
| Status | Meaning |
|---|---|
| 202 | Accepted — NOT deployed. Carries deployment_id; poll it. |
| 401 | No token, or one that did not verify. |
| 403 | A credential scoped to another project. |
| 409 | A deployment of this project is already running. Carries its deployment_id. |
| 422 | Refused before anything was built — {state: "refused", problems}, each with where and message, including an unpaid balance. Or a body with a missing or unknown field, named in problems. |
| 503 | This deploy service has no pipeline configured. |
Response body
{
"deployment_id": "dep_b6a540abdb18482e",
"state": "running"
}Read a deployment
GET/v1/deployments/{deployment_id}deploy-service
The whole record: which phase it is in, what every target is running afterwards, what the vulnerability scan saw, and why it failed.
THIS is where the outcome lives
The submit route's 202 says only that the work was accepted. Poll here until state is one of succeeded, failed or refused — running is the only non-terminal value.
refused and failed are different, and the difference is whose fault it is
refused means something you can fix — a crosscheck problem, an unbumped version, an unpaid balance — and nothing was provisioned, so it carries problems[]. failed means the platform broke partway, and it carries error plus needs_teardown.
needs_teardown is the one field to act on
True when a FAILED deploy had already created tenant resources — a database, a topic, a commit in the config repo. It is always false for a refusal, because a refusal happens before any of that.
scan.completed: false is not a pass, and it is not a refusal
The deploy continues and the image is recorded unscanned, with incomplete_reason saying why — the scanner was unreachable, its vulnerability database was stale, or the image crashed it. Only a FIXABLE finding at a blocking severity refuses a deploy. scanner names who scanned and db_updated_at how current its database was.
links are deep links, not console paths
links.console opens this deployment and links.scan its Scan tab; links.playground opens the project's Playground, links.playground_targets the Playground on each target this deploy rolled out, and links.quickstart the guide to calling an agent from an app. They are resolved by the console when followed, so a link printed or stored today keeps working if the console's pages move. Empty when the platform has no console configured.
rollout lists every target, including the ones that did not move
It is a map of slug to the digest that target runs AFTER this deploy. An untouched agent appears with the digest it already had, because "what is my agent running" is the question people actually ask.
A repo with MCP servers builds two images
digest and scan are the agents' image; mcp_digest and mcp_scan are the MCP servers' image, built and scanned beside it. A target moved when its rollout digest is either of the two. A repo with no MCP servers has mcp_digest empty and mcp_scan null.
curl "$API/v1/deployments/dep_b6a540abdb18482e" \
-H "Authorization: Bearer $TOKEN"Responses
| Status | Meaning |
|---|---|
| 200 | The record. |
| 401 | No token, or one that did not verify. |
| 403 | The deployment belongs to another tenant. Another project of your own tenant is served, whatever the credential's scope. |
| 404 | No such deployment. |
Response body
{
"deployment_id": "dep_b6a540abdb18482e",
"state": "succeeded",
"phase": "verify",
"completed": ["validate", "build", "scan", "crosscheck", "sign",
"provision", "render", "commit", "sync", "verify"],
"digest": "...@sha256:e794e7...",
"rollout": {"hotel-concierge": "...@sha256:e794e7...",
"event-planner": "...@sha256:a1b2c3..."},
"waves": [["hotel-concierge"], ["event-planner"]],
"scan": {"completed": true, "incomplete_reason": "",
"scanner": "trivy",
"db_updated_at": "2026-11-14T06:12:48Z",
"counts": {}, "findings": []},
"mcp_digest": "",
"mcp_scan": null,
"problems": [],
"error": "",
"needs_teardown": false,
"links": {"console": "https://<console>/deep-link?k=deployment&...",
"scan": "https://<console>/deep-link?k=deployment_scan&..."}
}List deployments
GET/v1/deploymentsdeploy-service
This tenant's deployment history, newest first, as a summary per row rather than the whole record.
Which tenant is not a parameter
project narrows WITHIN your own tenant and limit bounds the page; neither can widen the scope, because the scope comes from the token's claim rather than from the request.
total travels with the page
So a pager can say "of 9" and disable a button, rather than discovering the end by turning to an empty page.
A summary, not the record
moved is how many targets took this deploy's digest and targets is how many there are; the map itself is on the read route. Sending every rollout map for fifty deployments to draw a list is a page that gets slower as you succeed.
curl "$API/v1/deployments?project=salmon&limit=20" \
-H "Authorization: Bearer $TOKEN"Parameters
| Field | Type | Description | |
|---|---|---|---|
| project | query string | optional | Narrow to one project. Omitted, every project of this tenant — including for a project-scoped credential. |
| limit | query int | optional | Page size, default 50, capped at 200. |
| offset | query int | optional | Rows to skip, default 0. |
Responses
| Status | Meaning |
|---|---|
| 200 | A page of summaries plus the total. |
| 401 | No token, or one that did not verify. |
| 422 | A project that could not be a project slug. |
| 503 | No store configured. |
Response body
{
"total": 9,
"limit": 50,
"offset": 0,
"deployments": [{
"deployment_id": "dep_b6a540abdb18482e",
"project": "salmon",
"ref": "6f1c0a9e00000000000000000000000000000000",
"state": "succeeded",
"phase": "verify",
"digest": "...@sha256:e794e7...",
"moved": 1,
"targets": 3,
"started_at": "2026-10-23T13:06:05.254220+00:00",
"error": ""
}]
}Read the build log
GET/v1/deployments/{deployment_id}/logsdeploy-service
The build's own output, served to the tenant who owns the deployment.
Why this route exists at all
A failed build reports a log URL pointing at the build console in the PLATFORM's cloud project, which you cannot open. Without this, the one actionable part of a build failure was a link that answered "permission denied".
An empty log is not an error
A deploy refused at validate never started a build, and one from before the platform recorded build ids has none kept. Both answer 200 with an empty log and a note saying so, because reporting them as a failure to fetch would send you looking for the wrong thing.
curl "$API/v1/deployments/dep_b6a540abdb18482e/logs" \
-H "Authorization: Bearer $TOKEN" | jq -r .logResponses
| Status | Meaning |
|---|---|
| 200 | The log, or an empty one with a note. |
| 401 | No token, or one that did not verify. |
| 404 | No such deployment, or another tenant's. Another project of your own tenant is served, whatever the credential's scope. |
| 502 | The log could not be read. |
| 503 | This deploy service has no logging credential. |
Response body
{
"deployment_id": "dep_b6a540abdb18482e",
"build_id": "b684b74c-c6b2-4e87-8b56-f52b57f64694",
"log": "Step #0: ...\nStep #1: ..."
}Roll a project back
POST/v1/projects/{project}/rollbackdeploy-service
Puts a project back the way a previous SUCCEEDED deploy left it. No build, no scan, no re-signing — which is what makes it fast enough to reach for during an incident.
You name a DEPLOYMENT, not a digest and not a ref
A digest names one image and a project has several. A ref names a commit in your repository, which may have been force-pushed or deleted. A deployment id names a state this project was actually in.
It restores configuration as well as code
The deploy unit is (digest, slug), so moving digests alone would restore the CODE and leave whatever the bad deploy changed about egress, secrets or scaling in place — the half nobody expects, discovered when the rollback does not fix the problem. The old elan.yaml is replayed too.
It takes the project's lease like any deploy
So it is refused with 409 while another deploy of that project is in flight, and it is itself a deployment you poll on the read route.
curl -X POST "$API/v1/projects/salmon/rollback" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"to_deployment_id": "dep_b6a540abdb18482e"}'Body
| Field | Type | Description | |
|---|---|---|---|
| to_deployment_id | string | required | The succeeded deployment of THIS project to restore. |
Responses
| Status | Meaning |
|---|---|
| 202 | Accepted. Carries a NEW deployment_id plus rolled_back_to. |
| 401 | No token, or one that did not verify. |
| 403 | A credential scoped to another project. No admin role is needed. |
| 404 | No such deployment, or another tenant's — 404 rather than 403, so an id does not leak. |
| 409 | It belongs to another project, did not succeed, recorded no targets, predates the stored spec, or names an image that no longer exists (listed in missing_images) — or a deploy is already running. |
| 503 | This deploy service has no pipeline configured. |
Response body
{
"deployment_id": "dep_7c1e03aa94b5f218",
"state": "running",
"rolled_back_to": "dep_b6a540abdb18482e"
}Read the re-scan schedule
GET/v1/projects/{project}/scan-scheduledeploy-service
How often this project's running images are scanned again, when the next one is due and about how many scans a month that is.
Every time and estimate is the platform's
next_run is the earliest moment one of the project's images becomes due; an hourly job scans it within the hour after, and next_run_is_due says when that moment has passed. estimated_scans_per_month counts one scan per IMAGE, however many agents run it.
curl "$API/v1/projects/salmon/scan-schedule" -H "Authorization: Bearer $TOKEN"Responses
| Status | Meaning |
|---|---|
| 200 | The schedule, off if none was set. |
| 401 | No token, or one that did not verify. |
| 403 | A credential issued for another project. |
| 503 | This deploy service has no store configured. |
Response body
{
"schedule": "interval",
"interval_days": 14,
"label": "Every 14 days",
"choices": ["off", "daily", "weekly", "monthly", "interval"],
"interval_bounds": {"min": 1, "max": 90},
"images": 1,
"last_run": "2026-11-15T00:15:02+00:00",
"next_run": "2026-11-29T00:15:02+00:00",
"next_run_is_due": false,
"estimated_scans_per_month": 2.2,
"updated_by": "u_8c1f",
"updated_at": "2026-11-15T09:41:00+00:00",
"links": {"security": "https://<console>/deep-link?k=project_security&project=salmon"}
}Set the re-scan schedule
PUT/v1/projects/{project}/scan-scheduledeploy-service
Off, daily, weekly, monthly, or every N days. Answers with the same body the read returns, estimate included.
Slots are midnight UTC, and a missed one is caught up
Daily is due at 00:00 UTC, weekly on Sunday, monthly on the 1st. An image is due once its newest completed scan, a deploy's included, is older than the most recent slot, so a scan the job missed runs at its next hourly run rather than a period late. Every N days counts from the image's own last scan.
Each completed scan is charged
As security.rescan. A scan that did not complete is free, and so is one answered from the last scan because the vulnerability database had not changed. Anyone who may deploy the project may set this.
curl -X PUT "$API/v1/projects/salmon/scan-schedule" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"schedule": "interval", "interval_days": 14}'Body
| Field | Type | Description | |
|---|---|---|---|
| schedule | string | required | off, daily, weekly, monthly or interval. |
| interval_days | integer | optional | 1 to 90. Required for interval, and refused on any other schedule. |
Responses
| Status | Meaning |
|---|---|
| 200 | Saved. The schedule as the read returns it. |
| 401 | No token, or one that did not verify. |
| 403 | A credential issued for another project. |
| 404 | No project by that name in your tenant. |
| 422 | A schedule that cannot be saved. error says why and field names the field. |
Read what running images are exposed to
GET/v1/projects/{project}/scansdeploy-service
For each image the project runs, its newest completed scan, plus the history of re-scans and the schedule.
A deploy's own scan counts
latest is the newest COMPLETED scan from either a deploy or a re-scan, so an image shows the verdict it was deployed with until it is scanned again. A newer attempt that did not finish is carried in last_attempt beside it, never in its place: not scanned this morning is not the same as no findings.
curl "$API/v1/projects/salmon/scans" -H "Authorization: Bearer $TOKEN"Responses
| Status | Meaning |
|---|---|
| 200 | Exposure and history. |
| 401 | No token, or one that did not verify. |
| 403 | A credential issued for another project. |
| 503 | This deploy service has no store configured. |
Response body
{
"images": [{
"image_digest": "sha256:5f0c…",
"targets": ["fish-facts", "marine-mammals"],
"latest": {"trigger": "schedule", "scanned_at": "2026-11-15T00:15:02+00:00",
"deduped": false, "blocking": 0, "deployment_id": "",
"image_digest": "sha256:5f0c…",
"scan": {"completed": true, "counts": {"LOW": 9}, "findings": []}},
"last_attempt": null
}],
"history": [],
"schedule": {"schedule": "daily", "label": "Daily, at 00:00 UTC"}
}Scan running images now
POST/v1/projects/{project}/scansdeploy-service
Scans every image the project runs, up to five, and answers when they are done. Usually a few seconds an image.
Repeating it is free
An image whose newest scan used the vulnerability database the scanner holds now is answered from that record, marked deduped, and not charged, so asking twice costs nothing.
A new vulnerability is announced once
newly_blocking lists advisories that would refuse a deploy today and that the image's last completed scan did not have. Your organization's admins are told about those, once each.
curl -X POST "$API/v1/projects/salmon/scans" -H "Authorization: Bearer $TOKEN"Responses
| Status | Meaning |
|---|---|
| 200 | What each image came back with. |
| 401 | No token, or one that did not verify. |
| 403 | A credential issued for another project. |
| 409 | Nothing is deployed in the project. |
| 422 | This account cannot be charged, the deploy route's own refusal, in problems. |
| 503 | No scanner is configured. |
Response body
{
"images": [{"image_digest": "sha256:5f0c…", "targets": ["fish-facts"],
"skipped": "", "newly_blocking": [],
"result": {"trigger": "manual", "deduped": true, "blocking": 0,
"scan": {"completed": true, "counts": {"LOW": 9}}}}],
"scanned": 0, "deduped": 1, "incomplete": 0, "skipped": 0, "errors": 0,
"links": {"security": "https://<console>/deep-link?k=project_security&project=salmon"}
}Read refused egress
GET/v1/projects/{project}/egress/refusalsdeploy-service
Which hosts the platform's egress proxy refused for this project, how often, and when last — so you know what to add under egress: in elan.yaml.
Per project, not per agent
Every agent in a project reaches the internet through one egress allowlist, so a refusal is reported for the project with an empty workload. An MCP server has an allowlist of its own, so its refusals name it in workload. A call that ignores HTTPS_PROXY is dropped before it reaches the proxy and never appears here. since_hours is clamped to 1–168.
curl "$API/v1/projects/salmon/egress/refusals?since_hours=24" -H "Authorization: Bearer $TOKEN"Responses
| Status | Meaning |
|---|---|
| 200 | The refused hosts, newest first; an empty list with a note when none. |
| 401 | No token, or one that did not verify. |
| 403 | A credential issued for another project. |
| 503 | This deploy service cannot read logs. |
Response body
{
"project": "salmon",
"since": "2026-11-17T16:00:00Z",
"egress": "rsl--salmon",
"refusals": [
{"host": "api.example.com", "port": "443", "workload": "", "count": 4,
"first_seen": "2026-11-18T09:12:03Z", "last_seen": "2026-11-18T10:05:41Z"},
{"host": "api.example.org", "port": "443", "workload": "tide-tables",
"count": 1, "first_seen": "2026-11-18T10:01:00Z",
"last_seen": "2026-11-18T10:01:00Z"}
],
"truncated": false
}