Create
API server
https://app.coolify.io/api/v1Create Server.
Authorization
bearerAuth Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
In: header
Request Body
application/json
Server created.
TypeScript Definitions
Use the request body type in TypeScript.
The name of the server. Must not contain control characters such as new lines.
The description of the server.
The IP of the server.
The port of the server.
The user of the server.
The UUID of the private key.
Server role.
"deployment" | "build" | "both"Deprecated: use server_role instead. true sets server_role to build, false sets it to both. Must not conflict with server_role.
Instant validate.
The proxy type.
"traefik" | "caddy" | "none"Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://app.coolify.io/api/v1/servers" \ -H "Content-Type: application/json" \ -d '{}'{ "uuid": "og888os"}{ "message": "Invalid token."}{ "message": "Unauthenticated."}{ "message": "Resource not found."}{ "message": "Validation error.", "errors": { "name": [ "The name field is required." ], "api_url": [ "The api url field is required.", "The api url format is invalid." ] }}Mark server transferred POST
Source-instance recovery step: disable automations here when the target already manages the server but the transfer could not finish on this instance.
Delete DELETE
Delete server by UUID. With force or delete_from_provider, needs a token with the write and deploy permissions.
