curl --request POST \
--url https://api.camposcloud.com/v1/apps/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'appName=My Application' \
--form mainFile=index.py \
--form exposedViaWeb=false \
--form memoryMB=256 \
--form autoRestartEnabled=true \
--form startupCommand= \
--form runtimeEnvironment=python \
--form teamId=60c72b2f9b1e8d001c8e4f3b \
--form file=@example-file
{
"_id": "60c72b2f9b1e8d001c8e4f3a",
"currentResourceMetrics": {
"timestamp": "2025-07-19T17:57:05.069Z",
"online": true,
"uptime": 35980,
"cpuUsagePercent": 0,
"memoryUsageBytes": 43671552,
"memoryLimitBytes": 268435456,
"networkRxBytes": 228961,
"networkTxBytes": 228190
},
"containerId": "da886ad3-88e9-4012-b893-130e87f6b747",
"teamId": "60c72b2f9b1e8d001c8e4f3b",
"restartRequired": false,
"name": "My Application",
"userId": "60c72b2f9b1e8d001c8e4f3a",
"allocatedMemoryMB": 256,
"allocatedVCpu": 8,
"workerNodeId": {
"_id": "60c72b2f9b1e8d001c8e4f3c",
"nodeName": "ODIN"
},
"containerImage": "kevencampos/camposcloud-python",
"exposedViaWeb": false,
"startupCommand": "python -u index.py",
"installDependenciesCmd": "pip install -r requirements.txt",
"runtimeEnvironment": "python",
"autoRestartEnabled": false,
"status": "active",
"createdAt": "2025-07-19T00:02:54.455Z",
"updatedAt": "2025-07-19T17:57:05.069Z"
}
This endpoint creates a new application.
curl --request POST \
--url https://api.camposcloud.com/v1/apps/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'appName=My Application' \
--form mainFile=index.py \
--form exposedViaWeb=false \
--form memoryMB=256 \
--form autoRestartEnabled=true \
--form startupCommand= \
--form runtimeEnvironment=python \
--form teamId=60c72b2f9b1e8d001c8e4f3b \
--form file=@example-file
{
"_id": "60c72b2f9b1e8d001c8e4f3a",
"currentResourceMetrics": {
"timestamp": "2025-07-19T17:57:05.069Z",
"online": true,
"uptime": 35980,
"cpuUsagePercent": 0,
"memoryUsageBytes": 43671552,
"memoryLimitBytes": 268435456,
"networkRxBytes": 228961,
"networkTxBytes": 228190
},
"containerId": "da886ad3-88e9-4012-b893-130e87f6b747",
"teamId": "60c72b2f9b1e8d001c8e4f3b",
"restartRequired": false,
"name": "My Application",
"userId": "60c72b2f9b1e8d001c8e4f3a",
"allocatedMemoryMB": 256,
"allocatedVCpu": 8,
"workerNodeId": {
"_id": "60c72b2f9b1e8d001c8e4f3c",
"nodeName": "ODIN"
},
"containerImage": "kevencampos/camposcloud-python",
"exposedViaWeb": false,
"startupCommand": "python -u index.py",
"installDependenciesCmd": "pip install -r requirements.txt",
"runtimeEnvironment": "python",
"autoRestartEnabled": false,
"status": "active",
"createdAt": "2025-07-19T00:02:54.455Z",
"updatedAt": "2025-07-19T17:57:05.069Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Application data to create
The body is of type object
.
Application created successfully
The response is of type object
.