Skip to main content

Monitor Groups API

Monitor groups let you organize monitors into color-coded categories for easier dashboard management. Each group has a name, color, and sort order. Monitors can be assigned to a group via the groupId field when creating or updating a monitor.

Monitor Group Object​

{
"id": "grp_01j5a7b8c9d0e1f2g3h4i5j6",
"name": "Production APIs",
"color": "cyan",
"sortOrder": 1,
"monitorCount": 12,
"createdAt": "2025-06-10T14:20:00.000Z",
"updatedAt": "2025-06-10T14:20:00.000Z"
}
FieldTypeDescription
idstringUnique group identifier
namestringGroup name (must be unique within the organization)
colorstringDisplay color for the group (default: cyan)
sortOrdernumberDisplay order on the dashboard
monitorCountnumberNumber of monitors assigned to this group (list endpoint only)
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 last update timestamp
monitorsarrayMonitors in this group (single group endpoint only)

List Monitor Groups​

GET /v1/monitor-groups

Returns all monitor groups belonging to your organization, including a count of monitors in each group.

Query Parameters​

ParameterTypeDefaultDescription
limitnumber50Number of groups to return (max 200)
offsetnumber0Number of groups to skip for pagination

Response​

{
"data": [
{
"id": "grp_01j5a7b8c9d0e1f2g3h4i5j6",
"name": "Production APIs",
"color": "cyan",
"sortOrder": 1,
"monitorCount": 12,
"createdAt": "2025-06-10T14:20:00.000Z",
"updatedAt": "2025-06-10T14:20:00.000Z"
},
{
"id": "grp_01j5a8c9d0e1f2g3h4i5j6k7",
"name": "Staging Servers",
"color": "purple",
"sortOrder": 2,
"monitorCount": 5,
"createdAt": "2025-06-12T09:15:00.000Z",
"updatedAt": "2025-06-12T09:15:00.000Z"
}
],
"meta": {
"total": 2
}
}
Try it

Fetch all monitor groups in your organization.

GET/v1/monitor-groups?limit=50&offset=0
Query Parameters
Click ⚙ to configure your API key, then hit Send.

Get Monitor Group​

GET /v1/monitor-groups/:id

Returns a single monitor group with its associated monitors.

Path Parameters​

ParameterTypeDescription
idstringThe group ID

Response​

{
"data": {
"id": "grp_01j5a7b8c9d0e1f2g3h4i5j6",
"name": "Production APIs",
"color": "cyan",
"sortOrder": 1,
"createdAt": "2025-06-10T14:20:00.000Z",
"updatedAt": "2025-06-10T14:20:00.000Z",
"monitors": [
{
"id": "cly1abc2d0001abcdef012345",
"name": "Payment Service",
"url": "https://payments.example.com/health",
"status": "ACTIVE",
"monitorType": "HTTP"
},
{
"id": "cly2def3e0002abcdef678901",
"name": "User Service",
"url": "https://users.example.com/health",
"status": "ACTIVE",
"monitorType": "HTTP"
}
]
}
}

Error​

{
"error": {
"code": "NOT_FOUND",
"message": "Monitor group with id 'grp_invalid' not found"
}
}
Try it

Get a single monitor group with its monitors.

GET/v1/monitor-groups/:id
Path Parameters
Click ⚙ to configure your API key, then hit Send.

Create Monitor Group​

POST /v1/monitor-groups

Creates a new monitor group. Requires a READ_WRITE API key.

Request Body​

FieldTypeRequiredDescription
namestringYesGroup name (1-100 characters, unique within your org)
colorstringNoDisplay color (default: cyan)
sortOrdernumberNoDisplay order (default: 0)

Example Request​

{
"name": "Production APIs",
"color": "cyan",
"sortOrder": 1
}

Response 201 Created​

{
"data": {
"id": "grp_01j5a7b8c9d0e1f2g3h4i5j6",
"name": "Production APIs",
"color": "cyan",
"sortOrder": 1,
"createdAt": "2025-06-10T14:20:00.000Z",
"updatedAt": "2025-06-10T14:20:00.000Z"
}
}

Validation Error​

{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid monitor group data",
"details": {
"name": ["Group name is required"]
}
}
}
Try it

Create a new monitor group. Requires a READ_WRITE API key.

POST/v1/monitor-groups
Request Body
Click ⚙ to configure your API key, then hit Send.

Update Monitor Group​

PATCH /v1/monitor-groups/:id

Updates an existing monitor group. Only the fields you include in the request body will be updated. Requires a READ_WRITE API key.

Path Parameters​

ParameterTypeDescription
idstringThe group ID

Request Body​

All fields are optional. Include only the fields you want to change.

FieldTypeDescription
namestringUpdated group name
colorstringUpdated display color
sortOrdernumberUpdated display order

Example Request​

{
"name": "Prod APIs (Critical)",
"color": "magenta"
}

Response 200 OK​

{
"data": {
"id": "grp_01j5a7b8c9d0e1f2g3h4i5j6",
"name": "Prod APIs (Critical)",
"color": "magenta",
"sortOrder": 1,
"createdAt": "2025-06-10T14:20:00.000Z",
"updatedAt": "2025-06-15T11:45:00.000Z"
}
}
Try it

Update specific fields on an existing monitor group. Requires a READ_WRITE API key.

PATCH/v1/monitor-groups/:id
Path Parameters
Request Body
Click ⚙ to configure your API key, then hit Send.

Delete Monitor Group​

DELETE /v1/monitor-groups/:id

Permanently deletes a monitor group. Monitors assigned to this group will be unassigned (not deleted). Requires a READ_WRITE API key.

Path Parameters​

ParameterTypeDescription
idstringThe group ID

Response 200 OK​

{
"data": {
"id": "grp_01j5a7b8c9d0e1f2g3h4i5j6",
"deleted": true
}
}

Error​

{
"error": {
"code": "NOT_FOUND",
"message": "Monitor group with id 'grp_invalid' not found"
}
}
Try it

Permanently delete a monitor group. Monitors in the group will be unassigned.

DELETE/v1/monitor-groups/:id
Path Parameters
Click ⚙ to configure your API key, then hit Send.