easeploy
ProductHow it worksAI-readyPricingFAQ
Sign inGet started
ProductHow it worksAI-readyPricingFAQSign in

API documentation

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.

Authentication

Create an API token in Settings, API tokens, and send it as a bearer token. The token is shown once; store it as a secret.

Authorization: Bearer esp_…
  • Full access tokens reach every project of the workspace they were created in, never another workspace.
  • Deploy tokens are for one project: every other project answers as if it did not exist. A Deploy token can list variable names and start the variables deploy, but only a full-access token can set or delete a variable.
  • A token acts with the role of the member who created it. Reading is open to every role; deploying, rolling back, canceling, retrying, restarting and changing variables need Owner, Admin or Developer, and approving or rejecting a deploy needs Owner or Admin, so a token stops doing so if its creator is demoted or leaves. On a Production environment that requires approval, a Developer’s deploy waits for an Admin.
  • Tokens expire (7 days to 1 year) and can be revoked in Settings. No endpoint ever returns a secret’s value or AWS credentials; the variables list shows plain values as the dashboard does and a secret as null.

Every write appears in the audit log with the token’s name as the actor. For variables, the log holds the name, never the value.

Environments

Every call names its environment, production or staging. When you leave it out, it is production; nothing is remembered between requests. Deploy and rollback refuse unknown fields with a 400, so a misspelt environment never falls back to production.

Errors

Every error has the same shape. A validation error names the field.

{ "error": { "code": "invalid_request", "message": "limit: Too big: expected number to be <=100", "field": "limit" } }
StatusCodeMeaning
400invalid_requestA parameter is missing or not valid; field names it.
401unauthorizedNo Authorization: Bearer header.
401invalid_tokenThe token is not valid, has expired or was revoked.
403forbiddenThe token, its creator’s role or the plan does not allow this.
403read_onlyThe workspace’s free week is over and it has no paid plan: reads work, nothing can be changed. Pick a plan in Billing.
404not_foundThe project, environment, deployment or service does not exist.
409conflictThe request cannot run now (busy, not deployed, nothing to roll back to).
429rate_limitedToo many requests; wait Retry-After seconds.
500internal_errorSomething went wrong on our side; try again.
502upstream_errorAWS did not answer; try again in a moment.
503unavailableThe request could not start; try again in a minute.

Rate limits

Limits are per token and per minute, counted apart for each kind of call. Over the limit, the answer is 429 with a Retry-After header (seconds).

  • Reads (projects, deployments): 300 requests a minute. Poll a deployment every 10 seconds or so.
  • Writes (deploy, rollback, cancel, retry, approve, restart, variables): 60 requests a minute.
  • Logs and metrics: 30 requests a minute.

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

NameTypeRequiredDefaultDescription
slugstringyesThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).

Query parameters

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe environment to act on. Always taken from the request, never remembered.
limitinteger (1–100)no20Deployments per page, newest first.
cursorstringnonextCursor 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
numberinteger (1–999999999)yesThe deployment number within the environment.

Query parameters

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).

JSON body

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe environment to act on. Always taken from the request, never remembered.
servicesarray of stringnoService 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
numberinteger (1–999999999)yesThe deployment number within the environment.

JSON body

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).

Query parameters

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe environment to act on. Always taken from the request, never remembered.
servicestring (up to 64 characters)noA service id or slug. Default: every service with logs.
sincedate-timenoStart 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).
untildate-timenoEnd of the window (ISO 8601). Default: now.
levelall | info | warn | errornoallinfo includes debug lines.
querystring (up to 200 characters)noOnly lines containing this text (case-insensitive).
limitinteger (1–500)no100Lines per page: the newest ones in the window, oldest first.
cursorstring (up to 200 characters)nonextCursor of the previous page: the next page goes further back in time.
regionstring (up to 30 characters)noA 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
environmentproduction | stagingyesproduction 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
numberinteger (1–999999999)yesThe deployment number within the environment.

JSON body

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
numberinteger (1–999999999)yesThe deployment number within the environment.

JSON body

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
numberinteger (1–999999999)yesThe deployment number within the environment.

JSON body

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
numberinteger (1–999999999)yesThe deployment number within the environment.

JSON body

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
serviceIdstring (up to 64 characters)yesThe architecture’s service id, as GET /projects/{slug} lists it.

JSON body

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).

Query parameters

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
namestring (up to 128 characters)yesThe variable’s name: letters, digits and underscores.

JSON body

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe environment to act on. Always taken from the request, never remembered.
valuestring (up to 4096 characters)yesThe new value (at most 4 KB). Never returned by the API.
secretbooleannoStore 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.
serviceIdanynoThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).
namestring (up to 128 characters)yesThe variable’s name: letters, digits and underscores.

Query parameters

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe environment to act on. Always taken from the request, never remembered.
serviceIdanynoThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).

JSON body

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe 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

NameTypeRequiredDefaultDescription
slugstringyesThe project’s slug (its address in the dashboard).

Query parameters

NameTypeRequiredDefaultDescription
environmentproduction | stagingnoproductionThe environment to act on. Always taken from the request, never remembered.
servicestring (up to 64 characters)noA service id or slug. Default: every service with metrics.
range1hno1hThe 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.

Examples

curl

# List your projects
curl -fsS https://app.easeploy.com/api/v1/projects \
  -H "Authorization: Bearer $EASEPLOY_TOKEN"

# Deploy Staging, then read the deployment
curl -fsS -X POST https://app.easeploy.com/api/v1/projects/shop/deploy \
  -H "Authorization: Bearer $EASEPLOY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"environment":"staging"}'

curl -fsS "https://app.easeploy.com/api/v1/projects/shop/deployments/13?environment=staging" \
  -H "Authorization: Bearer $EASEPLOY_TOKEN"

# The last 100 error lines of Production
curl -fsS "https://app.easeploy.com/api/v1/projects/shop/logs?environment=production&level=error" \
  -H "Authorization: Bearer $EASEPLOY_TOKEN"

GitHub Actions: deploy Staging on push and wait for the result

Save the token as the repository secret EASEPLOY_TOKEN. The job fails when the deployment fails, is canceled or rolled back, or does not finish in 15 minutes.

name: Deploy Staging

on:
  push:
    branches: [staging]

jobs:
  deploy:
    runs-on: ubuntu-latest
    env:
      API: https://app.easeploy.com/api/v1/projects/shop
      EASEPLOY_TOKEN: ${{ secrets.EASEPLOY_TOKEN }}
    steps:
      - name: Start the deploy
        id: start
        run: |
          set -euo pipefail
          res=$(curl -fsS -X POST "$API/deploy" \
            -H "Authorization: Bearer $EASEPLOY_TOKEN" \
            -H "Content-Type: application/json" \
            -d '{"environment":"staging"}')
          echo "number=$(echo "$res" | jq -r .deployment.number)" >> "$GITHUB_OUTPUT"

      - name: Wait for the result
        run: |
          set -euo pipefail
          for i in $(seq 1 90); do
            status=$(curl -fsS "$API/deployments/${{ steps.start.outputs.number }}?environment=staging" \
              -H "Authorization: Bearer $EASEPLOY_TOKEN" | jq -r .deployment.status)
            echo "deployment status: $status"
            case "$status" in
              live) exit 0 ;;
              failed|canceled|rolled_back) exit 1 ;;
            esac
            sleep 10
          done
          echo "Timed out waiting for the deployment" >&2
          exit 1
easeploy

AWS infrastructure with ease, without AWS complexity.

ProductFeaturesPricingFAQDocsMCP serverUptime
CompanyContactFeedback
LegalTerms of ServicePrivacy PolicyCookie Policy

easeploy is an independent product and is not affiliated with, endorsed by or sponsored by Amazon.com, Inc. or Amazon Web Services, Inc. Amazon Web Services and AWS are trademarks of Amazon.com, Inc. or its affiliates.

© 2026 Delune Solutions Kft.