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

# Negotiate a Camera Live View

> Negotiate a Camera Live View with the Seam API. Reference for POST /cameras/live_views/offer in the Seam API, with request and response details.

Exchanges a WebRTC SDP offer for an SDP answer that starts streaming video from the camera, for a live view session that you created using `/cameras/live_views/create`.

Camera live view is in beta. To enable it for your workspace, contact Seam support.


## OpenAPI

````yaml /openapi.json post /cameras/live_views/offer
openapi: 3.0.0
info:
  description: >-
    Programmable API to control locks, thermostats, noise sensors, cameras,
    access control systems, and other IoT devices.


    Prefer the official Seam SDKs over hand-written HTTP calls: they handle

    authentication, request serialization, pagination, and error handling for

    you. The official SDKs are listed in this document under

    `info.x-seam-sdks`.


    If you call the HTTP API directly, your query parameters must be

    serialized compatibly with the Seam API. There is no universal convention

    for serializing arrays, booleans, or nested objects in a query string, so

    use @seamapi/url-search-params-serializer, the language specific serializer
    module provided by each Seam SDK, or follow its specification:

    https://github.com/seamapi/url-search-params-serializer
  title: Seam Connect
  version: 1.0.0
  x-seam-query-serializer:
    description: >-
      Reference implementation and specification for query parameter
      serialization compatible with the Seam API.
    url: https://github.com/seamapi/url-search-params-serializer
  x-seam-sdks:
    - language: javascript
      url: https://github.com/seamapi/javascript
    - language: python
      url: https://github.com/seamapi/python
    - language: ruby
      url: https://github.com/seamapi/ruby
    - language: php
      url: https://github.com/seamapi/php
    - language: csharp
      url: https://github.com/seamapi/csharp
servers:
  - url: https://connect.getseam.com
security: []
tags:
  - description: access_codes
    name: /access_codes
  - description: acs
    name: /acs
  - description: action_attempts
    name: /action_attempts
  - description: client_sessions
    name: /client_sessions
  - description: connected_accounts
    name: /connected_accounts
  - description: connect_webviews
    name: /connect_webviews
  - description: devices
    name: /devices
  - description: events
    name: /events
  - description: health
    name: /health
  - description: locks
    name: /locks
  - description: networks
    name: /networks
  - description: noise_sensors
    name: /noise_sensors
  - description: phones
    name: /phones
  - description: thermostats
    name: /thermostats
  - description: user_identities
    name: /user_identities
  - description: webhooks
    name: /webhooks
  - description: workspaces
    name: /workspaces
paths:
  /cameras/live_views/offer:
    post:
      tags: []
      summary: Negotiate a Camera Live View
      description: >-
        Exchanges a WebRTC SDP offer for an SDP answer that starts streaming
        video from the camera, for a live view session that you created using
        `/cameras/live_views/create`.


        Camera live view is in beta. To enable it for your workspace, contact
        Seam support.
      operationId: camerasLiveViewsOfferPost
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                camera_live_view_session_id:
                  description: ID of the camera live view session.
                  format: uuid
                  type: string
                sdp_offer:
                  description: >-
                    WebRTC SDP offer from the viewer, limited to 64 KiB of UTF-8
                    data.
                  maxLength: 65536
                  minLength: 1
                  type: string
                token:
                  description: >-
                    Token returned when the camera live view session was
                    created.
                  maxLength: 512
                  minLength: 1
                  type: string
              required:
                - camera_live_view_session_id
                - token
                - sdp_offer
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  camera_live_view_answer:
                    $ref: '#/components/schemas/camera_live_view_answer'
                required:
                  - camera_live_view_answer
                type: object
          description: OK
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
      security:
        - client_session: []
components:
  schemas:
    camera_live_view_answer:
      description: >-
        Represents the WebRTC SDP answer that starts streaming video from a
        camera for a live view session. See the [camera_live_view_answer
        object](https://www.seam.co/docs/api/cameras/live_views/object).
      properties:
        sdp_answer:
          description: WebRTC SDP answer for the offer, limited to 64 KiB of UTF-8 data.
          type: string
      required:
        - sdp_answer
      type: object
      x-route-path: /cameras/live_views
  securitySchemes:
    client_session:
      bearerFormat: Client Session Token
      scheme: bearer
      type: http

````