List PostgreSQL snapshot schedules

List a PostgreSQL instance's snapshot schedules.

GET https://{availability_zone}.betterstackcloud.com/v1/postgres/{postgres_id}/scheduled-snapshots
postgres_id string required

The ID of the PostgreSQL instance.

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",
      "postgres_id": "123456789",
      "server_id": "123456789",
      "frequency": "hourly",
      "last_run_at": "2026-07-01T12:00:00.000Z",
      "created_at": "2026-07-01T12:00:00.000Z",
      "updated_at": "2026-07-01T12:00:00.000Z"
    }
  ],
  "meta": {}
}

Returns the list of PostgreSQL scheduled snapshots.

id string

The schedule's ID, a UUID.

postgres_id string

The ID of the PostgreSQL instance.

server_id string

The ID of the server that runs the instance's current primary, which changes when the instance fails over.

frequency string

How often we create a snapshot. A month is a calendar month, so its length varies. Possible values: hourly, daily, weekly, monthly.

last_run_at datetime or null

When the schedule last ran, or null until the schedule first runs. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

created_at datetime

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

updated_at datetime

When the schedule was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.