The easeploy REST API lets scripts and CI pipelines do what the dashboard does: list projects and environments, deploy, roll back, cancel, retry, approve, restart services, manage variables and read logs and metrics. It is JSON over HTTPS; every path below starts with https://app.easeploy.com/api/v1. For AI coding agents there is also an MCP server on the same tokens.
Endpoints
GET/projects
The workspace’s projects, each with its environments.
Response 200
{
"projects": [
{
"slug": "shop",
"name": "Shop",
"status": "live",
"environments": [
{
"name": "production",
"status": "live",
"url": "https://shop-1a2b.eu-north-1.elb.amazonaws.com"
}
]
}
]
}
- A project-scoped token lists its own project only.
url is the environment’s address, or null before the first deploy.
Errors: unauthorized, invalid_token, forbidden, rate_limited.
GET/projects/{slug}
One project with its environments and their services.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
Response 200
{
"project": {
"slug": "shop",
"name": "Shop",
"description": null,
"status": "live",
"homeRegion": "eu-north-1",
"environments": [
{
"name": "production",
"status": "live",
"url": "https://shop-1a2b.eu-north-1.elb.amazonaws.com",
"branch": "main",
"autoDeploy": true,
"services": [
{
"id": "api",
"name": "API",
"kind": "app",
"status": "live"
}
]
}
]
}
}
- A service’s
status follows its environment; a service added to the architecture and not yet deployed is draft. Variables, secrets and AWS details are never returned.
Errors: invalid_request, unauthorized, invalid_token, forbidden, not_found, rate_limited.
GET/projects/{slug}/deployments
The deployments of one environment, newest first.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
Query parameters
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
limit | integer (1–100) | no | 20 | Deployments per page, newest first. |
cursor | string | no | | nextCursor of the previous page. |
Response 200
{
"deployments": [
{
"number": 12,
"environment": "staging",
"kind": "code",
"status": "live",
"trigger": "api",
"branch": "staging",
"commitSha": "3f2a91c2e4d8b7a6c5d4e3f2a1b0c9d8e7f6a5b4",
"commitMessage": "Fix the checkout total",
"errorSummary": null,
"explanation": null,
"createdAt": "2026-11-21T09:14:03.000Z",
"startedAt": "2026-11-21T09:14:05.000Z",
"finishedAt": "2026-11-21T09:17:41.000Z",
"durationS": 216,
"url": "https://app.easeploy.com/projects/shop/env/staging?next=/deployments/12",
"canary": {
"minutes": 10,
"phase": "promoted",
"region": null,
"endsAt": null,
"outcome": "Promoted after 10 min."
}
}
],
"nextCursor": "11"
}
- Pass
nextCursor as cursor for the next page. It is null on the last page.
Errors: invalid_request, unauthorized, invalid_token, forbidden, not_found, rate_limited.
GET/projects/{slug}/deployments/{number}
One deployment and its steps. Poll it after starting a deploy.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
number | integer (1–999999999) | yes | | The deployment number within the environment. |
Query parameters
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
Response 200
{
"deployment": {
"number": 12,
"environment": "staging",
"kind": "code",
"status": "live",
"trigger": "api",
"branch": "staging",
"commitSha": "3f2a91c2e4d8b7a6c5d4e3f2a1b0c9d8e7f6a5b4",
"commitMessage": "Fix the checkout total",
"errorSummary": null,
"explanation": null,
"createdAt": "2026-11-21T09:14:03.000Z",
"startedAt": "2026-11-21T09:14:05.000Z",
"finishedAt": "2026-11-21T09:17:41.000Z",
"durationS": 216,
"url": "https://app.easeploy.com/projects/shop/env/staging?next=/deployments/12",
"canary": {
"minutes": 10,
"phase": "promoted",
"region": null,
"endsAt": null,
"outcome": "Promoted after 10 min."
}
},
"steps": [
{
"key": "build",
"title": "Building images",
"status": "completed"
},
{
"key": "rollout",
"title": "Rolling out",
"status": "completed"
},
{
"key": "health",
"title": "Health checks",
"status": "completed"
}
]
}
- Statuses:
queued, in_progress, pending_approval (a Production deploy waiting for an Admin) are not final. live, failed, canceled and rolled_back are. canary is null unless the deploy runs a canary first (an app set to Canary in the builder): minutes is the bake time; phase is starting, baking, stopping, promoted or rolled_back; region the added region it runs in (null: home); endsAt the end of the bake while baking; outcome how it ended. Promote now and Roll back are on the deploy screen only.
Errors: invalid_request, unauthorized, invalid_token, forbidden, not_found, rate_limited.
POST/projects/{slug}/deploy
Builds and deploys the head of the environment’s branch, like “Deploy now”. Needs a token whose creator can deploy.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
JSON body
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
services | array of string | no | | Service ids to build and deploy. Default: every service with a repository. |
Response 202
{
"deployment": {
"number": 13,
"environment": "staging",
"status": "queued",
"url": "https://app.easeploy.com/projects/shop/env/staging?next=/deployments/13",
"statusUrl": "https://app.easeploy.com/api/v1/projects/shop/deployments/13?environment=staging"
}
}
- The deploy runs on the environment’s branch; a commit or branch cannot be chosen here. If the environment requires approval and the token’s creator is a Developer, the status is
pending_approval until an Admin approves it. environment may also be sent as a query parameter. The deploy is recorded in the audit log under the token’s name.- A workspace whose free week is over and that has no paid plan is read-only: this answers 403
read_only until a plan is picked.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable.
POST/projects/{slug}/deployments/{number}/rollback
Rolls the environment back to the images of an earlier deployment. Needs a token whose creator can deploy.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
number | integer (1–999999999) | yes | | The deployment number within the environment. |
JSON body
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
Response 202
{
"deployment": {
"number": 14,
"environment": "staging",
"status": "queued",
"url": "https://app.easeploy.com/projects/shop/env/staging?next=/deployments/14",
"statusUrl": "https://app.easeploy.com/api/v1/projects/shop/deployments/14?environment=staging"
}
}
- The same as “Rollback to this” in Deployment history: only a deployment that went live can be rolled back to, the database is not touched, and auto-deploy is turned off for the environment. Needs a plan with manual rollback (Pro and Agency), else 403.
environment may also be sent as a query parameter. The rollback is recorded in the audit log under the token’s name.- A workspace whose free week is over and that has no paid plan is read-only: this answers 403
read_only until a plan is picked.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable.
GET/projects/{slug}/logs
Log lines of an environment, from the same source as the Logs page.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
Query parameters
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
service | string (up to 64 characters) | no | | A service id or slug. Default: every service with logs. |
since | date-time | no | | Start of the window (ISO 8601). Default: one hour before until. Not older than the plan’s log retention (3 days on Hobby, 30 days on Pro and Agency). |
until | date-time | no | | End of the window (ISO 8601). Default: now. |
level | all | info | warn | error | no | all | info includes debug lines. |
query | string (up to 200 characters) | no | | Only lines containing this text (case-insensitive). |
limit | integer (1–500) | no | 100 | Lines per page: the newest ones in the window, oldest first. |
cursor | string (up to 200 characters) | no | | nextCursor of the previous page: the next page goes further back in time. |
region | string (up to 30 characters) | no | | A region code, or all. Default: the home region. |
Response 200
{
"lines": [
{
"id": "3912844910234",
"time": "2026-11-21T09:15:02.118Z",
"serviceId": "api",
"service": "api",
"region": "eu-north-1",
"stream": "api/app/3f2a91c2e4d84b0c8c1d",
"level": "ERROR",
"message": "Payment provider timed out"
}
],
"nextCursor": "WzE3OTU0NDI5MDIxMTgsIjM5MTI4NDQ5MTAyMzQiXQ",
"failedRegions": [],
"since": "2026-11-21T08:15:30.000Z",
"until": "2026-11-21T09:15:30.000Z"
}
- A page is the newest
limit lines of the window, oldest first. Pass nextCursor as cursor (with the same since and until) to go further back; it is null when the window is exhausted. - One request reads at most 24 hours.
since cannot be older than the plan’s log retention. failedRegions names regions that could not be read.
Errors: invalid_request, unauthorized, invalid_token, forbidden, not_found, conflict, rate_limited, upstream_error.
GET/projects/{slug}/environments/{environment}
One environment’s state: status, URLs, live deployment, running deploy and regions.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
environment | production | staging | yes | | production or staging. |
Response 200
{
"environment": {
"name": "production",
"status": "live",
"paused": false,
"url": "https://shop-1a2b.eu-north-1.elb.amazonaws.com",
"urls": [
{
"url": "https://shop-1a2b.eu-north-1.elb.amazonaws.com",
"kind": "default"
},
{
"url": "https://shop.example.com",
"kind": "custom"
}
],
"liveDeployment": 12,
"runningDeployment": {
"number": 13,
"status": "in_progress"
},
"awaitingApproval": [],
"requireApproval": true,
"regions": [
{
"code": "eu-north-1",
"role": "home",
"status": "live",
"url": "https://shop-1a2b.eu-north-1.elb.amazonaws.com"
}
]
}
}
urls lists the environment’s address and its active custom domains. liveDeployment is the newest deployment that is live; runningDeployment is one that is queued or in progress; awaitingApproval lists deployments waiting for an Admin. paused is true while the environment is paused or pausing. Region status is the stack’s status.
Errors: invalid_request, unauthorized, invalid_token, forbidden, not_found, rate_limited.
POST/projects/{slug}/deployments/{number}/cancel
Cancels the environment’s latest deployment while it is queued or running. Needs a token whose creator can deploy.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
number | integer (1–999999999) | yes | | The deployment number within the environment. |
JSON body
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
Response 202
{
"deployment": {
"number": 13,
"environment": "staging",
"status": "in_progress",
"url": "https://app.easeploy.com/projects/shop/env/staging?next=/deployments/13",
"statusUrl": "https://app.easeploy.com/api/v1/projects/shop/deployments/13?environment=staging"
}
}
- The same as Cancel in Deployment history: only the latest deployment, and only while it is
queued or in_progress, else 409. Canceling a first deploy deletes what it created so far. The cancel is a request: poll the deployment until it is canceled. A deployment waiting for approval is rejected instead (/reject). environment may also be sent as a query parameter. The action is recorded in the audit log under the token’s name.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable.
POST/projects/{slug}/deployments/{number}/retry
Builds and deploys the same commit again, like Retry in Deployment history. Needs a token whose creator can deploy.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
number | integer (1–999999999) | yes | | The deployment number within the environment. |
JSON body
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
Response 202
{
"deployment": {
"number": 15,
"environment": "staging",
"status": "queued",
"url": "https://app.easeploy.com/projects/shop/env/staging?next=/deployments/15",
"statusUrl": "https://app.easeploy.com/api/v1/projects/shop/deployments/15?environment=staging"
}
}
- Only code deploys can be retried (not a promotion, a rollback or an infrastructure deploy), else 409. A Production environment that requires approval holds a Developer’s retry as
pending_approval. environment may also be sent as a query parameter. The action is recorded in the audit log under the token’s name.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable.
POST/projects/{slug}/deployments/{number}/approve
Approves a deployment that waits for approval; it starts. Needs a token whose creator is an Owner or Admin.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
number | integer (1–999999999) | yes | | The deployment number within the environment. |
JSON body
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
Response 202
{
"deployment": {
"number": 16,
"environment": "staging",
"status": "queued",
"url": "https://app.easeploy.com/projects/shop/env/staging?next=/deployments/16",
"statusUrl": "https://app.easeploy.com/api/v1/projects/shop/deployments/16?environment=staging"
}
}
- Only a token whose creator is an Owner or Admin, else 403. 409 when the deployment is no longer waiting. Not available through the MCP server.
environment may also be sent as a query parameter. The action is recorded in the audit log under the token’s name.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable.
POST/projects/{slug}/deployments/{number}/reject
Rejects a deployment that waits for approval; it is canceled. Needs a token whose creator is an Owner or Admin.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
number | integer (1–999999999) | yes | | The deployment number within the environment. |
JSON body
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
Response 200
{
"deployment": {
"number": 16,
"environment": "staging",
"status": "canceled",
"url": "https://app.easeploy.com/projects/shop/env/staging?next=/deployments/16",
"statusUrl": "https://app.easeploy.com/api/v1/projects/shop/deployments/16?environment=staging"
}
}
- Only a token whose creator is an Owner or Admin, else 403. 409 when the deployment is no longer waiting. Not available through the MCP server.
environment may also be sent as a query parameter. The action is recorded in the audit log under the token’s name.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable.
POST/projects/{slug}/services/{serviceId}/restart
Restarts one service: its tasks are replaced one by one. Needs a token whose creator can deploy.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
serviceId | string (up to 64 characters) | yes | | The architecture’s service id, as GET /projects/{slug} lists it. |
JSON body
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
Response 202
{
"service": {
"id": "api",
"name": "API"
},
"restarting": true
}
- The same as Restart on a service: an app or worker of a deployed environment, with the same task definition. 409 while the environment is not deployed or is busy, or when the AWS access template is too old; 404 for a service that is not deployed.
environment may also be sent as a query parameter. The action is recorded in the audit log under the token’s name.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable.
GET/projects/{slug}/variables
The environment’s variables: name, service, kind and state.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
Query parameters
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
Response 200
{
"environment": "production",
"variables": [
{
"name": "LOG_LEVEL",
"serviceId": null,
"service": "Shared",
"secret": false,
"value": "info",
"link": null,
"state": "deployed"
},
{
"name": "STRIPE_KEY",
"serviceId": "api",
"service": "API",
"secret": true,
"value": null,
"link": null,
"state": "changed"
},
{
"name": "DATABASE_URL",
"serviceId": "api",
"service": "API",
"secret": false,
"value": null,
"link": {
"serviceId": "db",
"service": "Database",
"part": "URL"
},
"state": "added"
}
],
"pending": 2
}
- A secret’s
value is always null: its value is never returned by any endpoint. A plain value is returned as the Variables page shows it. state: deployed, added or changed (saved, not deployed yet) or removed (deleted, still deployed). pending counts the undeployed changes. Variables easeploy sets from connections are not listed. A name for a connection value (DATABASE_URL, DB_HOST, ...) is listed with its link (the connected service and the part, such as URL or HOST) and a null value; the API only lists and deletes them (they are made in the builder or on the Variables page).
Errors: invalid_request, unauthorized, invalid_token, forbidden, not_found, rate_limited.
PUT/projects/{slug}/variables/{name}
Sets or changes a variable. Staged until the variables deploy. Needs a full-access token whose creator can deploy.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
name | string (up to 128 characters) | yes | | The variable’s name: letters, digits and underscores. |
JSON body
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
value | string (up to 4096 characters) | yes | | The new value (at most 4 KB). Never returned by the API. |
secret | boolean | no | | Store the value as a secret (only in your AWS Secrets Manager). Default: plain for a new variable; an existing one keeps its kind, and a different secret is a 409. |
serviceId | any | no | | The id of the app or worker service the variable belongs to. Omit for Shared. |
Response 200
{
"variable": {
"name": "LOG_LEVEL",
"serviceId": null,
"service": "Shared",
"secret": false,
"state": "changed"
}
}
- Only a full-access token (a project-scoped Deploy token gets 403) whose creator is an Owner, Admin or Developer. The change reaches AWS with
POST /variables/deploy or the next deploy. The answer never contains the value, and neither does the audit log (the name only). - An existing variable keeps its kind: sending a different
secret is a 409; delete it and add it again. A secret needs a connected AWS account. Names and values follow the Variables page’s rules (400 with the reason). - The value goes in the JSON body only: URLs end up in logs, so a
value query parameter is a 400. environment and serviceId may also be sent as query parameters.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable, upstream_error.
DELETE/projects/{slug}/variables/{name}
Removes a variable. Staged until the variables deploy. Needs a full-access token whose creator can deploy.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
name | string (up to 128 characters) | yes | | The variable’s name: letters, digits and underscores. |
Query parameters
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
serviceId | any | no | | The id of the app or worker service the variable belongs to. Omit for Shared. |
Response 200
{
"variable": {
"name": "OLD_FLAG",
"serviceId": "api",
"service": "API",
"secret": false,
"state": "removed"
}
}
- Only a full-access token, like PUT. 404 when the variable does not exist in that group. Send
serviceId for a service’s own variable; leave it out for a Shared one.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable, upstream_error.
POST/projects/{slug}/variables/deploy
Rolls the saved variables out with the images that run now (no build). Needs a token whose creator can deploy.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
JSON body
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
Response 202
{
"deployment": {
"number": 17,
"environment": "staging",
"status": "queued",
"url": "https://app.easeploy.com/projects/shop/env/staging?next=/deployments/17",
"statusUrl": "https://app.easeploy.com/api/v1/projects/shop/deployments/17?environment=staging"
}
}
- The same as “deploy variable changes” on the Variables page. A project-scoped Deploy token may call it; it cannot change values. Follow it with
GET /deployments/{number}. environment may also be sent as a query parameter. The action is recorded in the audit log under the token’s name.
Errors: invalid_request, unauthorized, invalid_token, forbidden, read_only, not_found, conflict, rate_limited, unavailable.
GET/projects/{slug}/metrics
The metric series of the service pages, per service.
Path parameters
| Name | Type | Required | Default | Description |
|---|
slug | string | yes | | The project’s slug (its address in the dashboard). |
Query parameters
| Name | Type | Required | Default | Description |
|---|
environment | production | staging | no | production | The environment to act on. Always taken from the request, never remembered. |
service | string (up to 64 characters) | no | | A service id or slug. Default: every service with metrics. |
range | 1h | no | 1h | The window ending now. Only the last hour (1-minute points) exists today. |
Response 200
{
"range": "1h",
"since": "2026-11-21T08:15:00.000Z",
"until": "2026-11-21T09:15:00.000Z",
"services": [
{
"id": "api",
"slug": "api",
"name": "API",
"kind": "app",
"series": {
"cpu": [
[
1795421700000,
12.5
],
[
1795421760000,
14.1
]
],
"memPct": [
[
1795421700000,
41
],
[
1795421760000,
41.3
]
]
}
}
]
}
- The same series, from the same function and one-minute cache, as the service detail page, for the home region. Series are
[epoch ms, value] pairs, oldest first; which series exist depends on the service kind. Only the last hour exists today (range=1h). Counted with the logs requests.
Errors: invalid_request, unauthorized, invalid_token, forbidden, not_found, rate_limited, conflict, upstream_error.