Metadata API
List, create, update, and delete metadata using a simple HTTP API.

Do you need help with the integration?

Let us know at [email protected].

Obtaining an API token

get
https://betteruptime.com
/api/v2/metadata
Listing all existing metadata
Example cURL
1
curl --request GET \
2
--url "https://betteruptime.com/api/v2/metadata" \
3
--header 'authorization: Bearer YOUR_API_TOKEN'
Copied!
get
https://betteruptime.com
/api/v2/metadata/:metadata_id
Getting a single metadata
Example cURL
1
curl --request GET \
2
--url https://betteruptime.com/api/v2/metadata/123456789 \
3
--header 'Authorization: Bearer YOUR_API_TOKEN'
Copied!
post
https://betteruptime.com
/api/v2/metadata
Creating a new metadata record
Example cURL
1
curl --request GET \
2
--url https://betteruptime.com/api/v2/metadata \
3
--header 'Authorization: Bearer YOUR_API_TOKEN' \
4
--header 'Content-Type: application/json' \
5
--data '{"key": "KEY_1", "value": "value-1", "owner_id": "2", "owner_type": "Monitor"}'
Copied!
patch
https://betteruptime.com
/api/v2/metadata/:metadata_id
Updating a metadata record
Example cURL
1
curl --request GET \
2
--url https://betteruptime.com/api/v2/metadata/123456789 \
3
--header 'Authorization: Bearer YOUR_API_TOKEN' \
4
--header 'Content-Type: application/json' \
5
--data '{"key": "KEY_3", "value": "value-4"}'
Copied!
delete
https://betteruptime.com
/api/v2/metadata/:metadata_id
Deleting an existing metadata
Example cURL
1
curl --request DELETE \
2
--url https://betteruptime.com/api/v2/metadata/123456 \
3
--header 'Authorization: Bearer YOUR_API_TOKEN'
Copied!
Last modified 1mo ago