Cloudflare Stream Live Inputs API

Live inputs receiving RTMPS or SRT broadcasts, plus simulcast outputs.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
OTT & Streaming Delivery BC-3740.20

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /accounts/{account_id}/stream/live_inputs List live inputs on an account · List live inputs #
Ask an LLM
“Which live inputs are broadcasting on my account?”
“Can I see all my live inputs and their connection status?”
Tell an agent
List live inputs on account {account_id}.
Show every live input configured in {account_id}.
POST /accounts/{account_id}/stream/live_inputs Create a live input for RTMPS or SRT · Create a live input #
Ask an LLM
“How do I create a live input that can receive an RTMPS broadcast?”
“Can I record a live input as it streams?”
Tell an agent
Create a live input in account {account_id}.
Create a live input in {account_id} with recording {recording}.
GET /accounts/{account_id}/stream/live_inputs/{live_input_identifier} Get a live input's credentials and status · Retrieve a live input #
Ask an LLM
“What RTMPS or SRT credentials does my live input have?”
“Is my live input connected right now?”
Tell an agent
Show live input {live_input_identifier} in account {account_id}.
Fetch the connection status and credentials of {live_input_identifier} in {account_id}.
PUT /accounts/{account_id}/stream/live_inputs/{live_input_identifier} Update a live input's configuration · Update a live input #
Ask an LLM
“Can I change the settings of a live input I already created?”
“How do I rename a live input or update its recording settings?”
Tell an agent
Update live input {live_input_identifier} in account {account_id}.
Rename live input {live_input_identifier} in {account_id} to {meta}.
DELETE /accounts/{account_id}/stream/live_inputs/{live_input_identifier} Delete a live input · Delete a live input #
Ask an LLM
“How do I stop and remove a live input?”
“Can I delete a live input I no longer broadcast on?”
Tell an agent destructive · confirm first
Delete live input {live_input_identifier} from account {account_id}.
Remove the live input {live_input_identifier} in {account_id}.
GET /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs List simulcast outputs on a live input · List simulcast outputs #
Ask an LLM
“Which destinations is my live input simulcasting to?”
“What restreaming outputs are configured on a live input?”
Tell an agent
List simulcast outputs on live input {live_input_identifier} in account {account_id}.
Show where live input {live_input_identifier} in {account_id} is restreaming.
POST /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs Restream a live input to another RTMP destination · Create a simulcast output #
Ask an LLM
“How do I send my live stream to YouTube or Twitch?”
“Can I add a new simulcast output to a live input?”
Tell an agent
Restream live input {live_input_identifier} in account {account_id} to {url}.
Create a simulcast output on {live_input_identifier} in {account_id} with stream key {streamKey}.
PUT /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier} Enable or disable a simulcast output · Update a simulcast output #
Ask an LLM
“Can I pause a simulcast output without deleting it?”
“How do I turn a restreaming destination on or off?”
Tell an agent
Set simulcast output {output_identifier} on live input {live_input_identifier} in {account_id} to {enabled}.
Toggle restream output {output_identifier} on {live_input_identifier} in {account_id}.
DELETE /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier} Delete a simulcast output · Delete a simulcast output #
Ask an LLM
“How do I stop restreaming to one destination?”
“Can I remove a simulcast output from a live input?”
Tell an agent destructive · confirm first
Delete simulcast output {output_identifier} from live input {live_input_identifier} in account {account_id}.
Remove restream destination {output_identifier} on {live_input_identifier} in {account_id}.

Documentation

Specifications

Other Resources

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/cloudflare-stream:cloudflare-stream-live-inputs-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

cloudflare-stream-live-inputs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cloudflare Stream Live Inputs API
  description: Cloudflare Stream is the video streaming, hosting, and live-video product from Cloudflare.
  version: '1.0'
  contact:
    name: Cloudflare Stream
    url: https://developers.cloudflare.com/stream/
  license:
    name: Cloudflare Website and Online Services Terms of Use
    url: https://www.cloudflare.com/terms/
servers:
- url: https://api.cloudflare.com/client/v4
  description: Cloudflare API v4
security:
- bearerAuth: []
tags:
- name: Live Inputs
  description: Live inputs receiving RTMPS or SRT broadcasts, plus simulcast outputs.
paths:
  /accounts/{account_id}/stream/live_inputs:
    get:
      operationId: listLiveInputs
      tags:
      - Live Inputs
      summary: List live inputs
      description: Lists all live inputs on the account.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: A list of live inputs.
    post:
      operationId: createLiveInput
      tags:
      - Live Inputs
      summary: Create a live input
      description: Creates a live input that can receive a broadcast over RTMPS or SRT and deliver it live and as a recording.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LiveInputInput'
      responses:
        '200':
          description: The created live input.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiveInputResponse'
  /accounts/{account_id}/stream/live_inputs/{live_input_identifier}:
    get:
      operationId: getLiveInput
      tags:
      - Live Inputs
      summary: Retrieve a live input
      description: Fetches details, connection status, and RTMPS/SRT credentials for a live input.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/LiveInputIdentifier'
      responses:
        '200':
          description: The live input details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LiveInputResponse'
    put:
      operationId: updateLiveInput
      tags:
      - Live Inputs
      summary: Update a live input
      description: Updates the configuration of an existing live input.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/LiveInputIdentifier'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LiveInputInput'
      responses:
        '200':
          description: The updated live input.
    delete:
      operationId: deleteLiveInput
      tags:
      - Live Inputs
      summary: Delete a live input
      description: Deletes a live input.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/LiveInputIdentifier'
      responses:
        '200':
          description: The live input was deleted.
  /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs:
    get:
      operationId: listOutputs
      tags:
      - Live Inputs
      summary: List simulcast outputs
      description: Lists the simulcast (restreaming) outputs configured on a live input.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/LiveInputIdentifier'
      responses:
        '200':
          description: A list of outputs.
    post:
      operationId: createOutput
      tags:
      - Live Inputs
      summary: Create a simulcast output
      description: Creates a simulcast output that restreams the live input to another RTMP or SRT destination, such as YouTube or Twitch.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/LiveInputIdentifier'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                streamKey:
                  type: string
      responses:
        '200':
          description: The created output.
  /accounts/{account_id}/stream/live_inputs/{live_input_identifier}/outputs/{output_identifier}:
    put:
      operationId: updateOutput
      tags:
      - Live Inputs
      summary: Update a simulcast output
      description: Enables or disables a simulcast output.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/LiveInputIdentifier'
      - $ref: '#/components/parameters/OutputIdentifier'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
      responses:
        '200':
          description: The updated output.
    delete:
      operationId: deleteOutput
      tags:
      - Live Inputs
      summary: Delete a simulcast output
      description: Deletes a simulcast output from a live input.
      parameters:
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/LiveInputIdentifier'
      - $ref: '#/components/parameters/OutputIdentifier'
      responses:
        '200':
          description: The output was deleted.
components:
  schemas:
    LiveInputInput:
      type: object
      properties:
        meta:
          type: object
        recording:
          type: object
          properties:
            mode:
              type: string
    LiveInputResponse:
      type: object
      properties:
        result:
          $ref: '#/components/schemas/LiveInput'
        success:
          type: boolean
    LiveInput:
      type: object
      properties:
        uid:
          type: string
        rtmps:
          type: object
          properties:
            url:
              type: string
            streamKey:
              type: string
        srt:
          type: object
          properties:
            url:
              type: string
            streamId:
              type: string
            passphrase:
              type: string
        status:
          type: string
  parameters:
    LiveInputIdentifier:
      name: live_input_identifier
      in: path
      required: true
      description: The live input identifier.
      schema:
        type: string
    AccountId:
      name: account_id
      in: path
      required: true
      description: The Cloudflare account identifier.
      schema:
        type: string
    OutputIdentifier:
      name: output_identifier
      in: path
      required: true
      description: The simulcast output identifier.
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Cloudflare API token passed in an Authorization Bearer header.