cURL
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" }
Create Server.
Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
Keys & Tokens
API tokens
Server created.
The body is of type object.
object
The response is of type object.