API permissions

Each API token belongs to the user and active team that created it. Its permissions determine which endpoints it can use and whether supported responses can include sensitive values. Its access determines which projects, environments, and resources it can reach.

Choose the smallest permission set and the narrowest access required by the integration.

Permission levels

PermissionAllowsImportant restrictions
readList and inspect resources.Sensitive response values remain redacted.
read:sensitiveRead secrets, logs, passwords, private keys, environment values, and Compose content returned by supported endpoints.Coolify also adds read. Most sensitive values are returned only when the token owner is a team administrator or owner. Container logs need only this permission.
writeCreate and update resources through write endpoints.It cannot delete. Every DELETE request requires delete or root.
deleteDelete resources, environment variables, storages, backups, scheduled tasks, and tags, and detach a tag from a resource.Every DELETE endpoint requires delete or root.
deployTrigger deployments, restarts, stops, cancellations, and deploy webhooks (/api/v1/deploy).Some write operations that run on a server at once also require deploy. See Operation-specific checks.
rootBypass the read, read:sensitive, write, write:sensitive, delete, and deploy checks on API endpoints.It remains team-bound and does not bypass instance-wide API access, the IP allowlist, the token's access, or the role checks of the token owner.

Selecting root in the dashboard removes the other permissions because they are unnecessary. It does not provide access to resources owned by another team.

A token never gets more access than its owner. Team administrators and owners can select every permission. A member can select only the permissions that their own access in the team includes. See Roles & Permissions.

write:sensitive

write:sensitive is only for PATCH /api/v1/settings/email, which changes the instance email settings. Only team administrators and owners can give it to a token. The dashboard has no checkbox for it, so use a root token for this endpoint.


If you upgraded from a release earlier than v4.6.0, review existing integrations that send DELETE requests. Edit affected tokens to add delete for operations they still need. The token owner's role and resource access are checked separately.

Access

Each token has one of two Resources settings:

  • All resources in the team lets the token use every project, resource, and team-level endpoint that its permissions allow.
  • Selected projects, environments, or resources limits the token to the items in Selected. A selected project includes its environments and resources. A selected environment includes its resources.

A limited token can use only the endpoints under /applications, /services, /databases, /projects, /deploy, /deployments, /resources, /version, and /vulnerabilities. Other endpoints, such as servers, keys, Git sources, S3 storages, cloud tokens, notifications, and the team, return 403 Forbidden:

{
  "message": "This API token is limited to selected projects, environments, or resources, so it cannot use this endpoint."
}

List endpoints return only the projects, environments, and resources that the token can access. Coolify also applies the token's access to changes. The response message explains when the token's limits block a change.

A limited token also:

  • Cannot read or reference team and server shared variables.
  • Cannot use team credentials, such as private keys, git sources, and S3 storages, that its resources do not use yet.
  • Can place resources only on servers that already run a resource inside its scope.
Heads up

A limit is not a server boundary. A token with write can deploy a Docker Compose file with bind mounts of the host file system or privileged containers. It therefore has root access to every server that runs a resource inside its scope. When staging and production use the same server, a write token for staging can reach production.

To keep a limited token away from other resources:

  • Give it only read and deploy when it does not need to change configuration.
  • Run the resources of each environment on their own servers.

A member who has access only to some projects or resources can create only limited tokens.

If you delete a selected project, environment, or resource, the access list of the token in Issued tokens shows it as Unavailable project, Unavailable environment, or Unavailable resource. A token of a member then stops working with This API token has more access than you have in this team. Revoke it and create a new token. Edit the token and remove the unavailable item.


Team and role scope

Coolify records the active team when the token is created. Switching teams later does not change an issued token.

  • Create a separate token for each team an integration must access.
  • Removing the token owner from the team makes the token invalid.
  • Coolify checks the token against its owner's current access on every request. If the owner loses access that the token uses, the token stops working and returns 403 Forbidden with This API token has more access than you have in this team. Revoke it and create a new token.
  • Some endpoints also need the token owner to be a team administrator or owner, whatever the token permissions. For example, cloud tokens (/cloud-tokens) and audit events (/audit-events) return 403 Forbidden to the token of a member.
  • Instance-wide API access and IP allowlist controls still apply to every self-hosted REST API request, including with root. The instance-administrator endpoints and the MCP server check only the IP allowlist. They work while API access is disabled.
  • A team that requires two-factor authentication does not block its API tokens. The requirement applies only to dashboard sign-in.

Sensitive response data

Endpoint access and sensitive-data access are separate checks. A request with read may succeed while passwords, private keys, environment values, logs, or Compose content remain redacted.

Add read:sensitive only when the integration needs supported sensitive fields. For most fields, the token must have that permission, and its owner must be a team administrator or owner. The token of a Member gets the secrets of an application, service, database, or environment variable when the access of the Member includes Read secrets on that resource. Team credentials and server secrets stay hidden from Members. Container logs are the exception: they need only read:sensitive, also for the token of a member. A root token can also receive supported sensitive data, but it should be reserved for integrations that need full API access.

Locked environment variable values are never returned, also not to a read:sensitive or root token. Coolify also hides them in the generated Compose content and hides the connection URLs of a database with a locked password.

Server data in application, service, and database responses, such as the nested server settings, the Sentinel token, log drain keys, and the saved proxy configuration, is returned only to a token that can read sensitive data and has access to All resources in the team. Servers are team-level, so a token limited to selected projects, environments, or resources does not receive these values.


Choose the least privilege

  • Use read for inventory, monitoring, and status checks.
  • Use deploy for a deployment-only CI or automation workflow.
  • Use write only when the integration must change resource configuration.
  • Add delete only when the integration must delete resources or their settings.
  • Add read:sensitive only when redacted responses are insufficient.
  • Limit the token to the projects, environments, or resources it needs when it does not use team-level endpoints.
  • Use root only when the integration must call endpoints across permission levels or manage instance-wide API functions.

Follow API Tokens to create, store, edit, roll, and revoke credentials. Each endpoint under Endpoints identifies the permission required for that operation.

Operation-specific checks

These operations need more than the usual permission of their HTTP method. root passes every permission check in this table. In the paths, {type} is applications, services, or databases.

OperationEndpointPermissions
Read container logsGET /{type}/{uuid}/logs, GET /applications/{uuid}/previews/{pull_request_id}/logs, GET /services/{uuid}/applications/{app_uuid}/logs, GET /services/{uuid}/databases/{database_uuid}/logsread:sensitive
List the registry logins of a serverGET /servers/{uuid}/registriesread:sensitive
Read the command and output of scheduled tasksGET /applications/{uuid}/scheduled-tasks and GET /services/{uuid}/scheduled-tasks, with their /executionsread. The command and output are returned only with read:sensitive and a token owner who is a team administrator or owner, or a Member with Read secrets on the resource.
Read the saved proxy configuration and server validation logsServer data in responses, such as GET /servers/{uuid} and GET /servers/{uuid}/proxyread. These fields are returned only with read:sensitive and a token owner who is a team administrator or owner.
List the keys of a secret managerGET /{type}/{uuid}/secret-manager/keyswrite
Upload a database import filePOST /databases/{uuid}/imports/uploads, POST /services/{uuid}/databases/{database_uuid}/imports/uploadswrite
Start a database import from any source (upload, S3, or server path)POST /databases/{uuid}/imports, POST /services/{uuid}/databases/{database_uuid}/importswrite and deploy
Create or update a resource with instant_deployApplication, database, and service create endpoints, and PATCH /{type}/{uuid}write and deploy
Make a database public or privatePATCH /databases/{uuid} or PATCH /services/{uuid}/databases/{database_uuid} with a changed is_publicwrite and deploy
Add a mount outside the resource directory or a file mount with contentPOST /{type}/{uuid}/storageswrite and deploy
Change the content of a file mountPATCH /{type}/{uuid}/storages with a changed contentwrite and deploy
Clone a resource with its volume dataPOST /{type}/{uuid}/clone with clone_volumeswrite and deploy
Create or update an enabled scheduled taskPOST and PATCH under /applications/{uuid}/scheduled-tasks and /services/{uuid}/scheduled-tasks. A new task is enabled by default.write and deploy
Create or update a database backup with backup_nowPOST /databases/{uuid}/backups, PATCH /databases/{uuid}/backups/{scheduled_backup_uuid}write and deploy
Save a volume backup with stop_during_backupPUT /{type}/{uuid}/storages/{storage_uuid}/backupswrite and deploy
Run a volume backup nowPOST /{type}/{uuid}/storages/{storage_uuid}/backups/runwrite and deploy
Open a preview, or change its pull request URL, Git type, Docker tag, or commitPOST /applications/{uuid}/previewsdeploy and write. With deploy alone, the token can only redeploy an existing preview.
Open a preview or change its Docker tag with a deploy request/api/v1/deploy with pr and a new docker_tagdeploy and write
Log in to a registry or check a registry loginPOST /servers/{uuid}/registries, POST /servers/{uuid}/registries/{registry}/checkwrite and deploy
Run a Docker cleanup nowPOST /servers/{uuid}/docker-cleanup/runwrite and deploy
Turn on the deletion of unused volumesPATCH /servers/{uuid}/docker-cleanup with delete_unused_volumeswrite and deploy
Change log drain or Sentinel settingsPATCH /servers/{uuid}/log-drains, PATCH /servers/{uuid}/sentinelwrite and deploy
Save and apply the proxy configurationPUT /servers/{uuid}/proxy/configurationwrite and deploy
Change the proxy typePATCH /servers/{uuid} or PATCH /servers/{uuid}/proxy with a new proxy_typewrite and deploy
Validate a server and install itPOST /servers/{uuid}/validate with installwrite and deploy
Create a cloud server with a cloud-init or post-install script, extra SSH keys, or instant_validatePOST /servers/hetzner, POST /servers/vultr, POST /servers/digitalocean, POST /servers/hostingerwrite and deploy
Check or start a server importGET /servers/import/check, POST /servers/importwrite and deploy
Delete a server with its resources or from the cloud providerDELETE /servers/{uuid} with force or delete_from_providerdelete and deploy
Disable the API, or enable or disable the MCP serverPOST /api/v1/disable, POST /api/v1/mcp/enable, POST /api/v1/mcp/disablewrite, in a root-team token of an instance administrator
Read the instance email settingsGET /settings/emailread, in a root-team token of an instance administrator
Change the instance email settingsPATCH /settings/emailwrite:sensitive, in a root-team token of an instance administrator

An instance administrator is an administrator or owner of the root team. A root-team token is a token created while the root team is active. Other tokens receive 403 Forbidden from the instance endpoints.

Git provider webhook secrets (the GitHub App webhook secret, the GitLab App webhook token, and the manual webhook secrets of an application) are configuration and require write. A push webhook that is signed with one of these secrets can start a deployment, so give write only to integrations that you trust to change what a resource deploys.

Only recognized token permissions are accepted. Resource and credential ownership is checked against the resource's team, even if the user switches teams in another browser tab.

On this page