POST
/
servers
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.

The body is of type object.

Response

201
application/json

Server created.

The response is of type object.