List catalog records

Returns a list of all your Catalog records for a Catalog relation.

GET https://incidents.betterstack.com/api/v2/catalog/relations/{relation_id}/records

URL parameters

relation_id
required string

Query parameters

page
integer
per_page
integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "67",
      "type": "catalog_record",
      "attributes": {
        "attributes": [
          {
            "attribute": {
              "id": 56,
              "name": "Team"
            },
            "values": [
              {
                "type": "String",
                "value": "My Team"
              }
            ]
          },
          {
            "attribute": {
              "id": 57,
              "name": "Team Lead"
            },
            "values": [
              {
                "type": "Team",
                "item_id": 123,
                "name": "SRE"
              }
            ]
          }
        ]
      }
    },
    {
      "id": "68",
      "type": "catalog_record",
      "attributes": {
        "attributes": [
          {
            "attribute": {
              "id": 56,
              "name": "Team"
            },
            "values": [
              {
                "type": "String",
                "value": "Another Team"
              }
            ]
          },
          {
            "attribute": {
              "id": 57,
              "name": "Team Lead"
            },
            "values": [
              {
                "type": "Team",
                "item_id": 124,
                "name": "Platform"
              }
            ]
          }
        ]
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v2/catalog/relations/67/records?page=1",
    "last": "https://incidents.betterstack.com/api/v2/catalog/relations/67/records?page=1",
    "prev": null,
    "next": null
  }
}

Response attributes

id
string
type
string
attributes.attributes
array
attributes.attributes[].attribute
object
attributes.attributes[].attribute.id
integer
attributes.attributes[].attribute.name
string
attributes.attributes[].values
array
attributes.attributes[].values[].type
string
attributes.attributes[].values[].value
string
attributes.attributes[].values[].item_id
integer
attributes.attributes[].values[].name
string or null
attributes.attributes[].values[].email
string
pagination.first
string
pagination.last
string
pagination.prev
string or null
pagination.next
string or null

Example cURL

Example
curl --request GET \
  --url https://incidents.betterstack.com/api/v2/catalog/relations/67/records \
  --header "Authorization: Bearer $TOKEN"