# List catalog attributes

Returns a list of all Catalog attributes for a [Catalog relation](https://betterstack.com/docs/uptime/api/list-all-catalog-relations/). This endpoint [supports pagination](https://betterstack.com/docs/uptime/api/pagination/).

[endpoint]
base_url = "https://uptime.betterstack.com"
path = "/api/v2/catalog/relations/{relation_id}/attributes"
method = "GET"

[[path_param]]
name = "relation_id"
description = "The ID of the Catalog relation you want to get attributes for."
required = true
type = "string"

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

[responses]
[[response]]
status = 200
description = '''Returns list of existing Catalog attributes'''
body = '''{
  "data": [
    {
      "id": "56",
      "type": "catalog_attribute",
      "attributes": {
        "name": "Team",
        "primary": true,
        "position": 0
      }
    },
    {
      "id": "57",
      "type": "catalog_attribute",
      "attributes": {
        "name": "Team Lead",
        "primary": false,
        "position": 1
      }
    }
  ],
  "pagination": {
    "first": "https://uptime.betterstack.com/api/v2/catalog/relations/37/attributes?page=1",
    "last": "https://uptime.betterstack.com/api/v2/catalog/relations/37/attributes?page=1",
    "prev": null,
    "next": null
  }
}'''

[/responses]

#### Example cURL 

```shell
[label Example]
curl --request GET \
  --url https://uptime.betterstack.com/api/v2/catalog/relations/37/attributes \
  --header "Authorization: Bearer $TOKEN"
```

[info]
#### Looking for the details of a specific parameter?
Explore [the list of all Catalog attribute API parameters](https://betterstack.com/docs/uptime/api/catalog-attribute-response-params/)
[/info]
