Reset host key
API server
https://app.coolify.io/api/v1Remove the trusted SSH host key of the server, or trust the given key. Without ssh_host_key, Coolify trusts the key that the server sends on the next connection.
Authorization
bearerAuth Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
In: header
Path Parameters
Server UUID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The SSH host key(s) to trust, as public key lines or known_hosts lines.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://app.coolify.io/api/v1/servers/string/host-key/reset" \ -H "Content-Type: application/json" \ -d '{}'{ "message": "Host key reset.", "ssh_host_key_fingerprints": [ "string" ]}{ "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." ] }}Migrate server to another Coolify instance POST
Start a transfer in the background: export this server, import and claim it on the target instance (with the given token), then disable automations here. All secrets of the server, also locked environment variables, are sent to the target. Follow the progress with GET /servers/{uuid}/transfer. The target URL must use https. Requires read:sensitive and write, and the owner role of the server team.
Restart server proxy POST
Queue a proxy restart for a team-owned server. Needs a token with the `deploy` permission.
