Skip to main content
POST
/
servers
Create
curl --request POST \
  --url https://app.coolify.io/api/v1/servers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My Server",
  "description": "My Server Description",
  "ip": "127.0.0.1",
  "port": 22,
  "user": "root",
  "private_key_uuid": "og888os",
  "is_build_server": false,
  "instant_validate": false
}'
{
  "uuid": "og888os"
}

Authorizations

Authorization
string
header
required

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

Body

application/json

Server created.

name
string

The name of the server.

Example:

"My Server"

description
string

The description of the server.

Example:

"My Server Description"

ip
string

The IP of the server.

Example:

"127.0.0.1"

port
integer

The port of the server.

Example:

22

user
string

The user of the server.

Example:

"root"

private_key_uuid
string

The UUID of the private key.

Example:

"og888os"

is_build_server
boolean

Is build server.

Example:

false

instant_validate
boolean

Instant validate.

Example:

false

Response

Server created.

uuid
string

The UUID of the server.

Example:

"og888os"

I