Channels
Create a notification channel
Creates a new notification channel for the authenticated project. Secrets (secret for webhooks, bot_token for Telegram, webhook_url for Discord/Slack/MS Teams/Google Chat, token+user_key for Pushover) are stored server-side but are never returned in any API response. Email channels are created unverified; a verification email is sent to the address and the channel will not alert until verified.
config must name only the fields its kind accepts, each exactly once, every URL must use https, and the branded kinds are pinned to their vendor's hosts — see ChannelCreate for the per-kind rules and the webhook escape hatch.
post/api/v1/channels
Request
- Base URL: https://app.lastping.dev
- URL: https://app.lastping.dev/api/v1/channels
- Auth: API key in header X-Api-Key
Request body
Example request
{
"kind": "webhook",
"name": "Ops webhook",
"config": {
"url": "https://example.com/hook",
"secret": "s3cr3t"
}
}Response
Channel created.
Example response
{
"id": "c1d2e3f4-0000-0000-0000-000000000001",
"kind": "webhook",
"name": "Ops webhook",
"target": "https://example.com/hook",
"verified": true,
"disable_reason": "too many delivery failures",
"created_at": "2026-07-01T12:00:00Z",
"used_by_monitors": 7
}Changes
No recorded changes to this operation across all 2 revisions of this API.