Explore documentation

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/v2/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",
        "value": "value-1"
        "team_name": "Testing",
        "owner_id": "2",
        "owner_type": "Monitor"
      }
    },
    {
      "id": "23",
      "type": "metadata",
      "attributes": {
        "key": "KEY_2",
        "value": null,
        "team_name": "Testing",
        "owner_id": "30579",
        "owner_type": "WebhookIntegration"
      }
    }
  ],
  "pagination": {
    "first": "https://uptime.betterstack.com/api/v2/metadata?page=1",
    "last": "https://uptime.betterstack.com/api/v2/metadata?page=4",
    "prev": null,
    "next": "https://uptime.betterstack.com/api/v2/metadata?page=2"
  }
}

Example cURL

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