List all existing metadata

List all metadata with an option to filter metadata by owner. This endpoint supports pagination.

GET https://uptime.betterstack.com/api/v3/metadata

Query parameters

owner_id
string
owner_type
string

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "25",
      "type": "metadata",
      "attributes": {
        "key": "Key 1",
        "values": [{ "type": "String", "value": "Value 1" }, { "type": "String", "value": "Value 2" }]
        "team_name": "Testing",
        "owner_id": "2",
        "owner_type": "Monitor"
      }
    },
    {
      "id": "23",
      "type": "metadata",
      "attributes": {
        "key": "Key 2",
        "values": [{ "type": "Schedule", "item_id": 123, "name": "Secondary calendar" }],
        "team_name": "Testing",
        "owner_id": "30579",
        "owner_type": "WebhookIntegration"
      }
    }
  ],
  "pagination": {
    "first": "https://uptime.betterstack.com/api/v3/metadata?page=1",
    "last": "https://uptime.betterstack.com/api/v3/metadata?page=4",
    "prev": null,
    "next": "https://uptime.betterstack.com/api/v3/metadata?page=2"
  }
}

Example cURL

Example
curl --request GET \
  --url "https://uptime.betterstack.com/api/v3/metadata" \
  --header 'authorization: Bearer $TOKEN'