---
title: "POST /api/im/channels"
method: POST
path: "/api/im/channels"
tags: ["Im"]
---

# POST /api/im/channels

`POST /api/im/channels`

## Request

- Base URL: `https://uptimeify.io`
- URL: `https://uptimeify.io/api/im/channels`
- Auth: HTTP bearer

## Request body

- object
  - `type` 'webhook' | 'email' | 'slack', required
  - `name` string, required
  - `config` object, required: Per type: webhook/slack need webhookUrl, email needs email. At most 8 KB.
    - `webhookUrl` string: webhook/slack: required on create. Never returned; on PATCH blank or absent keeps the stored URL.
    - `headers` object: webhook/slack: extra request headers (no Host). Values are never returned.
    - `email` string, email: email: required.
  - `teamId` integer, nullable: A team of your organization; null/absent = organization-wide.
  - `isActive` boolean: Default true.

## Response `200`

Successful response

- object
  - `id` integer, required
  - `organizationId` integer, required
  - `teamId` integer, nullable, required: null = organization-wide channel.
  - `type` 'webhook' | 'email' | 'slack', required
  - `name` string, required
  - `config` object, required
    - `webhookUrl` unknown
    - `hasWebhookUrl` boolean
    - `headers` object: Header names only.
    - `hasHeaders` boolean
    - `email` string
  - `isActive` boolean, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400`: Invalid or missing parameters.
- `401`: Missing, invalid or expired API token.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api.md) · [All operations](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/revisions/2129a771ee7e?raw)
