Skip to main content
POST
Create a notification channel

Notes

  • To authenticate, you’ll need a Tako API key. It’s best practice to store it as an environment variable to avoid hardcoding sensitive credentials in your code.
  • Create the channel before the monitor that uses it. Create a monitor returns 404 for a channel_ids entry you don’t own.
  • url must use https, on port 443 or 8443, and must resolve to a public address. See What Tako accepts as a URL.
  • A channel starts active. After 2 consecutive failed deliveries, Tako pauses it. See Pause or resume a notification channel.
  • You can hold a limited number of channels, counted per user rather than pooled across an account. When you’re at that limit, this endpoint returns 400 with error_type: LIMIT_REACHED and a limit giving your cap. Delete a channel you no longer need, or contact support@tako.com about an enterprise limit.
  • For the request Tako posts to this channel, see Webhook deliveries.
Store secret when you read the 201 response. No later request returns it. Tako signs every delivery to this channel with it, so if you lose it, delete the channel and create a new one.

Choosing a kind

kind decides how Tako shapes the request body it posts:
  • webhook, the default: nested JSON that namespaces the monitor, the firing, and the payload.
  • slack_workflow: a flat body of strings, for a Slack Workflow Builder trigger, which rejects nested values.
For both shapes, see Webhook deliveries.

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required
Required string length: 1 - 255
url
string<uri>
required

The https destination that Tako posts to. Tako rejects http, a URL that embeds credentials, and a host that resolves to a private or loopback address.

Maximum string length: 2048
kind
enum<string>
default:webhook

How Tako shapes the body it posts. Use slack_workflow for a Slack Workflow Builder trigger, which rejects nested values.

Available options:
webhook,
slack_workflow

Response

The new channel, including the signing secret that only this response returns

id
string<uuid>
required
name
string
required
kind
enum<string>
required

How Tako shapes the request body it posts to a channel. webhook sends nested JSON that namespaces the monitor, the firing, and the payload. slack_workflow sends a flat body of strings for a Slack Workflow Builder trigger, which rejects any nested value.

Available options:
webhook,
slack_workflow
url
string
required
status
enum<string>
required
Available options:
active,
paused
status_reason
enum<string> | null
required

Why Tako paused the channel. Null while the channel is active, and null when you paused it yourself.

Available options:
delivery_failures
created_at
string<date-time>
required
updated_at
string<date-time>
required
secret
string
required

The signing secret for this channel. Store it now, because this response is the only place it appears and no later request returns it. Tako signs every delivery to this channel with it.