Start rescue mode on a server

Boot the server into rescue mode to repair a system that doesn't boot. The rescue system boots in the background. The rescue system is up in under a minute in most cases, and in about 20 minutes at most. If the rescue system can't boot, the server returns to the status it had before and rescue_state is null. Rescue mode ends by itself 60 minutes after the request. The web console opens only on a running server.

POST https://{availability_zone}.betterstackcloud.com/v1/servers/{id}/rescue
id string required

The ID of the server.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

force boolean default: false

Whether to cut the power of a stuck server instead of shutting it down gracefully first.

202 Accepted
{
  "rescue_password": "example",
  "rescue_expires_at": "2026-07-01T12:00:00.000Z"
}

Returns the server.

rescue_password string

A one-time password for the rescue session, returned only here.

rescue_expires_at datetime

When rescue mode ends by itself and the server returns to normal, 60 minutes after it started. In ISO 8601 format, such as 2026-07-01T12:00:00Z.