# List dashboard versions

List a dashboard's versions, newest first. Each version is the dashboard as it was right before one change. To go back to a version, roll back the dashboard. Returns 20 versions per page by default, not 50 like other lists, and 250 at most. With `chart_id`, `pagination.last` is `null`. The dashboard keeps only its newest versions.

[endpoint]
method = "GET"
base_url = "https://telemetry.betterstack.com"
path = "/api/v4/dashboards/{id}/versions"

[[path_param]]
name = "id"
required = true
type = "string"
description = "Dashboard whose versions are listed. Get the IDs via [List dashboards](/docs/logs/api/dashboards/list/)."

[[query_param]]
name = "chart_id"
type = "string"
description = "Only the versions whose change touched this chart."

[[query_param]]
name = "page"
type = "integer"
description = "Page to return, starting at 1."

[[query_param]]
name = "per_page"
default = "50"
type = "integer"
description = "Results per page. Maximum 250."

[[query_param]]
name = "team_id"
type = "string"
description = "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[info]
#### Results are paginated
Use `pagination.next` and `pagination.prev` to move through pages or jump to a specific one using `page` and `per_page`. See [Pagination](/docs/getting-started/integrations/api/#pagination).
[/info]

[responses]
[[response]]
status = 200
description = "Returns the list of dashboard versions."
body = '''
{
  "data": [
    {
      "id": "3",
      "type": "dashboard_version",
      "attributes": {
        "number": 3,
        "created_at": "2026-11-20T20:20:58.511Z",
        "changed_by": "the Deploy pipeline API token",
        "source": "api",
        "source_name": "API",
        "changed": "CPU renamed",
        "current": false
      }
    }
  ],
  "pagination": {
    "first": "https://telemetry.betterstack.com/api/v4/dashboards/1234/versions?page=1",
    "last": "https://telemetry.betterstack.com/api/v4/dashboards/1234/versions?page=1",
    "prev": null,
    "next": null,
    "total_count": 1
  }
}
'''

[[response]]
status = 401
description = "The API token is missing or invalid."
body = '''
{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/logs/api/getting-started/#obtaining-a-logtail-api-token"
}
'''

[[response]]
status = 403
description = "The dashboard belongs to another team and is shared into this one. Versions are listed only for your own teams' dashboards."
body = '''
{
  "errors": "Dashboard 123 belongs to another team. Versions are listed only for your own teams' dashboards."
}
'''

[[response]]
status = 404
description = "The dashboard doesn't exist, or the token can't access it."
body = '''
{
  "errors": "Resource with the provided ID was not found"
}
'''

[[response]]
status = 422
description = "The `chart_id` parameter isn't a whole number, listed in `invalid_values`, or a parameter other than `chart_id`, `page` and `per_page` was sent, listed in `invalid_attributes`."
[/responses]

[params]
title = "Response attributes"

[[param]]
name = "id"
type = "string"
description = "The ID of the dashboard version, such as `3`."

[[param]]
name = "type"
type = "string"
description = "Always `dashboard_version`."

[[param]]
name = "number"
type = "integer"
description = "Version number, which you pass to a rollback as `version`. Same as the version's ID."

[[param]]
name = "created_at"
type = "datetime"
description = "When the version was saved, right before the change. In ISO 8601 format, such as `2026-07-01T12:00:00Z`."

[[param]]
name = "changed_by"
type = "string"
description = "Who made the change, a team member, `the <name> API token`, `AI SRE`, `a former team member` or `Unknown`. A change made in an AI SRE conversation names it as `AI SRE in conversation \"<title>\"` when you can open AI SRE conversations."

[[param]]
name = "source"
type = "string"
description = "Where the change was made. Possible values: `app`, `ai_sre`, `mcp`, `api`, `mobile`, `uptime`, `templates_admin`."

[[param]]
name = "source_name"
type = "string"
description = "Where the change was made, `Better Stack app`, `AI SRE`, `MCP`, `API`, `Mobile app`, `Incidents app` or `Template editor`."

[[param]]
name = "changed"
type = "string"
description = "What the change touched, the names of the changed charts, `dashboard settings`, `alert paused or resumed` or `no visible change`. A rollback's version starts with `rollback: `."

[[param]]
name = "current"
type = "boolean"
description = "Whether the dashboard looks the same now as in this version."

[[param]]
name = "pagination.first"
type = "string"
description = "The URL of the first page of results."

[[param]]
name = "pagination.last"
type = "string"
description = "The URL of the last page of results."

[[param]]
name = "pagination.prev"
type = "string or null"
description = "The URL of the previous page, or `null` on the first page."

[[param]]
name = "pagination.next"
type = "string or null"
description = "The URL of the next page, or `null` on the last page."

[[param]]
name = "pagination.total_count"
type = "integer"
description = "How many results the whole list holds, across every page."
[/params]

#### Example cURL

[code-tabs]
```shell
[label List dashboard versions]
curl --request GET \
  --url https://telemetry.betterstack.com/api/v4/dashboards/1234/versions \
  --header "Authorization: Bearer $TOKEN"
```
```shell
[label Changes to one chart]
curl --request GET \
  --url "https://telemetry.betterstack.com/api/v4/dashboards/1234/versions?chart_id=18718" \
  --header "Authorization: Bearer $TOKEN"
```
[/code-tabs]
