Skip to content

Full API Reference ​

Generated page

This page is generated from the route table in server/internal/api/openapi/routes.go. Do not edit it by hand: change the table, then run go run ./cmd/gen-docs in server/. A test fails when this page and the table differ.

Every HTTP route of the Docklift server: 109 routes in 14 groups. The running server serves the same data as an OpenAPI 3.1 document at GET /api/openapi.json. Authentication, token scopes, errors and worked curl examples are in the API guide.

Paths are relative to the panel URL (for example https://panel.example.com). Path parameters are written {name} and are always required. Bodies are JSON unless noted. Errors are JSON {"error": "..."}.

Markers ​

MarkerMeaning
dangerousStep-up action. A dashboard session must send the account password in the body; an API token must have been created with allow dangerous actions (else 403).
session onlyRefuses every API token with 403. Use a dashboard session.
streamsThe response is a stream: a text/plain progress log until the operation ends, or Server-Sent Events (text/event-stream) that follow until the client disconnects. Use curl -N.
no read tokensA read-scope API token gets 403. Every write method behind the login, plus the GET routes marked so.

Groups ​

GroupRoutesDescription
Health1Liveness.
Auth9Setup, login, the account and short-lived purpose tokens.
API tokens3Bearer tokens for scripts and AI agents. Dashboard session only.
Projects15Applications: create, configure, environment variables, persistent storage.
Deployments14Deploy, redeploy, stop, restart, cancel, rollback, history, service domains.
Databases8Managed databases and links to apps.
Domains9Panel (dashboard) domains, SSL and the ACME email.
Files3The project file editor.
Logs2Container logs.
Ports2The host port pool.
GitHub15GitHub App setup, repositories and the push webhook.
System11Host metrics, logs, version and host maintenance.
Backup12Backups and restore.
Meta5This document, the WebSocket terminal and the MCP endpoint.

Health ​

Liveness.

MethodPathSummaryMarkers
GET/api/healthHealth check

GET /api/health ​

Health check.

  • Auth: none

Auth ​

Setup, login, the account and short-lived purpose tokens.

MethodPathSummaryMarkers
GET/api/auth/statusSetup status (whether an admin exists)
POST/api/auth/registerCreate the first admin
POST/api/auth/loginLog in and get a 7 day session token
GET/api/auth/meThe signed-in user
PATCH/api/auth/profileChange name and emailsession only
POST/api/auth/change-passwordChange the account passwordsession only
GET/api/auth/setup-tokenSetup token for a fresh-install restore
POST/api/auth/sse-token5 minute token for log streams (EventSource)session only
POST/api/auth/terminal-token5 minute single-use token for the WebSocket terminalsession only

GET /api/auth/status ​

Setup status (whether an admin exists).

  • Auth: none

POST /api/auth/register ​

Create the first admin.

Only while no user exists. Needs the bootstrap secret (header or body).

  • Auth: none
  • Headers:
    • X-Bootstrap-Secret (string): Bootstrap secret from the backend logs or data/.bootstrap-secret.
  • Body (JSON):
    • name (string, required)
    • email (string, required)
    • password (string, required): At least 8 characters.
    • bootstrapSecret (string): Alternative to the X-Bootstrap-Secret header.

POST /api/auth/login ​

Log in and get a 7 day session token.

  • Auth: none
  • Body (JSON):
    • email (string, required)
    • password (string, required)

GET /api/auth/me ​

The signed-in user.

  • Auth: Authorization: Bearer session or API token

PATCH /api/auth/profile ​

Change name and email.

  • Auth: Authorization: Bearer session or API token
  • Markers: session only
  • Body (JSON):
    • name (string, required)
    • email (string, required)

POST /api/auth/change-password ​

Change the account password.

Ends every older session and revokes every API token created before the change.

  • Auth: Authorization: Bearer session or API token
  • Markers: session only
  • Body (JSON):
    • currentPassword (string, required)
    • newPassword (string, required): At least 8 characters.

GET /api/auth/setup-token ​

Setup token for a fresh-install restore.

Refused once a user exists.

  • Auth: none
  • Headers:
    • X-Bootstrap-Secret (string): Bootstrap secret from the backend logs or data/.bootstrap-secret.

POST /api/auth/sse-token ​

5 minute token for log streams (EventSource).

  • Auth: Authorization: Bearer session or API token
  • Markers: session only

POST /api/auth/terminal-token ​

5 minute single-use token for the WebSocket terminal.

  • Auth: Authorization: Bearer session or API token
  • Markers: session only

API tokens ​

Bearer tokens for scripts and AI agents. Dashboard session only.

MethodPathSummaryMarkers
GET/api/tokensList API tokenssession only
POST/api/tokensCreate an API token (returned once)dangerous, session only
DELETE/api/tokens/{id}Revoke an API tokendangerous, session only

GET /api/tokens ​

List API tokens.

  • Auth: Authorization: Bearer session or API token
  • Markers: session only

POST /api/tokens ​

Create an API token (returned once).

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, session only
  • Body (JSON):
    • name (string, required): 1-100 characters.
    • scope (string): read (default): GET only. full: every method. One of read, full.
    • allowDangerous (boolean): Allow actions that ask for the password in the dashboard. Needs scope full.
    • expiresInDays (integer|null): 1-3650; null or absent for no expiry.
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.

DELETE /api/tokens/{id} ​

Revoke an API token.

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, session only
  • Path parameters: id
  • Body (JSON):
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.

Projects ​

Applications: create, configure, environment variables, persistent storage.

MethodPathSummaryMarkers
GET/api/projectsList projects
POST/api/projectsCreate a project from a GitHub repository or a ZIP uploadno read tokens
GET/api/projects/{id}Get a project with its services
PATCH/api/projects/{id}Update project settingsno read tokens
DELETE/api/projects/{id}Delete a project, its containers, images and filesno read tokens
GET/api/projects/{id}/build/detectDetect how the project would be built
GET/api/projects/{id}/storagePersistent volumes
POST/api/projects/{id}/storageAdd a persistent volumeno read tokens
DELETE/api/projects/{id}/storage/{storageId}Delete a persistent volume and its datano read tokens
GET/api/projects/{id}/envList environment variables
POST/api/projects/{id}/envCreate an environment variableno read tokens
POST/api/projects/{id}/env/bulkImport KEY=VALUE linesno read tokens
DELETE/api/projects/{id}/env/{envId}Delete an environment variableno read tokens
PATCH/api/projects/{id}/auto-deployTurn auto-deploy on push on or off (GitHub projects)no read tokens
GET/api/projects/{id}/auto-deployAuto-deploy settings and webhook URL

GET /api/projects ​

List projects.

  • Auth: Authorization: Bearer session or API token

POST /api/projects ​

Create a project from a GitHub repository or a ZIP upload.

A GitHub repository is cloned now; a ZIP (multipart field files) is extracted now. Deploy it afterwards.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Body (JSON or multipart/form-data):
    • name (string, required): Max 120 characters.
    • source_type (string): Default: upload when a file is sent, else github when github_url is set. One of github, upload.
    • github_url (string): https://github.com/owner/repo
    • github_branch (string): Branch or tag.
    • description (string)
    • domain (string): Comma-separated domains.
    • project_type (string): Default app.
    • files (file): ZIP of the source (multipart only, max 100 MiB).
    • build_type (string): auto (default), dockerfile or railpack; anything else means auto. One of auto, dockerfile, railpack.
    • base_directory (string): Subdirectory to build from (default ".").
    • dockerfile_path (string|null): Explicit Dockerfile path inside the project.
    • internal_port (integer|string): Port the app listens on (default 3000, clamped to 1-65535).

GET /api/projects/{id} ​

Get a project with its services.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: id

PATCH /api/projects/{id} ​

Update project settings.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id
  • Body (JSON):
    • name (string)
    • description (string|null)
    • github_url (string|null)
    • domain (string|null)
    • project_type (string)
    • publish_host_port (boolean): Publish host ports from the pool (opt-in).
    • build_type (string): auto (default), dockerfile or railpack; anything else means auto. One of auto, dockerfile, railpack.
    • base_directory (string): Subdirectory to build from (default ".").
    • dockerfile_path (string|null): Explicit Dockerfile path inside the project.
    • internal_port (integer|string): Port the app listens on (default 3000, clamped to 1-65535).

DELETE /api/projects/{id} ​

Delete a project, its containers, images and files.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id

GET /api/projects/{id}/build/detect ​

Detect how the project would be built.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: id

GET /api/projects/{id}/storage ​

Persistent volumes.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: id

POST /api/projects/{id}/storage ​

Add a persistent volume.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id
  • Body (JSON):
    • name (string, required): 1-32 letters, numbers, _ or -.
    • service_name (string, required)
    • mount_path (string, required): Absolute path in the container.

DELETE /api/projects/{id}/storage/{storageId} ​

Delete a persistent volume and its data.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id, storageId
  • Query parameters:
    • removeVolume (string, required): Confirms permanent data deletion. One of true.

GET /api/projects/{id}/env ​

List environment variables.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: id
  • Query parameters:
    • service (string): Only this service scope.

POST /api/projects/{id}/env ​

Create an environment variable.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id
  • Body (JSON):
    • key (string, required): Letters, digits and _, not starting with a digit.
    • value (string)
    • is_secret (boolean): Pass a build variable as a BuildKit secret.
    • service_name (string|null): Service the variable applies to; empty or absent means all services.
    • is_build_arg (boolean|null): Pass to the image build.
    • is_runtime (boolean|null): Set in the running container (default true).

POST /api/projects/{id}/env/bulk ​

Import KEY=VALUE lines.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id
  • Body (JSON):
    • content (string, required): .env text.
    • service_name (string|null): Service the variable applies to; empty or absent means all services.
    • is_build_arg (boolean|null): Pass to the image build.
    • is_runtime (boolean|null): Set in the running container (default true).

DELETE /api/projects/{id}/env/{envId} ​

Delete an environment variable.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id, envId

PATCH /api/projects/{id}/auto-deploy ​

Turn auto-deploy on push on or off (GitHub projects).

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id
  • Body (JSON):
    • enabled (boolean|null)

GET /api/projects/{id}/auto-deploy ​

Auto-deploy settings and webhook URL.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: id

Deployments ​

Deploy, redeploy, stop, restart, cancel, rollback, history, service domains.

MethodPathSummaryMarkers
GET/api/deployments/{projectId}Deployment history, newest first
GET/api/deployments/{projectId}/servicesServices of a project
GET/api/deployments/{projectId}/services/{serviceId}/sslSSL status of a service's domains
POST/api/deployments/{projectId}/services/{serviceId}/dns-checkCheck DNS of a service's domainsno read tokens
POST/api/deployments/{projectId}/services/{serviceId}/ssl/retryRetry HTTPS certificates for a serviceno read tokens
PUT/api/deployments/{projectId}/services/{serviceId}Set a service's domainsno read tokens
POST/api/deployments/{projectId}/deployDeploy (streamed build log)streams, no read tokens
POST/api/deployments/{projectId}/redeployRedeploy (streamed build log)streams, no read tokens
POST/api/deployments/{projectId}/stopStop the project's containers (streamed log)streams, no read tokens
POST/api/deployments/{projectId}/restartRestart the project's containers (streamed log)streams, no read tokens
POST/api/deployments/{projectId}/rollbackRoll back to an earlier deployment's images (streamed log)dangerous, streams, no read tokens
POST/api/deployments/{projectId}/cancelCancel the running build (streamed log)streams, no read tokens
GET/api/deployments/{projectId}/logsLast 100 log lines of every service
GET/api/deployments/{projectId}/statsCPU and memory of every service

GET /api/deployments/{projectId} ​

Deployment history, newest first.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: projectId
  • Query parameters:
    • limit (integer): Page size (default 10).
    • offset (integer)
    • status (string): Filter by status.
    • meta (string): 1 or true: answer {items, total} instead of an array. One of 1, true.

GET /api/deployments/{projectId}/services ​

Services of a project.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: projectId

GET /api/deployments/{projectId}/services/{serviceId}/ssl ​

SSL status of a service's domains.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: projectId, serviceId

POST /api/deployments/{projectId}/services/{serviceId}/dns-check ​

Check DNS of a service's domains.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: projectId, serviceId
  • Body (JSON):
    • domains (array<string>): Domains to check (max 10); default the service's domains.

POST /api/deployments/{projectId}/services/{serviceId}/ssl/retry ​

Retry HTTPS certificates for a service.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: projectId, serviceId

PUT /api/deployments/{projectId}/services/{serviceId} ​

Set a service's domains.

Writes the nginx vhost and requests certificates. An empty string or null removes every domain.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: projectId, serviceId
  • Body (JSON):
    • domain (string|null): Comma-separated domain list.

POST /api/deployments/{projectId}/deploy ​

Deploy (streamed build log).

The deploy keeps running if the client disconnects.

  • Auth: Authorization: Bearer session or API token
  • Markers: streams, no read tokens
  • Path parameters: projectId
  • Body (JSON):
    • trigger (string): Label stored on the deployment (default manual).
    • commit_message (string)
  • Response: streamed text/plain

POST /api/deployments/{projectId}/redeploy ​

Redeploy (streamed build log).

  • Auth: Authorization: Bearer session or API token
  • Markers: streams, no read tokens
  • Path parameters: projectId
  • Body (JSON):
    • trigger (string)
    • commit_message (string)
  • Response: streamed text/plain

POST /api/deployments/{projectId}/stop ​

Stop the project's containers (streamed log).

  • Auth: Authorization: Bearer session or API token
  • Markers: streams, no read tokens
  • Path parameters: projectId
  • Response: streamed text/plain

POST /api/deployments/{projectId}/restart ​

Restart the project's containers (streamed log).

  • Auth: Authorization: Bearer session or API token
  • Markers: streams, no read tokens
  • Path parameters: projectId
  • Response: streamed text/plain

POST /api/deployments/{projectId}/rollback ​

Roll back to an earlier deployment's images (streamed log).

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, streams, no read tokens
  • Path parameters: projectId
  • Body (JSON):
    • deploymentId (string, required)
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.
  • Response: streamed text/plain

POST /api/deployments/{projectId}/cancel ​

Cancel the running build (streamed log).

  • Auth: Authorization: Bearer session or API token
  • Markers: streams, no read tokens
  • Path parameters: projectId
  • Response: streamed text/plain

GET /api/deployments/{projectId}/logs ​

Last 100 log lines of every service.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: projectId

GET /api/deployments/{projectId}/stats ​

CPU and memory of every service.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: projectId

Databases ​

Managed databases and links to apps.

MethodPathSummaryMarkers
GET/api/databases/enginesSupported database engines and versions
GET/api/databasesList managed databases
GET/api/databases/links/by-app/{appProjectId}Database links of an app project
POST/api/databasesCreate (and start) a managed databaseno read tokens
GET/api/databases/{id}/connectionConnection details and credentials
GET/api/databases/{id}/linksApps linked to a database
POST/api/databases/{id}/linksLink a database to an app (injects a connection URL env var)no read tokens
DELETE/api/databases/{id}/links/{linkId}Remove a database linkno read tokens

GET /api/databases/engines ​

Supported database engines and versions.

  • Auth: Authorization: Bearer session or API token

GET /api/databases ​

List managed databases.

  • Auth: Authorization: Bearer session or API token

Database links of an app project.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: appProjectId

POST /api/databases ​

Create (and start) a managed database.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Body (JSON):
    • name (string, required): Max 120 characters.
    • engine (string, required): An engine id from GET /api/databases/engines. One of postgres, mysql, mariadb, redis, mongodb.
    • version (string): Image tag; default is the recommended version. tag and image are accepted as aliases.

GET /api/databases/{id}/connection ​

Connection details and credentials.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: id

Apps linked to a database.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: id

POST /api/databases/{id}/links ​

Link a database to an app (injects a connection URL env var).

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id
  • Body (JSON):
    • app_project_id (string, required)
    • service_name (string): Service of the app that gets the variable; empty means every service.
    • env_key (string): Variable name (default from the engine, e.g. DATABASE_URL).
    • overwrite (boolean): Replace an existing variable with that key.

Remove a database link.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: id, linkId

Domains ​

Panel (dashboard) domains, SSL and the ACME email.

MethodPathSummaryMarkers
GET/api/domains/ssl/emailACME account email
PUT/api/domains/ssl/emailSet the ACME account emailno read tokens
GET/api/domainsPanel domains with SSL status and access state
POST/api/domainsAdd a panel domainno read tokens
POST/api/domains/dns-checkCheck DNS of hostnamesno read tokens
GET/api/domains/{domain}/sslSSL status of a panel domain
POST/api/domains/{domain}/ssl/retryRetry HTTPS for a panel domainno read tokens
PUT/api/domains/{domain}/accessOnly allow dashboard access through this domainsession only
DELETE/api/domains/{domain}Remove a panel domainno read tokens

GET /api/domains/ssl/email ​

ACME account email.

  • Auth: Authorization: Bearer session or API token

PUT /api/domains/ssl/email ​

Set the ACME account email.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Body (JSON):
    • email (string|null)

GET /api/domains ​

Panel domains with SSL status and access state.

  • Auth: Authorization: Bearer session or API token

POST /api/domains ​

Add a panel domain.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Body (JSON):
    • domain (string, required)
    • port (integer|string, required): Target port 1-65535 (the dashboard port for the panel).

POST /api/domains/dns-check ​

Check DNS of hostnames.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Body (JSON):
    • domains (array<string>, required)

GET /api/domains/{domain}/ssl ​

SSL status of a panel domain.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: domain

POST /api/domains/{domain}/ssl/retry ​

Retry HTTPS for a panel domain.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: domain

PUT /api/domains/{domain}/access ​

Only allow dashboard access through this domain.

Turning it on needs the step-up password and a request through the proxy over HTTPS for that domain.

  • Auth: Authorization: Bearer session or API token
  • Markers: session only
  • Path parameters: domain
  • Body (JSON):
    • domainOnly (boolean, required)
    • password (string): Required when domainOnly is true.

DELETE /api/domains/{domain} ​

Remove a panel domain.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: domain

Files ​

The project file editor.

MethodPathSummaryMarkers
GET/api/files/{projectId}File tree of a project
GET/api/files/{projectId}/contentRead a file
PUT/api/files/{projectId}/contentWrite a fileno read tokens

GET /api/files/{projectId} ​

File tree of a project.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: projectId

GET /api/files/{projectId}/content ​

Read a file.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: projectId
  • Query parameters:
    • path (string, required): Path relative to the project.

PUT /api/files/{projectId}/content ​

Write a file.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: projectId
  • Query parameters:
    • path (string, required): Path relative to the project.
  • Body (JSON):
    • content (string, required): Whole new content (max 10 MiB).

Logs ​

Container logs.

MethodPathSummaryMarkers
GET/api/logs/{projectId}/containersContainers of a project and their state
GET/api/logs/{projectId}/stream/{containerName}Follow a container's logs (SSE)streams

GET /api/logs/{projectId}/containers ​

Containers of a project and their state.

  • Auth: Authorization: Bearer session or API token
  • Path parameters: projectId

GET /api/logs/{projectId}/stream/{containerName} ​

Follow a container's logs (SSE).

  • Auth: Authorization: Bearer API token, or ?token= (5 minute SSE token) for a dashboard session
  • Markers: streams
  • Path parameters: projectId, containerName
  • Query parameters:
    • token (string): SSE token from POST /api/auth/sse-token (not needed with a Bearer API token).
    • tail (integer): Number of past lines (default 200; negative means all).
  • Response: streamed text/event-stream

Ports ​

The host port pool.

MethodPathSummaryMarkers
GET/api/portsHost port pool and Docker port mappings
DELETE/api/ports/{port}Release a port from the poolno read tokens

GET /api/ports ​

Host port pool and Docker port mappings.

  • Auth: Authorization: Bearer session or API token

DELETE /api/ports/{port} ​

Release a port from the pool.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: port

GitHub ​

GitHub App setup, repositories and the push webhook.

MethodPathSummaryMarkers
POST/api/github/manifestStart creating the GitHub App (manifest flow)no read tokens
GET/api/github/manifest/callbackGitHub App manifest callback (browser redirect)
GET/api/github/app-statusWhether the GitHub App is configured
POST/api/github/check-installationLook up the App installationno read tokens
POST/api/github/install-sessionStart an install session (returns the install URL)no read tokens
GET/api/github/installRedirect to the App install page
GET/api/github/setupGitHub App setup callback (browser redirect)
GET/api/github/callbackLegacy GitHub callback (browser redirect)
GET/api/github/statusGitHub connection status
GET/api/github/installationsApp installations
GET/api/github/reposRepositories the App can access
GET/api/github/branchesBranches of a repository
GET/api/github/tagsTags of a repository
POST/api/github/disconnectForget the App installationno read tokens
POST/api/github/webhookGitHub push webhook

POST /api/github/manifest ​

Start creating the GitHub App (manifest flow).

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Body (JSON):
    • appName (string, required)
    • returnUrl (string): Dashboard URL to return to.

GET /api/github/manifest/callback ​

GitHub App manifest callback (browser redirect).

  • Auth: none
  • Query parameters:
    • code (string)
    • state (string)
    • installation_id (string)
  • Response: text/html

GET /api/github/app-status ​

Whether the GitHub App is configured.

  • Auth: Authorization: Bearer session or API token

POST /api/github/check-installation ​

Look up the App installation.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens

POST /api/github/install-session ​

Start an install session (returns the install URL).

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Body (JSON):
    • returnUrl (string): Alias: return_url.

GET /api/github/install ​

Redirect to the App install page.

  • Auth: Authorization: Bearer session or API token
  • Query parameters:
    • return_url (string)
  • Response: text/html

GET /api/github/setup ​

GitHub App setup callback (browser redirect).

  • Auth: none
  • Query parameters:
    • installation_id (string)
    • state (string)
  • Response: text/html

GET /api/github/callback ​

Legacy GitHub callback (browser redirect).

  • Auth: none
  • Query parameters:
    • installation_id (string)
    • state (string)
  • Response: text/html

GET /api/github/status ​

GitHub connection status.

  • Auth: Authorization: Bearer session or API token

GET /api/github/installations ​

App installations.

  • Auth: Authorization: Bearer session or API token

GET /api/github/repos ​

Repositories the App can access.

  • Auth: Authorization: Bearer session or API token
  • Query parameters:
    • owner (string): Only this account.

GET /api/github/branches ​

Branches of a repository.

  • Auth: Authorization: Bearer session or API token
  • Query parameters:
    • repo (string, required): owner/name
    • type (string): Repository visibility hint used to pick the installation token.

GET /api/github/tags ​

Tags of a repository.

  • Auth: Authorization: Bearer session or API token
  • Query parameters:
    • repo (string, required): owner/name
    • type (string): Repository visibility hint used to pick the installation token.

POST /api/github/disconnect ​

Forget the App installation.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens

POST /api/github/webhook ​

GitHub push webhook.

Signed by GitHub (X-Hub-Signature-256 over the raw body). Queues auto-deploys.

  • Auth: GitHub webhook signature (X-Hub-Signature-256)
  • Headers:
    • X-Hub-Signature-256 (string, required)
    • X-GitHub-Event (string, required)
  • Body (JSON):
    • ref (string)
    • repository (object)
    • head_commit (object|null)
    • pusher (object)
    • deleted (boolean)

System ​

Host metrics, logs, version and host maintenance.

MethodPathSummaryMarkers
GET/api/system/statsHost metrics
GET/api/system/logs/{service}Follow a Docklift container's logs (SSE)streams
GET/api/system/quickCPU and memory percent
GET/api/system/ipServer IP addresses
POST/api/system/purgeRemove unused Docklift images and build cachedangerous, no read tokens
POST/api/system/rebootReboot the hostdangerous, no read tokens
POST/api/system/resetRestart the Docklift containersdangerous, no read tokens
POST/api/system/executeRun a shell command on the host (30 s, 1 MiB output)dangerous, no read tokens
GET/api/system/versionVersion and update status
POST/api/system/update-systemUpdate the host OS packagesdangerous, no read tokens
POST/api/system/upgradeUpgrade Dockliftdangerous, no read tokens

GET /api/system/stats ​

Host metrics.

  • Auth: Authorization: Bearer session or API token

GET /api/system/logs/{service} ​

Follow a Docklift container's logs (SSE).

  • Auth: Authorization: Bearer API token, or ?token= (5 minute SSE token) for a dashboard session
  • Markers: streams
  • Path parameters: service
  • Query parameters:
    • token (string): SSE token from POST /api/auth/sse-token (not needed with a Bearer API token).
    • tail (integer): Number of past lines (default 200; negative means all).
  • Response: streamed text/event-stream

GET /api/system/quick ​

CPU and memory percent.

  • Auth: Authorization: Bearer session or API token

GET /api/system/ip ​

Server IP addresses.

  • Auth: Authorization: Bearer session or API token

POST /api/system/purge ​

Remove unused Docklift images and build cache.

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, no read tokens
  • Body (JSON):
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.

POST /api/system/reboot ​

Reboot the host.

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, no read tokens
  • Body (JSON):
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.

POST /api/system/reset ​

Restart the Docklift containers.

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, no read tokens
  • Body (JSON):
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.

POST /api/system/execute ​

Run a shell command on the host (30 s, 1 MiB output).

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, no read tokens
  • Body (JSON):
    • command (string, required)
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.

GET /api/system/version ​

Version and update status.

  • Auth: Authorization: Bearer session or API token
  • Query parameters:
    • refresh (string): Check for a new release now. One of 1, true.

POST /api/system/update-system ​

Update the host OS packages.

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, no read tokens
  • Body (JSON):
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.

POST /api/system/upgrade ​

Upgrade Docklift.

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, no read tokens
  • Body (JSON):
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.

Backup ​

Backups and restore.

MethodPathSummaryMarkers
GET/api/backupList backups
GET/api/backup/uploadsList uploaded backup files
DELETE/api/backup/uploads/{filename}Delete an uploaded backup fileno read tokens
POST/api/backup/createCreate a backup (streamed log)streams, no read tokens
POST/api/backup/restore/{filename}Restore a server-created backup (streamed log)dangerous, streams, no read tokens
DELETE/api/backup/{filename}Delete a backupno read tokens
GET/api/backup/download/{filename}Download a backup ZIPno read tokens
POST/api/backup/uploadUpload a backup ZIP without restoring itno read tokens
POST/api/backup/restore-uploadUpload and restore a backup in one request (streamed log)dangerous, streams, no read tokens
POST/api/backup/restore-from-upload/{filename}Restore a previously uploaded backup (streamed log)dangerous, streams, no read tokens
POST/api/backup/clear-critical-restoreClear the restore-critical sealdangerous, no read tokens
GET/api/backup/critical-statusRestore-critical seal status

GET /api/backup ​

List backups.

  • Auth: Authorization: Bearer session or API token

GET /api/backup/uploads ​

List uploaded backup files.

  • Auth: Authorization: Bearer session or API token

DELETE /api/backup/uploads/{filename} ​

Delete an uploaded backup file.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: filename

POST /api/backup/create ​

Create a backup (streamed log).

  • Auth: Authorization: Bearer session or API token
  • Markers: streams, no read tokens
  • Body (JSON):
    • name (string): Label for the file name (default docklift).
  • Response: streamed text/plain

POST /api/backup/restore/{filename} ​

Restore a server-created backup (streamed log).

Replaces the database and project state; the server restarts after a committed restore.

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, streams, no read tokens
  • Path parameters: filename
  • Body (JSON):
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.
  • Response: streamed text/plain

DELETE /api/backup/{filename} ​

Delete a backup.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: filename

GET /api/backup/download/{filename} ​

Download a backup ZIP.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Path parameters: filename
  • Response: application/zip

POST /api/backup/upload ​

Upload a backup ZIP without restoring it.

  • Auth: Authorization: Bearer session or API token
  • Markers: no read tokens
  • Body (multipart/form-data):
    • backup (file, required): The backup ZIP (max 500 MiB).

POST /api/backup/restore-upload ​

Upload and restore a backup in one request (streamed log).

Before the first admin exists it is authorised by the X-Setup-Token header instead.

  • Auth: Authorization: Bearer session or API token; before the first admin exists, the X-Setup-Token header instead
  • Markers: dangerous, streams, no read tokens
  • Headers:
    • X-Setup-Token (string): Fresh install only.
  • Body (multipart/form-data):
    • backup (file, required): The backup ZIP (max 500 MiB).
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.
  • Response: streamed text/plain

POST /api/backup/restore-from-upload/{filename} ​

Restore a previously uploaded backup (streamed log).

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, streams, no read tokens
  • Path parameters: filename
  • Body (JSON):
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.
  • Response: streamed text/plain

POST /api/backup/clear-critical-restore ​

Clear the restore-critical seal.

  • Auth: Authorization: Bearer session or API token
  • Markers: dangerous, no read tokens
  • Body (JSON):
    • password (string): Account password (step-up). Not needed with an API token created with allow_dangerous.

GET /api/backup/critical-status ​

Restore-critical seal status.

  • Auth: Authorization: Bearer session or API token

Meta ​

This document, the WebSocket terminal and the MCP endpoint.

MethodPathSummaryMarkers
GET/api/openapi.jsonThis OpenAPI document
GET/ws/terminalWebSocket host terminal (upgrade)session only
POST/mcpMCP endpoint (Streamable HTTP, stateless JSON-RPC)
GET/mcpMCP endpoint: no server stream (405)
DELETE/mcpMCP endpoint: no sessions (405)

GET /api/openapi.json ​

This OpenAPI document.

  • Auth: Authorization: Bearer session or API token

GET /ws/terminal ​

WebSocket host terminal (upgrade).

Needs a trusted Origin and ?token= from POST /api/auth/terminal-token, then the account password inside the socket.

  • Auth: single-use terminal token (?token= from POST /api/auth/terminal-token)
  • Markers: session only
  • Query parameters:
    • token (string, required)

POST /mcp ​

MCP endpoint (Streamable HTTP, stateless JSON-RPC).

Model Context Protocol for AI agents. Bearer API token only. See https://docklift.dev/guide/mcp

  • Auth: Authorization: Bearer dl_... API token only
  • Headers:
    • MCP-Protocol-Version (string)
    • Accept (string, required): application/json, text/event-stream
  • Body (JSON):
    • jsonrpc (string, required)
    • id (integer|string)
    • method (string, required)
    • params (object)

GET /mcp ​

MCP endpoint: no server stream (405).

  • Auth: Authorization: Bearer dl_... API token only

DELETE /mcp ​

MCP endpoint: no sessions (405).

  • Auth: Authorization: Bearer dl_... API token only

Open-source self-hosted PaaS for Docker