/v1/channel-connections (POST)
POST
/v1/channel-connections
const url = 'http://localhost:8787/v1/channel-connections';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"channel":"ical","feedUrl":"https://example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8787/v1/channel-connections \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "channel": "ical", "feedUrl": "https://example.com" }'Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
channel
required
string
feedUrl
required
string format: uri
Responses
Section titled “Responses”Created status: 'active' immediately — the /15 * * * import fan-out picks it up on the next cron tick. Map at least one resource via POST /v1/channel-connections/{id}/listings before that’s useful (docs/06: an unmapped connection has nowhere to write blocks).
Media typeapplication/json
object
channel
required
string
createdAt
required
string
feedUrl
required
string
id
required
string format: uuid
status
required
string
Example
{ "channel": "ical", "status": "pending"}No API key context resolved for this request.
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{ "code": "resource_not_found"}