Menu
API reference
Channels
Notification channels alerts are delivered through.
- GET List notification channels
- POST Create a notification channel
- GET Get a notification channel
- PUT Update a notification channel
- DELETE Delete a notification channel
- POST Send a test notification
List notification channels
Response 200 application/json
dataarray of NotificationChannelResource requiredidstring requiredteam_idstring requirednamestring requiredchannel_typestring, one of "slack", "webhook", "pagerduty", "teams" requiredis_enabledboolean requiredseveritystring, one of "all", "critical" requiredcredentialsobject or object or object or object requiredcreated_atstring or null requiredupdated_atstring or null required
linksobject requiredfirststring or null requiredlaststring or null requiredprevstring or null requirednextstring or null required
metaobject requiredcurrent_pageinteger, min 1 requiredfrominteger or null, min 1 requiredlast_pageinteger, min 1 requiredlinksarray of object requiredGenerated paginator links.
urlstring or null requiredlabelstring requiredactiveboolean required
pathstring or null requiredBase path for paginator generated URLs.
per_pageinteger, min 0 requiredNumber of items shown per page.
tointeger or null, min 1 requiredNumber of the last item in the slice.
totalinteger, min 0 requiredTotal number of items being paginated.
push_provisionedboolean required
Errors
- 401 Unauthenticated
- 403 The key lacks the ability this endpoint requires (required_ability names it), or the action is not allowed for the team.
- 429 Rate limited. Each key may make 120 reads (GET) and 30 writes per minute; wait for Retry-After seconds.
Code samples
curl -X GET "https://api.uptizm.com/v1/notification-channels" \
-H "Authorization: Bearer $UPTIZM_API_KEY" \
-H "Accept: application/json"
const response = await fetch('https://api.uptizm.com/v1/notification-channels', {
method: 'GET',
headers: {
'Authorization': `Bearer ${process.env.UPTIZM_API_KEY}`,
'Accept': 'application/json',
},
});
const data = await response.json();
<?php
$curl = curl_init('https://api.uptizm.com/v1/notification-channels');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer '.getenv('UPTIZM_API_KEY'),
'Accept: application/json',
],
]);
$response = curl_exec($curl);
import os
import requests
response = requests.get(
"https://api.uptizm.com/v1/notification-channels",
headers={
"Authorization": "Bearer " + os.environ["UPTIZM_API_KEY"],
"Accept": "application/json",
},
)
print(response.json())
Try it
ms
Create a notification channel
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Idempotency-Key | header | string | No | Any unique string per logical request. |
Request body application/json
namestring, max length 200 requiredchannel_typeNotificationChannelType: string, one of "slack", "webhook", "pagerduty", "teams" requiredThe delivery driver a notification channel sends through.
credentialsobject requiredtokenstring or null, max length 255channelstring or null, max length 200urlstring or null, max length 2048secretstring or null, max length 255routing_keystring or null, max length 64
is_enabledbooleanseverityNotificationChannelSeverity: string, one of "all", "critical"Which incidents a channel fires for: all of them or only critical ones.
Response 201 application/json
dataNotificationChannelResource requiredidstring requiredteam_idstring requirednamestring requiredchannel_typestring, one of "slack", "webhook", "pagerduty", "teams" requiredis_enabledboolean requiredseveritystring, one of "all", "critical" requiredcredentialsobject or object or object or object requiredcreated_atstring or null requiredupdated_atstring or null required
Errors
- 401 Unauthenticated
- 403 The key lacks the ability this endpoint requires (required_ability names it), or the action is not allowed for the team.
- 422 Validation error
- 429 Rate limited. Each key may make 120 reads (GET) and 30 writes per minute; wait for Retry-After seconds.
Code samples
curl -X POST "https://api.uptizm.com/v1/notification-channels" \
-H "Authorization: Bearer $UPTIZM_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"name": "string",
"channel_type": "slack",
"credentials": {}
}'
const payload = {
"name": "string",
"channel_type": "slack",
"credentials": {}
};
const response = await fetch('https://api.uptizm.com/v1/notification-channels', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.UPTIZM_API_KEY}`,
'Accept': 'application/json',
'Content-Type': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify(payload),
});
const data = await response.json();
<?php
$curl = curl_init('https://api.uptizm.com/v1/notification-channels');
$payload = <<<'JSON'
{
"name": "string",
"channel_type": "slack",
"credentials": {}
}
JSON;
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer '.getenv('UPTIZM_API_KEY'),
'Accept: application/json',
'Content-Type: application/json',
'Idempotency-Key: '.uniqid('', true),
],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
import os
import uuid
import requests
response = requests.post(
"https://api.uptizm.com/v1/notification-channels",
headers={
"Authorization": "Bearer " + os.environ["UPTIZM_API_KEY"],
"Accept": "application/json",
"Content-Type": "application/json",
"Idempotency-Key": str(uuid.uuid4()),
},
data=r'''{
"name": "string",
"channel_type": "slack",
"credentials": {}
}''',
)
print(response.json())
Try it
ms
Get a notification channel
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| channel | path | string | Yes | The channel ID |
Response 200 application/json
dataNotificationChannelResource requiredidstring requiredteam_idstring requirednamestring requiredchannel_typestring, one of "slack", "webhook", "pagerduty", "teams" requiredis_enabledboolean requiredseveritystring, one of "all", "critical" requiredcredentialsobject or object or object or object requiredcreated_atstring or null requiredupdated_atstring or null required
Errors
- 401 Unauthenticated
- 403 The key lacks the ability this endpoint requires (required_ability names it), or the action is not allowed for the team.
- 404 Not found
- 429 Rate limited. Each key may make 120 reads (GET) and 30 writes per minute; wait for Retry-After seconds.
Code samples
curl -X GET "https://api.uptizm.com/v1/notification-channels/CHANNEL" \
-H "Authorization: Bearer $UPTIZM_API_KEY" \
-H "Accept: application/json"
const response = await fetch('https://api.uptizm.com/v1/notification-channels/CHANNEL', {
method: 'GET',
headers: {
'Authorization': `Bearer ${process.env.UPTIZM_API_KEY}`,
'Accept': 'application/json',
},
});
const data = await response.json();
<?php
$curl = curl_init('https://api.uptizm.com/v1/notification-channels/CHANNEL');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer '.getenv('UPTIZM_API_KEY'),
'Accept: application/json',
],
]);
$response = curl_exec($curl);
import os
import requests
response = requests.get(
"https://api.uptizm.com/v1/notification-channels/CHANNEL",
headers={
"Authorization": "Bearer " + os.environ["UPTIZM_API_KEY"],
"Accept": "application/json",
},
)
print(response.json())
Try it
ms
Update a notification channel
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| channel | path | string | Yes | The channel ID |
Request body application/json
namestring, max length 200channel_typeNotificationChannelType: string, one of "slack", "webhook", "pagerduty", "teams"The delivery driver a notification channel sends through.
credentialsobjecttokenstring or null, max length 255channelstring or null, max length 200routing_keystring or null, max length 64urlstring or null, max length 2048secretstring or null, max length 255
is_enabledbooleanseverityNotificationChannelSeverity: string, one of "all", "critical"Which incidents a channel fires for: all of them or only critical ones.
Response 200 application/json
dataNotificationChannelResource requiredidstring requiredteam_idstring requirednamestring requiredchannel_typestring, one of "slack", "webhook", "pagerduty", "teams" requiredis_enabledboolean requiredseveritystring, one of "all", "critical" requiredcredentialsobject or object or object or object requiredcreated_atstring or null requiredupdated_atstring or null required
Errors
- 401 Unauthenticated
- 403 The key lacks the ability this endpoint requires (required_ability names it), or the action is not allowed for the team.
- 404 Not found
- 422 Validation error
- 429 Rate limited. Each key may make 120 reads (GET) and 30 writes per minute; wait for Retry-After seconds.
Code samples
curl -X PUT "https://api.uptizm.com/v1/notification-channels/CHANNEL" \
-H "Authorization: Bearer $UPTIZM_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{}'
const payload = {};
const response = await fetch('https://api.uptizm.com/v1/notification-channels/CHANNEL', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${process.env.UPTIZM_API_KEY}`,
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify(payload),
});
const data = await response.json();
<?php
$curl = curl_init('https://api.uptizm.com/v1/notification-channels/CHANNEL');
$payload = <<<'JSON'
{}
JSON;
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer '.getenv('UPTIZM_API_KEY'),
'Accept: application/json',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($curl);
import os
import requests
response = requests.put(
"https://api.uptizm.com/v1/notification-channels/CHANNEL",
headers={
"Authorization": "Bearer " + os.environ["UPTIZM_API_KEY"],
"Accept": "application/json",
"Content-Type": "application/json",
},
data=r'''{}''',
)
print(response.json())
Try it
ms
Delete a notification channel
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| channel | path | string | Yes | The channel ID |
Response 204
No body.
Errors
- 401 Unauthenticated
- 403 The key lacks the ability this endpoint requires (required_ability names it), or the action is not allowed for the team.
- 404 Not found
- 429 Rate limited. Each key may make 120 reads (GET) and 30 writes per minute; wait for Retry-After seconds.
Code samples
curl -X DELETE "https://api.uptizm.com/v1/notification-channels/CHANNEL" \
-H "Authorization: Bearer $UPTIZM_API_KEY" \
-H "Accept: application/json"
const response = await fetch('https://api.uptizm.com/v1/notification-channels/CHANNEL', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${process.env.UPTIZM_API_KEY}`,
'Accept': 'application/json',
},
});
console.log(response.status);
<?php
$curl = curl_init('https://api.uptizm.com/v1/notification-channels/CHANNEL');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer '.getenv('UPTIZM_API_KEY'),
'Accept: application/json',
],
]);
$response = curl_exec($curl);
import os
import requests
response = requests.delete(
"https://api.uptizm.com/v1/notification-channels/CHANNEL",
headers={
"Authorization": "Bearer " + os.environ["UPTIZM_API_KEY"],
"Accept": "application/json",
},
)
print(response.status_code)
Try it
ms
Send a test notification
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| channel | path | string | Yes | The channel ID |
| Idempotency-Key | header | string | No | Any unique string per logical request. |
Response 200 application/json
dataobject requireddeliveredboolean required
Errors
- 401 Unauthenticated
- 403 The key lacks the ability this endpoint requires (required_ability names it), or the action is not allowed for the team.
- 404 Not found
- 429 Rate limited. Each key may make 120 reads (GET) and 30 writes per minute; wait for Retry-After seconds.
- 502 Bad Gateway
Code samples
curl -X POST "https://api.uptizm.com/v1/notification-channels/CHANNEL/test" \
-H "Authorization: Bearer $UPTIZM_API_KEY" \
-H "Accept: application/json" \
-H "Idempotency-Key: $(uuidgen)"
const response = await fetch('https://api.uptizm.com/v1/notification-channels/CHANNEL/test', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.UPTIZM_API_KEY}`,
'Accept': 'application/json',
'Idempotency-Key': crypto.randomUUID(),
},
});
const data = await response.json();
<?php
$curl = curl_init('https://api.uptizm.com/v1/notification-channels/CHANNEL/test');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer '.getenv('UPTIZM_API_KEY'),
'Accept: application/json',
'Idempotency-Key: '.uniqid('', true),
],
]);
$response = curl_exec($curl);
import os
import uuid
import requests
response = requests.post(
"https://api.uptizm.com/v1/notification-channels/CHANNEL/test",
headers={
"Authorization": "Bearer " + os.environ["UPTIZM_API_KEY"],
"Accept": "application/json",
"Idempotency-Key": str(uuid.uuid4()),
},
)
print(response.json())
Try it
ms