Create Server
Add a new server to your Dokploy infrastructure.POST /server.create
string
required
Name of the server
string
required
Server IP address
number
SSH port (default: 22)
string
required
SSH username for server access
string
ID of the SSH key to use for authentication
string
Type of server:
deploy or buildAuthentication
Requires user authentication.Example Request
Example Response
Get Server
GET /server.one
Retrieve details of a specific server.
string
required
The unique identifier of the server
Example Request
List All Servers
GET /server.all
Retrieve all servers in the organization with service counts.
Example Request
Example Response
Setup Server
POST /server.setup
Initialize a server with required dependencies (Docker, Traefik, etc.).
string
required
The unique identifier of the server to setup
Example Request
Example Response
Validate Server
GET /server.validate
Check if all required services are installed and configured correctly.
string
required
The unique identifier of the server to validate
Example Request
Example Response
Server Security Audit
GET /server.security
Perform a security audit on the server configuration.
string
required
The unique identifier of the server to audit
Example Request
Example Response
Setup Server Monitoring
POST /server.setupMonitoring
Configure monitoring for a remote server.
string
required
The unique identifier of the server
object
required
Monitoring configuration (same structure as admin.setupMonitoring)
Example Request
Update Server
POST /server.update
Update server configuration and settings.
string
required
The unique identifier of the server
string
Updated server name
string
Updated IP address
number
Updated SSH port
Example Request
Remove Server
POST /server.remove
Delete a server from the infrastructure.
string
required
The unique identifier of the server to remove
Example Request
Get Server Metrics
GET /server.getServerMetrics
Fetch metrics data from a server’s monitoring endpoint.
string
required
The metrics endpoint URL
string
required
Authentication token for the metrics service
string
required
Number of data points to retrieve
Example Request
Get Public IP
GET /server.publicIp
Get the public IP address of the Dokploy server.
This endpoint returns an empty string on Dokploy Cloud instances.