---
title: "Creates a new callback."
method: POST
path: "/1/vod/channel/{channel}/callback"
tags: ["V2 > Callback"]
---

# Creates a new callback.

`POST /1/vod/channel/{channel}/callback`

## Path parameters

- `channel` integer, required

## Request body

- object
  - `channel_id` integer, required — <br/>This field must exist on the `channels` database in the `id` column.
  - `events` string, required
  - `name` string, required
  - `description` string
  - `url` string, url, required
  - `response` '"json"' | '"slack"' | '"v1compat"' | '"x-www-form-urlencoded"', required
  - `auth` '"basic"' | '"bearer"' | '"none"', required
  - `basic_username` string — <br/>This field must be present and not empty if the `auth` field is equal to any of the following:`basic`
  - `basic_password` string — <br/>This field must be present and not empty if the `auth` field is equal to any of the following:`basic`
  - `bearer_token` string — <br/>This field must be present and not empty if the `auth` field is equal to any of the following:`bearer`
  - `active` boolean, required

## Response `201`

Created

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` Acfc41a0Callback
    - `events` string, required
    - `event_list` string
    - `name` string, required
    - `description` string
    - `url` string, required
    - `response` string, required
    - `internal` string
    - `auth` string, required
    - `basic_username` string
    - `basic_password` string
    - `bearer_token` string
    - `active` boolean, required

---

[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)
