Get project contents
Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status.
Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status.
This endpoint provides the full configuration and state details of a specific Docker Compose project.
Use this to inspect project settings, review the compose file, or check the overall project health.
API Token authentication
Virtual Machine ID
1268054Docker Compose project name using alphanumeric characters, dashes, and underscores only
my-docker-projectSuccess response
Contents of docker-compose file
services: my-app: image: nginx ports: - "80:80" my-db: image: mysqlProject environment variables
VARIABLE1=value1 VARIABLE2=value2Unauthenticated response
Validation error response
Error response
GET /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"content": "services:\n my-app:\n image: nginx\n ports:\n - \"80:80\"\n my-db:\n image: mysql",
"environment": "VARIABLE1=value1\nVARIABLE2=value2"
}Last updated
Was this helpful?