API Reference
- Introduction
- Authorization
- GETVersion
- GETHealthcheck
- GETEnable API
- GETDisable API
- Servers
- Teams
- Projects
- Private Keys
- Deployments
- Resources
- Applications
- Databases
- Services
Applications
Create (Dockerfile)
Create new application based on a simple Dockerfile.
POST
/
applications
/
dockerfile
Copy
curl --request POST \
--url https://app.coolify.io/api/v1/applications/dockerfile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project_uuid": "<string>",
"server_uuid": "<string>",
"environment_name": "<string>",
"dockerfile": "<string>",
"build_pack": "nixpacks",
"ports_exposes": "<string>",
"destination_uuid": "<string>",
"name": "<string>",
"description": "<string>",
"domains": "<string>",
"docker_registry_image_name": "<string>",
"docker_registry_image_tag": "<string>",
"ports_mappings": "<string>",
"base_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
}'
Copy
This response does not have an example.
Authorizations
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.
Copy
curl --request POST \
--url https://app.coolify.io/api/v1/applications/dockerfile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project_uuid": "<string>",
"server_uuid": "<string>",
"environment_name": "<string>",
"dockerfile": "<string>",
"build_pack": "nixpacks",
"ports_exposes": "<string>",
"destination_uuid": "<string>",
"name": "<string>",
"description": "<string>",
"domains": "<string>",
"docker_registry_image_name": "<string>",
"docker_registry_image_tag": "<string>",
"ports_mappings": "<string>",
"base_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
}'
Copy
This response does not have an example.
Assistant
Responses are generated using AI and may contain mistakes.