List all existing metadata

List all metadata with an option to filter metadata by owner.

GET https://betteruptime.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"
      },
      "relationships": {
        "owner": {
          "data": {
            "id": "2",
            "type": "Monitor"
          }
        }
      }
    },
    {
      "id": "23",
      "type": "metadata",
      "attributes": {
        "key": "KEY_2",
        "value": null
      },
      "relationships": {
        "owner": {
          "data": {
            "id": "30579",
            "type": "webhook_integration"
          }
        }
      }
    }
  ],
  "pagination": {
    "first": "https://betteruptime.com/api/v2/metadata?page=1",
    "last": "https://betteruptime.com/api/v2/metadata?page=4",
    "prev": null,
    "next": "https://betteruptime.com/api/v2/metadata?page=2"
  }
}

Example cURL

curl --request GET \
  --url "https://betteruptime.com/api/v2/metadata" \
  --header 'authorization: Bearer YOUR_API_TOKEN'
Copied!