Applications
Upload a new application to Discloud
Application file to upload (.ZIP format)
Project ID to link the application to on upload (optional).
Upload response
Authentication error
Missing required file
POST /v2/upload HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 36
{
"file": "binary",
"projectId": "text"
}{
"status": "ok",
"statusCode": 200,
"message": "Your application has been successfully uploaded.",
"app": {
"id": "1745338954955",
"type": 0,
"name": "Bot javascript",
"avatarURL": "https://i.imgur.com/bWhx7OT.png",
"ram": 100,
"apts": "",
"clusterName": "fenrir",
"exitCode": 0,
"online": true,
"ramKilled": false,
"syncGit": null,
"mainFile": "index.js",
"lang": "javascript",
"version": "latest",
"addedAtTimestamp": 1719010867306,
"autoRestart": false
}
}Retrieves information about a specific application or all applications
ID of the application or "all" to retrieve all applications
Application information retrieved successfully
Authentication error
Application not found
GET /v2/app/{appID} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "The information of your application has been loaded.",
"apps": {
"id": "1745338954955",
"avatarURL": "https://i.ibb.co/xSxd0Hv1/Uma105.png",
"name": "Temp2 - JS",
"type": 0,
"online": true,
"ramKilled": false,
"exitCode": 0,
"ram": 100,
"mainFile": "src/index.js",
"lang": "javascript",
"autoDeployGit": "no",
"autoRestart": false
}
}Retrieves status information about a specific application or all applications
ID of the application or "all" to retrieve status for all applications
Application status retrieved successfully
Authentication error
Application not found
GET /v2/app/{appID}/status HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "The status of your applications were loaded",
"apps": {
"id": "1745338954955",
"container": "Online",
"cpu": "0.00%",
"memory": "39.9MB/100MB",
"ssd": "1.999GB",
"netIO": {
"down": "61KB",
"up": "16KB"
},
"last_restart": "30 minutes",
"startedAt": "2025-04-22T16:24:55.978921501Z"
}
}Retrieves logs for a specific application or all applications
ID of the application or "all" to retrieve logs for all applications
Application logs retrieved successfully
Authentication error
Application not found
GET /v2/app/{appID}/logs HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "The logs of your applications were loaded",
"apps": {
"id": "1745338954955",
"terminal": {
"big": "2025-04-22T14:30:00.123Z Application starting...\n2025-04-22T14:30:01.234Z Environment: production\n2025-04-22T14:30:01.567Z Loading configuration files...\n2025-04-22T14:30:02.123Z Database connection established\n2025-04-22T14:30:02.456Z Initializing server modules\n2025-04-22T14:30:03.678Z Server listening on port 8080\n2025-04-22T14:30:04.123Z WebSocket service initialized\n2025-04-22T14:30:04.567Z Cache warming up\n2025-04-22T14:30:05.234Z Application startup complete\n2025-04-22T14:30:06.123Z Processing initial requests",
"small": "2025-04-22T14:30:00.123Z Application starting...\n2025-04-22T14:30:02.123Z Database connection established\n2025-04-22T14:30:03.678Z Server listening on port 8080\n2025-04-22T14:30:05.234Z Application startup complete",
"url": "discloud.app"
}
}
}Generates and retrieves backup for a specific application or all applications
ID of the application or "all" to retrieve backups for all applications
Application backup generated successfully
Authentication error
Application not found
GET /v2/app/{appID}/backup HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "The backup of your application will be generated successfully",
"backups": {
"id": "1745338954955",
"url": "https://discloud.app/backup/A1B2C3D4E5F6G7H8I9J0K1L2M3N4O5P6Q7R8S9T0U1V2W3X4Y5Z6.zip"
}
}Starts a specific application or all applications
ID of the application or "all" to start all applications
Application started successfully
Authentication error
Application not found
PUT /v2/app/{appID}/start HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "Its application was connected.",
"appStatus": {
"online": true,
"ramKilled": false,
"exitCode": 0
}
}Restarts a specific application or all applications
ID of the application or "all" to restart all applications
Application restarted successfully
Authentication error
Application not found
PUT /v2/app/{appID}/restart HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "Its application was restarted."
}Stops a specific application or all applications
ID of the application or "all" to stop all applications
Application stop response
Authentication error
Application not found
PUT /v2/app/{appID}/stop HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "Your application has been turned off."
}Updates the RAM allocation for a specific application
ID of the application to update RAM for
The amount of RAM in MB to allocate to the application
200RAM update response
Authentication error
Application not found or plan limitation
PUT /v2/app/{appID}/ram HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"ramMB": 200
}{
"status": "ok",
"statusCode": 200,
"message": "The memory of your application has been successfully changed."
}Updates an existing application by uploading a new version of the code
ID of the application to update
Application file to upload (.ZIP format)
Commit response
Authentication error
Application not found
PUT /v2/app/{appID}/commit HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 17
{
"file": "binary"
}{
"summary": "Successful commit (may timeout)",
"description": "When successful, the request may timeout without returning a response"
}Updates the profile information (avatar and name) for a specific application
ID of the application to update profile for
URL to the application's avatar image
https://i.ibb.co/0yJhZw92/Uma01.pngName of the application
Discloud AppProfile updated successfully
Authentication error
Application not found
PUT /v2/app/{appID}/profile HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 73
{
"avatarURL": "https://i.ibb.co/0yJhZw92/Uma01.png",
"name": "Discloud App"
}{
"status": "ok",
"statusCode": 200,
"message": "Profile successfully modified!"
}List files and directories in the application's directory
ID of the application
Directory path (defaults to app workDir)
Files and directories listed successfully
okCurrent directory path
Authentication error
No permission or insufficient plan
Application not found or invalid path
GET /v2/app/{appID}/explorer HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"path": "/root/app",
"dir": [
{
"name": "index.js",
"type": "file",
"size": 1024
},
{
"name": "src",
"type": "directory"
}
]
}Create a new file or directory in the application
ID of the application
Type to create
Full path for new file or directory
File or directory created successfully
okOperation target path
Bad request - missing required fields
Authentication error
No permission or insufficient plan
Application not found or invalid path
POST /v2/app/{appID}/explorer HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"typeFile": "file",
"cPath": "text"
}{
"status": "ok",
"path": "/root/app/newfile.js"
}Read the contents of a file in the application
ID of the application
Full file path
File opened successfully
okFull file path
File name
File content
Authentication error
No permission or insufficient plan
File not found or invalid path
GET /v2/app/{appID}/explorer/open?cPath=text HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"path": "/root/app/index.js",
"name": "index.js",
"content": "console.log('Hello World');",
"message": ""
}Edit the contents of a file in the application
ID of the application
New file content
Full file path
File edited successfully
okOperation target path
Bad request - missing required fields
Authentication error
No permission or insufficient plan
File not found or invalid path
PUT /v2/app/{appID}/explorer/edit HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"fileContent": "text",
"cPath": "text"
}{
"status": "ok",
"path": "/root/app/index.js"
}Execute a command inside the application container
ID of the application
Command to execute in the container
Command executed successfully
Authentication error
No permission - only app owner can execute commands
Application not found or offline
PUT /v2/app/{appID}/exec HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"cmd": "ls -la"
}{
"status": "ok",
"statusCode": 200,
"message": "ok",
"exec": {
"stdout": "total 48\ndrwxr-xr-x 5 user user 4096 Dec 17 10:30 .\n...",
"stderr": "",
"exitCode": 0
}
}Permanently deletes an application
ID of the application to delete
Application deleted successfully
Authentication error
Application not found
DELETE /v2/app/{appID}/delete HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "Your application has been removed."
}Last updated