POST
/
applications
/
public
curl --request POST \
  --url https://app.coolify.io/api/v1/applications/public \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "project_uuid": "<string>",
  "server_uuid": "<string>",
  "environment_name": "<string>",
  "git_repository": "<string>",
  "git_branch": "<string>",
  "build_pack": "nixpacks",
  "ports_exposes": "<string>",
  "destination_uuid": "<string>",
  "name": "<string>",
  "description": "<string>",
  "domains": "<string>",
  "git_commit_sha": "<string>",
  "docker_registry_image_name": "<string>",
  "docker_registry_image_tag": "<string>",
  "is_static": true,
  "install_command": "<string>",
  "build_command": "<string>",
  "start_command": "<string>",
  "ports_mappings": "<string>",
  "base_directory": "<string>",
  "publish_directory": "<string>",
  "health_check_enabled": true,
  "health_check_path": "<string>",
  "health_check_port": "<string>",
  "health_check_host": "<string>",
  "health_check_method": "<string>",
  "health_check_return_code": 123,
  "health_check_scheme": "<string>",
  "health_check_response_text": "<string>",
  "health_check_interval": 123,
  "health_check_timeout": 123,
  "health_check_retries": 123,
  "health_check_start_period": 123,
  "limits_memory": "<string>",
  "limits_memory_swap": "<string>",
  "limits_memory_swappiness": 123,
  "limits_memory_reservation": "<string>",
  "limits_cpus": "<string>",
  "limits_cpuset": "<string>",
  "limits_cpu_shares": 123,
  "custom_labels": "<string>",
  "custom_docker_run_options": "<string>",
  "post_deployment_command": "<string>",
  "post_deployment_command_container": "<string>",
  "pre_deployment_command": "<string>",
  "pre_deployment_command_container": "<string>",
  "manual_webhook_secret_github": "<string>",
  "manual_webhook_secret_gitlab": "<string>",
  "manual_webhook_secret_bitbucket": "<string>",
  "manual_webhook_secret_gitea": "<string>",
  "redirect": "www",
  "instant_deploy": true,
  "dockerfile": "<string>",
  "docker_compose_location": "<string>",
  "docker_compose_raw": "<string>",
  "docker_compose_custom_start_command": "<string>",
  "docker_compose_custom_build_command": "<string>",
  "docker_compose_domains": [
    "<any>"
  ],
  "watch_paths": "<string>"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

Body

application/json

Application object that needs to be created.

The body is of type object.

Response

200

Application created successfully.