> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Room Livestreaming Add Endpoints

> Add RTMP destinations to a live stream that is already running in a room. Each `endpoint` must be the `name` of an `rtmp` entry in the room's [`streaming_endpoints`](/reference/rest-api/rooms/config#streaming_endpoints) property; unknown names are rejected with a `400`. This is the REST counterpart of daily-js [`addLiveStreamingEndpoints()`](/reference/daily-js/instance-methods/add-live-streaming-endpoints).

The update is asynchronous. A `200` means the request was accepted and forwarded to the live stream, not that it has taken effect. The [`streaming.updated`](/reference/rest-api/webhooks/events/streaming-updated) webhook confirms the request was processed; anything the media server rejects or fails to apply later arrives as a [`streaming.warning`](/reference/rest-api/webhooks/events/streaming-warning) webhook, or as a [`live-streaming-warning`](/reference/daily-js/events/error-events#live-streaming-warning) event in daily-js.



## OpenAPI

````yaml POST /rooms/{room_name}/live-streaming/add-endpoints
openapi: 3.0.3
info:
  title: Daily API
  description: |-
    The Daily REST API offers the ability to manage the following: 
    - Overall Domain Configuration
    - Individual Room creation and config management 
    - Meeting token creation and validation
    - Recording and compositing management 
    - Meeting analytics
    - Logs and metrics
    - Real-time presence

    Please reach out to help@daily.co if we can help with anything
  version: 1.1.1
  contact:
    name: Daily
    url: https://docs.daily.co
    email: help@daily.co
servers:
  - url: https://api.daily.co/v1
security:
  - bearerAuth: []
paths:
  /rooms/{room_name}/live-streaming/add-endpoints:
    post:
      tags:
        - rooms
      summary: rooms/:name/live-streaming/add-endpoints
      description: >-
        Add RTMP destinations to a live stream that is already running in a
        room. Each `endpoint` must be the `name` of an `rtmp` entry in the
        room's
        [`streaming_endpoints`](/reference/rest-api/rooms/config#streaming_endpoints)
        property; unknown names are rejected with a `400`. This is the REST
        counterpart of daily-js
        [`addLiveStreamingEndpoints()`](/reference/daily-js/instance-methods/add-live-streaming-endpoints).


        The update is asynchronous. A `200` means the request was accepted and
        forwarded to the live stream, not that it has taken effect. The
        [`streaming.updated`](/reference/rest-api/webhooks/events/streaming-updated)
        webhook confirms the request was processed; anything the media server
        rejects or fails to apply later arrives as a
        [`streaming.warning`](/reference/rest-api/webhooks/events/streaming-warning)
        webhook, or as a
        [`live-streaming-warning`](/reference/daily-js/events/error-events#live-streaming-warning)
        event in daily-js.
      operationId: RoomLivestreamingAddEndpoints
      parameters:
        - name: room_name
          in: path
          required: true
          style: simple
          explode: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DailyLiveStreamingEndpointsOptions'
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    status: sent
        '400':
          $ref: '#/components/responses/400'
      deprecated: false
      security:
        - bearerAuth: []
components:
  schemas:
    DailyLiveStreamingEndpointsOptions:
      properties:
        endpoints:
          description: >-
            The destinations to add or remove. Each `endpoint` is the `name` of
            an `rtmp` entry in the room's `streaming_endpoints` property.
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/DailyStreamingEndpoint'
        instanceId:
          type: string
          description: >-
            UUID of the live streaming instance to change. Required when several
            live streams are running in the room; otherwise the default instance
            is used.
      required:
        - endpoints
      additionalProperties: false
      title: DailyLiveStreamingEndpointsOptions
      type: object
    DailyStreamingEndpoint:
      properties:
        endpoint:
          title: DailyStreamingEndpoint.endpoint
          type: string
      required:
        - endpoint
      additionalProperties: false
      title: DailyStreamingEndpoint
      type: object
  responses:
    '400':
      description: '400'
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              info:
                type: string
          examples:
            Result:
              value:
                error: invalid-request-error
                info: missing required field
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.