My TV Channel Channels API

Create, inspect, update and archive channels.

GitHub OpenAPI

Operations 6

GET /channels/check-handle.php Is a handle free #
POST /channels/create.php Create a channel #
GET /channels/list.php List channels #
GET /channels/get.php One channel, including whether it is on air #
PUT /channels/update.php Update allowlisted channel fields #
POST /channels/delete.php Take a channel off air (archive, not destroy) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/my-tv-channel-com:my-tv-channel-com-channels-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

my-tv-channel-com-channels-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: My TV Channel — Agent Channels API
  version: 1.0.0
  summary: Create and run 24/7 linear HLS TV channels programmatically.
  description: 'Create and run 24/7 linear TV channels — the kind that just play, with no menu to browse.

    Import videos, and the service transcodes them, builds a continuous schedule, and streams

    the result at `https://{handle}.my-tv-channel.com` and in the iOS, iPadOS, tvOS, macOS,

    Android, Fire TV and Roku apps.


    ## Before you start


    - **Every response uses the same envelope:** `{"success": true, "data": ...}` or

    `{"success": false, "error": "...", "code": N}`. There is exactly one exception, and it

    is called out on the operation: `GET /channels/schedule.php` returns `data` as a bare

    **array**.

    - **Authentication is an API key**, `Authorization: Bearer mytv_sk_...`, created by a

    signed-in human at or in the app under

    Profile → Agent Access. An active subscription on any tier is required, and the key

    inherits the owner''s tier limits. **An agent cannot mint its own key, by design** — if

    you do not have one, ask the owner for one.

    - **Rate limit:** 1,000 requests/hour per key. Exceeding it returns `429` with

    `Retry-After`; honour it rather than spinning.

    - **Start with `GET /users/status.php`.** It returns the tier, the real quota numbers for

    this account, every channel, and for each one exactly what it still needs before it can

    go live. Agents that skip this step guess, and guessing is expensive.


    ## The two things that catch everyone


    1. **Weights only reach the air when the schedule is generated.** A channel builds its

    schedule the instant it crosses the launch threshold, from the weights present at that

    moment. Weights set afterwards are stored faithfully, reported back correctly, and do

    not change what is broadcasting. Either set each asset''s weight as soon as it reports

    `ready`, or call `POST /schedule/regenerate.php` when you are done.

    2. **You cannot upload a local file over MCP**, because tool arguments are JSON and there

    is no multipart channel. `POST /assets/import-url.php` is therefore the ingestion path

    for an agent. `POST /assets/upload.php` exists for clients that can post multipart.


    ## Going live


    A channel launches **automatically** once it has ≥ 4 ready assets **and** ≥ 15 minutes of

    content with weight > 0. Transcoding is the slow step. Poll `GET /assets/status.php` for

    `summary.meetsLaunchRequirements`, then `GET /channels/get.php` until `scheduleStatus` is

    `active`, then report the watch URL to the owner.'
  contact:
    name: My TV Channel
    url: https://my-tv-channel.com/agents/
  license:
    name: Proprietary
    url: https://my-tv-channel.com/terms.html
servers:
- url: https://my-tv-channel.com/api/mytvchannel
  description: Production (canonical host)
- url: https://my-tv-channel.com/api/mytvchannel
  description: Production (legacy host, still live — prefer the canonical one)
security:
- bearerAuth: []
tags:
- name: Channels
  description: Create, inspect, update and archive channels.
paths:
  /channels/check-handle.php:
    get:
      operationId: checkHandleAvailable
      tags:
      - Channels
      summary: Is a handle free
      description: Check before calling `create_channel`. The handle becomes the subdomain, so it is permanent in practice — archiving a channel keeps its handle reserved.
      parameters:
      - name: handle
        in: query
        required: true
        schema:
          $ref: '#/components/schemas/Handle'
      responses:
        '200':
          description: Availability
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ApiSuccess'
                - type: object
                  properties:
                    data:
                      type: object
                      properties:
                        available:
                          type: boolean
        '401':
          $ref: '#/components/responses/Unauthorized'
  /channels/create.php:
    post:
      operationId: createChannel
      tags:
      - Channels
      summary: Create a channel
      description: 'Creates a channel. It starts private and off air; it goes live by itself once the

        launch requirements are met.


        `is_public: true` lists it in Discover and is available on **every** tier, including

        Starter. Never tell an owner to upgrade for public listing — an earlier version of the

        documentation said Creator+ was required and that was wrong.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateChannelRequest'
      responses:
        '200':
          description: Channel created
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ApiSuccess'
                - type: object
                  properties:
                    data:
                      $ref: '#/components/schemas/Channel'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          description: The handle is already taken
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /channels/list.php:
    get:
      operationId: listChannels
      tags:
      - Channels
      summary: List channels
      parameters:
      - name: owner
        in: query
        required: false
        description: Pass `me` to restrict the list to channels owned by the authenticated account.
        schema:
          type: string
          enum:
          - me
      responses:
        '200':
          description: Channels
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSuccess'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /channels/get.php:
    get:
      operationId: getChannel
      tags:
      - Channels
      summary: One channel, including whether it is on air
      description: '**This is the call that tells you whether a channel is broadcasting.** Poll

        `scheduleStatus` (also returned as `schedule_status`) until it reads `active`, then

        report `watchUrl` to the owner.'
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: The channel
          content:
            application/json:
              schema:
                allOf:
                - $ref: '#/components/schemas/ApiSuccess'
                - type: object
                  properties:
                    data:
                      $ref: '#/components/schemas/Channel'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /channels/update.php:
    put:
      operationId: updateChannel
      tags:
      - Channels
      summary: Update allowlisted channel fields
      description: '**The channel id goes in the query string as `?id=N`**, not in the body. This is the

        opposite of `PUT /assets/update.php`, where the id goes in the body as `asset_id`. The

        inconsistency is real; both are documented here so you do not have to find out.


        Only allowlisted fields are accepted; anything else is ignored rather than erroring.'
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                description:
                  type: string
                tags:
                  type: array
                  items:
                    type: string
                is_public:
                  type: boolean
                category:
                  type: string
                scheduling_mode:
                  type: string
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSuccess'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /channels/delete.php:
    post:
      operationId: archiveChannel
      tags:
      - Channels
      summary: Take a channel off air (archive, not destroy)
      description: 'Takes the channel off air and removes it from every listing. **Not destructive in the

        irreversible sense:** the handle stays reserved and the assets are retained.


        Idempotent — safe to retry. Returns `409` if transcodes are still running for the

        channel; wait for them or retry.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - channel_id
              properties:
                channel_id:
                  type: integer
      responses:
        '200':
          description: Archived
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiSuccess'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          description: Transcodes are still running for this channel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    ApiError:
      type: object
      required:
      - success
      - error
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
          description: Human-readable. For the YouTube ownership failure this string contains the exact tag the owner must publish — relay it verbatim.
        code:
          type: integer
    Channel:
      type: object
      properties:
        id:
          type: integer
        handle:
          $ref: '#/components/schemas/Handle'
        name:
          type: string
        description:
          type: string
        channelType:
          type: string
        isPublic:
          type: boolean
        category:
          type: string
        tags:
          type: array
          items:
            type: string
        scheduleStatus:
          $ref: '#/components/schemas/ScheduleStatus'
        schedule_status:
          $ref: '#/components/schemas/ScheduleStatus'
          description: Snake-case alias of `scheduleStatus`; both are returned.
        watchUrl:
          type: string
          format: uri
          examples:
          - https://retro-arcade.my-tv-channel.com
        launchGaps:
          type: array
          description: What this channel still needs before it can go live, in plain language. Empty once the requirements are met.
          items:
            type: string
          examples:
          - - needs 2 more ready asset(s)
    ScheduleStatus:
      type: string
      enum:
      - inactive
      - pending
      - active
      - error
      description: '`active` means the channel is broadcasting.'
    CreateChannelRequest:
      type: object
      required:
      - handle
      - name
      - channel_type
      properties:
        handle:
          $ref: '#/components/schemas/Handle'
        name:
          type: string
        channel_type:
          type: string
          enum:
          - location
          - thematic
          description: '`location` requires a `location` object. `thematic` is the usual choice.'
        description:
          type: string
        primary_language:
          type: string
          description: ISO 639-1 code, e.g. `en`.
        tags:
          type: array
          items:
            type: string
        category:
          type: string
        orientation:
          type: string
          description: Portrait or landscape presentation.
        is_public:
          type: boolean
          default: false
          description: List the channel in Discover. **Available on every tier**, including Starter.
        location:
          type: object
          description: Required when `channel_type` is `location`.
          properties:
            latitude:
              type: number
            longitude:
              type: number
            radius_km:
              type: number
            name:
              type: string
    Handle:
      type: string
      pattern: ^[a-z0-9-]{3,63}$
      description: 3–63 characters, lowercase letters, digits and hyphens. Becomes the channel's subdomain — `https://{handle}.my-tv-channel.com` — so treat it as permanent.
      examples:
      - retro-arcade
    ApiSuccess:
      type: object
      required:
      - success
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
        data: {}
  responses:
    NotFound:
      description: No such resource, or it does not belong to this account
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    BadRequest:
      description: Malformed request or a rejected value
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Missing, malformed or revoked API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'An API key, `Authorization: Bearer mytv_sk_...`. Created by a signed-in human at

        <https://my-tv-channel.com/agent-keys/> or in the app under Profile → Agent Access.

        Requires an active subscription on any tier; the key inherits the owner''s tier limits.


        Key management — creating and revoking — is deliberately impossible with an API key,

        so an agent holding one cannot escalate to issuing more. **Never ask the owner for

        their Apple password or app login.** The key is all you need.

        '
externalDocs:
  description: Agent guide, with a worked path from nothing to a broadcasting channel. Read this if the spec alone leaves you unsure what order to call things in.
  url: https://my-tv-channel.com/api/mytvchannel/docs/AGENTS.md