---
title: "Create a channel (add iCal feed)"
method: POST
path: "/v1/channels"
tags: ["Channels"]
---

# Create a channel (add iCal feed)

`POST /v1/channels`

## Request

- Base URL: `https://api.frihet.io`
- URL: `https://api.frihet.io/v1/channels`
- Auth: API key in header `X-API-Key`

## Request body

- ChannelCreate
  - `propertyId` string, required: ID of the property this channel belongs to
  - `name` string, required: Channel name (e.g., "Airbnb", "Booking.com")
  - `type` 'ical_import' | 'ical_export' | 'api'
  - `feedUrl` string, uri: iCal feed URL for import
  - `status` 'active' | 'paused' | 'error'

## Response `201`

Channel created

- Channel
  - `id` string
  - `propertyId` string
  - `name` string
  - `type` string
  - `feedUrl` string, nullable
  - `status` string
  - `lastSync` string, date-time, nullable
  - `lastSyncEvents` integer
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `400`: Bad request - invalid parameters or request body
- `401`: Authentication required or invalid API key

---

[API](https://skmtc.dev/frihet/apis/frihet-api.md) · [All operations](https://skmtc.dev/frihet/apis/frihet-api/llms.txt) · [OpenAPI document](https://skmtc.dev/frihet/apis/frihet-api/revisions/3dd37f6a72d1?raw)
