Lightstream LayoutService API

Layouts

Operations 5

GET /layouts Get all layouts owned by the user. #
POST /layouts Create a new layout #
GET /layouts/{layoutId} Get a layout #
DELETE /layouts/{layoutId} Delete a layout #
PATCH /layouts/{layoutId} Update a layout #

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/lightstream-layoutservice-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

lightstream-layoutservice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Event AuthenticationService Layout Service API
  version: '2.0'
  description: The Authentication Service provides token services for clients
servers:
- url: https://live.api.stream/event/v2
tags:
- name: LayoutService
  description: Layouts
paths:
  /layouts:
    get:
      summary: Get all layouts owned by the user.
      operationId: LayoutService_ListLayouts
      responses:
        '200':
          description: All layouts returned.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/v2Layout'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
      parameters:
      - name: projectId
        in: query
        required: false
        schema:
          type: string
      - name: collectionId
        in: query
        required: false
        schema:
          type: string
      - name: type
        description: " - LAYOUT_TYPE_SCENELESS: A layout managed by Studio Kit\n - LAYOUT_TYPE_SCENE: A layout managed via the layout API for use with our scene-based renderer."
        in: query
        required: false
        schema:
          type: string
          enum:
          - LAYOUT_TYPE_SCENELESS
          - LAYOUT_TYPE_SCENE
      tags:
      - LayoutService
    post:
      summary: 'Create a new layout

        '
      operationId: LayoutService_CreateLayout
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2Layout'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
      tags:
      - LayoutService
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v2PartialLayout'
        description: layout to create
        required: true
  /layouts/{layoutId}:
    get:
      summary: 'Get a layout

        '
      operationId: LayoutService_GetLayout
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2Layout'
        '404':
          description: Layout not found
          content:
            application/json:
              schema: {}
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
      parameters:
      - name: layoutId
        description: the id of the Layout
        in: path
        required: true
        schema:
          type: string
      tags:
      - LayoutService
    delete:
      summary: Delete a layout
      operationId: LayoutService_DeleteLayout
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2DeleteLayoutResponse'
        '404':
          description: Layout not found
          content:
            application/json:
              schema: {}
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
      parameters:
      - name: layoutId
        description: the id of the Layout
        in: path
        required: true
        schema:
          type: string
      tags:
      - LayoutService
    patch:
      summary: 'Update a layout

        '
      operationId: LayoutService_UpdateLayout
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2Layout'
        '404':
          description: Layout not found
          content:
            application/json:
              schema: {}
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rpcStatus'
      parameters:
      - name: layoutId
        description: the id of the Layout
        in: path
        required: true
        schema:
          type: string
      tags:
      - LayoutService
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v2PartialLayout'
        description: layout data to update with.
        required: true
components:
  schemas:
    v2Transition:
      type: object
      properties:
        fromLayoutIds:
          type: array
          items:
            type: string
          description: 'A list of layout IDs to apply this transition to. If empty,

            this transition will apply to all scene switches which _do not_ have a matching transition.

            If multiple transitions match (e.g multiple targetting the layout), a transition will be chosen at random.'
        cut:
          $ref: '#/components/schemas/TransitionTransitionCut'
        crossfade:
          $ref: '#/components/schemas/TransitionTransitionCrossfade'
        fadeToColor:
          $ref: '#/components/schemas/TransitionTransitionFadeToColor'
        swipe:
          $ref: '#/components/schemas/TransitionTransitionSwipe'
        stinger:
          $ref: '#/components/schemas/TransitionTransitionStinger'
      description: Transition defines a transition into this layout.
    TransitionTransitionCrossfade:
      type: object
      properties:
        durationMs:
          type: integer
          format: int32
          description: The duration to animate over.
      description: 'Transition: crossfade between two layouts.'
    v2LayoutType:
      type: string
      enum:
      - LAYOUT_TYPE_SCENELESS
      - LAYOUT_TYPE_SCENE
      description: "The type of layout, specifying how it functions.\n\n - LAYOUT_TYPE_SCENELESS: A layout managed by Studio Kit\n - LAYOUT_TYPE_SCENE: A layout managed via the layout API for use with our scene-based renderer."
    TransitionTransitionMediaType:
      type: object
      properties:
        url:
          type: string
          description: External URL to the media content.
        volume:
          type: number
          format: double
          description: Volume to play the media at between 0 and 1.
      title: Media definition
    v2DeleteLayoutResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 713f6e91-3831-4421-a720-1c8084d10525
          title: The ID of the layout deleted
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Metadata associated with the deletion of a layout
    TransitionTransitionStinger:
      type: object
      properties:
        cut:
          $ref: '#/components/schemas/TransitionTransitionStingerCut'
      description: 'Transition: stinger animation.'
    protobufAny:
      type: object
      properties:
        '@type':
          type: string
      additionalProperties: {}
    TransitionTransitionSwipeType:
      type: string
      enum:
      - TRANSITION_SWIPE_TYPE_COMBINED
      - TRANSITION_SWIPE_TYPE_SOURCE
      - TRANSITION_SWIPE_TYPE_DESTINATION
      title: "- TRANSITION_SWIPE_TYPE_UNSPECIFIED: Both layouts are animated together\n - TRANSITION_SWIPE_TYPE_COMBINED: Both layouts are animated together\n - TRANSITION_SWIPE_TYPE_SOURCE: The source animation is moved out of the way\n - TRANSITION_SWIPE_TYPE_DESTINATION: The destination layout is overlaid"
    rpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
    TransitionTransitionSwipe:
      type: object
      properties:
        durationMs:
          type: integer
          format: int32
          description: The duration to animate over.
        direction:
          $ref: '#/components/schemas/TransitionTransitionDirection'
          description: The direction to swipe the layer from.
        combinedAnimation:
          $ref: '#/components/schemas/TransitionTransitionSwipeType'
          description: How to animate the slide.
      description: 'Transition: Animation where layouts are slide over another.'
    v2PartialLayout:
      type: object
      properties:
        width:
          type: integer
          format: int32
          example: 1280
          title: width of the layer in pixels
          maximum: 10000
        height:
          type: integer
          format: int32
          example: 720
          title: height of the layer in pixels
          maximum: 10000
        metadata:
          type: object
          example:
            name: Test Layout
          description: Metadata associated with a layout. This is freeform JSON.
          maximum: 10000
        projectId:
          type: string
          example: 624c6f465887b2894ed87c87
          description: 'Project ID from the Live API for the layout

            note: this cannot be changed for existing layouts.'
        collectionId:
          type: string
          example: 624c6f475887b2894ed87c89
          description: 'Collection ID from the Live API for the layout

            note: this cannot be changed once set.'
        type:
          $ref: '#/components/schemas/v2LayoutType'
          example: LAYOUT_TYPE_SCENE
          description: 'The type of layout to use.

            Typically you should use LAYOUT_TYPE_SCENE to manage layouts via the API. This automatically

            creates a "root" layer for all layers to be under.

            LAYOUT_TYPE_SCENELESS is used for layouts managed by the Studio SDK.'
        transitions:
          type: array
          items:
            $ref: '#/components/schemas/v2Transition'
          description: 'Transitions to apply when switching to this scene from another

            note: this is only available for layouts of type `LAYOUT_TYPE_SCENE`.'
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Metadata associated with the publishing of the event
      title: Partial layout
    TransitionTransitionCut:
      type: object
      description: 'Transition: a simple scene switch. this is the default transition.'
    TransitionTransitionDirection:
      type: string
      enum:
      - TRANSITION_DIRECTION_LEFT
      - TRANSITION_DIRECTION_RIGHT
      - TRANSITION_DIRECTION_UP
      - TRANSITION_DIRECTION_DOWN
      description: Direction for the animation to display in.
    TransitionTransitionStingerCut:
      type: object
      properties:
        cutPointMs:
          type: integer
          format: int32
          description: 'The duration from the start of the media playing at which the layout should change.

            this should be a point where the entire screen is filled.'
        media:
          $ref: '#/components/schemas/TransitionTransitionMediaType'
          description: The remote media to play as the stinger.
      description: Stinger where the layout is cut over at a specific point.
    TransitionTransitionFadeToColor:
      type: object
      properties:
        durationMs:
          type: integer
          format: int32
          description: The duration to animate over. The fade to color will take half this duration.
        backgroundColor:
          type: string
          description: A CSS-compatible background color.
      description: 'Transition: Fade to a color before transitioning to another layout.'
    v2Layout:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 713f6e91-3831-4421-a720-1c8084d10525
          title: internal ID for the layout
        width:
          type: integer
          format: int32
          example: 1280
          title: width of the layout in pixels
          maximum: 10000
        height:
          type: integer
          format: int32
          example: 720
          title: height of the layout in pixels
          maximum: 10000
        metadata:
          type: object
          example:
            name: Test Layout
          description: Custom metadata for the layout. This is freeform.
          maximum: 10000
        projectId:
          type: string
          example: 624c6f465887b2894ed87c87
        collectionId:
          type: string
          example: 624c6f475887b2894ed87c89
        type:
          $ref: '#/components/schemas/v2LayoutType'
          example: LAYOUT_TYPE_SCENE
        transitions:
          type: array
          items:
            $ref: '#/components/schemas/v2Transition'
          description: 'Transitions to apply when switching to this scene from another

            note: this is only available for layouts of type `LAYOUT_TYPE_SCENE`.'
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Metadata sent with the request
      description: A Layout represents a container for multiple layers.