List catalog records

List a catalog relation's records, oldest first.

GET https://incidents.betterstack.com/api/v4/catalog/relations/{catalog_relation_id}/records
catalog_relation_id string required

The ID of the catalog relation the catalog record belongs to.

page integer

Page to return, starting at 1.

per_page integer default: 50

Results per page. Maximum 250.

team_id string

Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.

Authorization string required

Bearer $TOKEN

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.

200 OK
{
  "data": [
    {
      "id": "123456789",
      "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": "t123",
                "name": "SRE"
              }
            ]
          }
        ]
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v4/catalog/relations/67/records?page=1",
    "last": "https://incidents.betterstack.com/api/v4/catalog/relations/67/records?page=1",
    "prev": null,
    "next": null,
    "total_count": 1
  }
}

Returns the list of catalog records.

id string

The ID of the catalog record.

type string

Always catalog_record.

attributes array of objects

The record's values, one entry per attribute that has values. Each entry sets one catalog attribute, by ID or name, to one or more values. Required on create and update, and an update replaces all of them.

attributes[].attribute object

The catalog attribute to set, by ID or name. Responses include both.

attributes[].attribute.id string

The catalog attribute's ID.

attributes[].attribute.name string

The catalog attribute's name.

attributes[].values array of objects

Values to set for this attribute.

attributes[].values[].type string

String, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source. Required, unless you send a text value as {value} on its own.

attributes[].values[].value string

The text of a String value. Required when type is String.

attributes[].values[].item_id string

ID of the referenced item. For a user it's u123 or their e-mail. For a team it's t123, and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via List team members, and a team's ID via List teams. A reference needs one of item_id, name or email.

attributes[].values[].name string or null

Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of item_id. A monitor, a Slack integration and a Zapier Zap can't be looked up by name.

attributes[].values[].email string

Referenced user's e-mail, returned for a User. A user can also be found by e-mail.

pagination.first string

The URL of the first page of results.

pagination.last string

The URL of the last page of results.

pagination.prev string or null

The URL of the previous page, or null on the first page.

pagination.next string or null

The URL of the next page, or null on the last page.

pagination.total_count integer

How many results the whole list holds, across every page.

Example cURL

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