List events

List a server's audit trail. You can still list it for 3 days after the server is destroyed.

GET https://{availability_zone}.betterstackcloud.com/v1/servers/{server_id}/events
server_id string required

The ID of the server whose events to list.

page integer default: 1

The page to return, starting at 1.

per_page integer default: 25

How many entries to return per page. Maximum 1000.

Authorization string required

Bearer $TOKEN

Results are paginated

Use page and per_page to move through pages. See Pagination.

200 OK
{
  "data": [
    {
      "id": "example",
      "server_id": "123456789",
      "action": "example",
      "user_id": 123456789,
      "actor": "user",
      "details": {
        "example": "value"
      },
      "created_at": "2026-07-01T12:00:00.000Z"
    }
  ],
  "meta": {}
}

Returns the list of events.

id string

The event's ID, a UUID.

server_id string

The ID of the server the event belongs to.

action string

What happened, in the past tense, such as created, claimed, started, stopped, restarted, destroyed, rescaled, restored, term_changed, snapshot_created, snapshot_failed, reserved_ip_attached, reserved_ip_detached, ssh_key_attached, ssh_key_detached, ssh_key_attach_failed, ssh_key_detach_failed, network_attach_failed, rescue_entered, rescue_exited, console_opened, console_terminated, spot_terminated, locked or unlocked. We add new actions over time, so expect values that aren't listed here.

user_id integer or null

The ID of the Better Stack user who did it, or null unless actor is user.

actor string

Who did it.
Valid values:
user: A Better Stack user did it, and user_id names them.
api_token: A request with an API token did it.
system: Better Stack did it.

details object

Details that depend on the action, such as the snapshot a restore used or the server types a rescale moved between.

created_at datetime

When the event was recorded. In ISO 8601 format, such as 2026-07-01T12:00:00Z.