Skip to Content
CloudAPI and integrationsPublic M2M APIPublic M2M API — hosting

Public M2M API — hosting

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/hosting

Exported methods: GET, POST

GET

  • Resource scopes: hosting:read
  • Response keys observed across outcomes: apps, appsDomain, data

POST

  • Resource scopes: hosting:write
  • Explicit response statuses: 201, 404, 409, 422
  • Explicit error codes: conflict, invalid_request, not_found
  • Response keys observed across outcomes: app

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
branchstringYesNo—min(1), max(255), default("main")
buildPackenumYesNonixpacks, dockerfile, dockercompose, staticdefault("nixpacks")
customDomainstringYesNo—min(1), max(253)
hostingTenantIdstringYesNo—min(1)
imagestringYesNo—min(1), max(255)
namestringNoNo—min(1), max(63)
portstringYesNo——
portsExposesstringYesNo——
repoUrlstringYesNo—min(1)
sourceenumYesNogit, imagedefault("git")
tenantIdstringYesNo—min(1)

/api/v1/hosting/apps/{id}

Exported methods: GET, PATCH, DELETE

GET

  • Resource scopes: hosting:read
  • Path parameters: id
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: app, coolifyAppMissing, coolifyStatus, lastDeployment

PATCH

  • Resource scopes: hosting:write
  • Path parameters: id
  • Explicit response statuses: 404, 409, 422
  • Explicit error codes: conflict, invalid_request, not_found
  • Response keys observed across outcomes: app

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
branchstringYesNo—min(1), max(255)
customDomainstringYesYes—max(253)
namestringYesNo—min(1), max(63)

DELETE

  • Resource scopes: hosting:write
  • Path parameters: id
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: coolifyDeleted, deletedId, ok

Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.

/api/v1/hosting/apps/{id}/deploy

Exported methods: POST

POST

  • Resource scopes: hosting:write
  • Path parameters: id
  • Explicit response statuses: 404, 422
  • Explicit error codes: invalid_request, not_found
  • Response keys observed across outcomes: action, appId, deployment, ok, status

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionenumYesNodeploy, redeploy, restart, stop, startdefault("deploy")

/api/v1/hosting/apps/{id}/envs

Exported methods: GET, DELETE

GET

  • Resource scopes: hosting:read
  • Path parameters: id
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: data

DELETE

  • Resource scopes: hosting:write
  • Path parameters: id
  • Query parameters: envId, key
  • Explicit response statuses: 404, 422
  • Explicit error codes: invalid_request, not_found
  • Response keys observed across outcomes: deletedEnvId, key, ok

Provide a numeric envId or an existing key in query or JSON. The app is selected by path ID. The handler resolves a key to an environment ID before deleting it; verify the application and variable.

JSON properties observed: envId, key.

These names are read by the handler; they are not a complete schema or a promise that every property applies to every branch. Check the validation messages and operation result.

/api/v1/hosting/apps/{id}/logs

Exported methods: GET

GET

  • Resource scopes: hosting:read
  • Path parameters: id
  • Query parameters: lines
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: appId, deployments, logs, status