Channels
Create a channel
Send type and the settings object of that type, for example type: "email" with email: {address}. Webhook URLs must be public addresses. Slack channels post through a Slack workspace connected under Integrations in the dashboard, Telegram channels are connected there too. Create channels before the escalation paths that use them.
post/channels
Request
- Base URLhttps://api.spectate.net/v1
- AuthHTTP bearer
Request body
Example request
{
"name": "On-call email",
"email": {
"address": "oncall@example.com"
},
"slack": {
"channel": "C0123456789",
"channel_name": "#alerts"
},
"discord": {
"webhook_url": "https://discord.com/api/webhooks/123/abc"
},
"microsoft_teams": {
"webhook_url": "https://discord.com/api/webhooks/123/abc"
},
"webhook": {
"url": "https://hooks.example.com/spectate",
"headers": [
{
"key": "Authorization",
"value": "Bearer s3cr3t"
}
]
},
"pushover": {
"user_key": "uQiRzpo4DXghDmr9QzzfQu27cmVRsG",
"api_token": "azGDORePK8gMaC0QOYAMyEEuzJnyUi",
"priority": 1
},
"sms": {
"phone_number": "+31612345678"
},
"voice": {
"phone_number": "+31612345678"
}
}Response
The new channel.
Example response
{
"name": "On-call email",
"email": {
"address": "oncall@example.com"
},
"slack": {
"channel": "C0123456789",
"channel_name": "#alerts"
},
"telegram": {
"chat_id": "-1001234567890",
"chat_title": "Ops alerts"
},
"webhook": {
"host": "hooks.example.com"
},
"pushover": {
"user_key": "uQiRzpo4DXghDmr9QzzfQu27cmVRsG",
"priority": 1
},
"sms": {
"phone_number": "+31612345678"
},
"voice": {
"phone_number": "+31612345678"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.