---
title: "Config a channel"
method: POST
path: "/1/videos/{channel}/encodes"
tags: ["Channel > Config"]
---

# Config a channel

`POST /1/videos/{channel}/encodes`

This endpoint retrieve the data needed to configure an encoder to publish the
streams associated to the given channel.
If the channel is meant to be pulled, this will return an empty collection.

## Path parameters

- `channel` integer, required

## Query parameters

- `account_id` integer, required — Account identifier

## Request body

- object
  - `password` string, required

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` union
    - object
    - unknown

## Other responses

- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
