# List data regions

List the data regions and dedicated clusters available for a new application. Pass an `id` as an application's `data_region` when creating it. The response lists every region and cluster at once.

[endpoint]
method = "GET"
base_url = "https://errors.betterstack.com"
path = "/api/v4/data-regions"

[[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]

[responses]
[[response]]
status = 200
description = "Returns the list of data regions."
body = '''
{
  "data": [
    {
      "id": "europe",
      "type": "data_region",
      "attributes": {
        "name": "Europe",
        "kind": "region"
      }
    }
  ]
}
'''

[[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 = "Your role doesn't allow viewing this, or the token can't be used for this API."
[/responses]

[params]
title = "Response attributes"

[[param]]
name = "id"
type = "string"
description = "The ID of the data region, such as `europe`."

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

[[param]]
name = "name"
type = "string"
description = "The region's or cluster's name, such as `Europe` or `United States`."

[[param]]
name = "kind"
type = "string"
description = "The kind of place the data is stored in.<br/>Valid values:<br/>`region`: A shared data region.<br/>`dedicated_cluster`: A cluster only your organization stores data on."
[/params]

#### Example cURL

```shell
[label List data regions]
curl --request GET \
  --url https://errors.betterstack.com/api/v4/data-regions \
  --header "Authorization: Bearer $TOKEN"
```
