SISuperintelligenceDocs

Search docs

Search every page of the documentation.

API reference

Deployments

List deployments, read build and runtime logs, redeploy and promote.

See Builds and Environments for how deployments are created by pushes and what each status means.

GET /v1/orgs/:orgId/deployments

Lists deployments across projects, newest first. Pass the returned cursor to get the next page.

Auth: user access token or platform agent key · Scope: deployments:read

Path parameterDescription
:orgIdOrganization id (org_…).
Query parameterTypeRequiredDefaultNotes
projectIdstringNoat least 1 character
target"production" | "preview"No
status"queued" | "building" | "deploying" | "ready" | "error" | "canceled" | "expired" | "skipped"No
branchstringNo1–255 characters
cursorstringNoat least 1 character
limitintegerNo501–100; coerced from a string

Response 200

{
  deployments: {
    error?: string
    status?: "error" | "queued" | "building" | "deploying" | "ready" | "canceled" | "expired" | "skipped"
    createdAt?: number
    updatedAt?: number
    region?: string
    orgId: string
    createdBy?: string
    projectId: string
    location: string
    deploymentId: string
    target: "preview" | "production"
    branch?: string
    commitSha?: string
    commitMessage?: string
    commitAuthor?: string
    host?: string
    buildId?: string
    buildDurationMs?: number
    readyAt?: number
    crons?: string
    envHash?: string
    previousDeploymentId?: string
    reason?: string
    buildMetrics?: {
      restoreMs?: number
      installMs?: number
      buildMs?: number
      uploadMs?: number
      saveMs?: number
      depsCache?: "hit" | "partial" | "miss" | "off"
      nextCache?: "hit" | "partial" | "miss" | "off"
      packageManager?: string
      installDir?: string
    }
  }[]
  cursor: null | string
}

Errors

StatusMessage
404Project not found
404Not found
404Commit not found

GET /v1/orgs/:orgId/deployments/:deploymentId

A deployment and a summary of its project.

Auth: user access token or platform agent key · Scope: deployments:read · Allowed: domains:read

Path parameterDescription
:orgIdOrganization id (org_…).
:deploymentIdDeployment id (dpl_…).

Response 200

{
  deployment?: {
    error?: string
    status?: "error" | "queued" | "building" | "deploying" | "ready" | "canceled" | "expired" | "skipped"
    createdAt?: number
    updatedAt?: number
    region?: string
    orgId: string
    createdBy?: string
    projectId: string
    location: string
    deploymentId: string
    target: "preview" | "production"
    branch?: string
    commitSha?: string
    commitMessage?: string
    commitAuthor?: string
    host?: string
    buildId?: string
    buildDurationMs?: number
    readyAt?: number
    crons?: string
    envHash?: string
    previousDeploymentId?: string
    reason?: string
    buildMetrics?: {
      restoreMs?: number
      installMs?: number
      buildMs?: number
      uploadMs?: number
      saveMs?: number
      depsCache?: "hit" | "partial" | "miss" | "off"
      nextCache?: "hit" | "partial" | "miss" | "off"
      packageManager?: string
      installDir?: string
    }
  }
  project: {
    projectId: string
    name: string
    slug: string
    productionDeploymentId?: string
    repoId?: string
    framework?: "static" | "nextjs" | "node"
    location: string
    rootDirectory?: string
  }
  productionHost?: string
  domains?: {
    hostname: string
    status?: "error" | "active" | "pending" | "verifying"
    redirectTo?: string
  }[]
  function: null | {
    region: string
    name: string
    memoryMb: 1024
    timeoutSeconds: 30
    architecture: "arm64"
    runtime: "nodejs22.x"
  }
}

Errors

StatusMessage
404Deployment not found
404Project not found
404Not found
404Commit not found

GET /v1/orgs/:orgId/deployments/:deploymentId/logs

Build output, starting at the first build step.

Auth: user access token or platform agent key · Scope: logs:read

Path parameterDescription
:orgIdOrganization id (org_…).
:deploymentIdDeployment id (dpl_…).

Response 200

{
  lines: {
    t?: number
    m: string
  }[]
}

Errors

StatusMessage
404Deployment not found

GET /v1/orgs/:orgId/deployments/:deploymentId/runtime-logs

Server function logs from the last hour, newest first. q filters messages case-insensitively. available is false for deployments without a server function.

Auth: user access token or platform agent key · Scope: logs:read

Path parameterDescription
:orgIdOrganization id (org_…).
:deploymentIdDeployment id (dpl_…).
Query parameterTypeRequiredNotes
qstringNoup to 200 characters; trimmed

Response 200

{
  available: false
  lines: []
}
| {
  lines: {
    t: number
    level: "error" | "platform" | "info" | "warn" | "debug"
    requestId?: string
    message: string
    truncated?: boolean
  }[]
  from: number
  to: number
  limited: boolean
  available: true
}

Errors

StatusMessage
404Deployment not found

POST /v1/orgs/:orgId/deployments/:deploymentId/redeploy

Builds the deployment's commit again as a new deployment with the same target.

Auth: user access token or platform agent key · Scope: deployments:write

Path parameterDescription
:orgIdOrganization id (org_…).
:deploymentIdDeployment id (dpl_…).

Response 201

{
  deployment: {
    deploymentId: string
    host: string
    target: "preview" | "production"
  }
}

Errors

StatusMessage
404Deployment not found
404Project not found
409This deployment is still in progress.
409This deployment has no commit to build.
409Link a repository to this project first.
502Couldn't start the build. Try again.

POST /v1/orgs/:orgId/deployments/:deploymentId/promote

Makes a ready deployment production without rebuilding: promotes a preview, or rolls back to an earlier production deployment.

Auth: user access token or platform agent key · Scope: deployments:write

Path parameterDescription
:orgIdOrganization id (org_…).
:deploymentIdDeployment id (dpl_…).

Response 200

{
  deployment: {
    error?: string
    status?: "error" | "queued" | "building" | "deploying" | "ready" | "canceled" | "expired" | "skipped"
    createdAt?: number
    updatedAt?: number
    region?: string
    orgId: string
    createdBy?: string
    projectId: string
    location: string
    deploymentId: string
    target: "preview" | "production"
    branch?: string
    commitSha?: string
    commitMessage?: string
    commitAuthor?: string
    host?: string
    buildId?: string
    buildDurationMs?: number
    readyAt?: number
    crons?: string
    envHash?: string
    previousDeploymentId?: string
    reason?: string
    buildMetrics?: {
      restoreMs?: number
      installMs?: number
      buildMs?: number
      uploadMs?: number
      saveMs?: number
      depsCache?: "hit" | "partial" | "miss" | "off"
      nextCache?: "hit" | "partial" | "miss" | "off"
      packageManager?: string
      installDir?: string
    }
  }
  productionHost: string
}

Errors

StatusMessage
404Deployment not found
404Project not found
409This deployment has expired. Redeploy it instead.
409Only ready deployments can be promoted.
409This is already the production deployment.
409This deployment's server function was removed. Redeploy it instead.
502Couldn't update production routing. Try again.