Lightstream LayerService API

Layers

Operations 6

GET /layouts/{layoutId}/layers List all layers #
POST /layouts/{layoutId}/layers Create a layer #
POST /layouts/{layoutId}/layers/batch Batch update #
GET /layouts/{layoutId}/layers/{layerId} Get a single layer #
DELETE /layouts/{layoutId}/layers/{layerId} Delete a layer #
PATCH /layouts/{layoutId}/layers/{layerId} Update a layer #

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-layerservice-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-layerservice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Event AuthenticationService Layer Service API
  version: '2.0'
  description: The Authentication Service provides token services for clients
servers:
- url: https://live.api.stream/event/v2
tags:
- name: LayerService
  description: Layers
paths:
  /layouts/{layoutId}/layers:
    get:
      summary: List all layers
      operationId: LayerService_ListLayers
      responses:
        '200':
          description: list of all layers
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/v2Layer'
        '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:
      - LayerService
    post:
      summary: 'Create a layer

        '
      operationId: LayerService_CreateLayer
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2Layer'
        '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:
      - LayerService
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v2PartialLayer'
        description: layer to create - all fields have defaults except type.
        required: true
  /layouts/{layoutId}/layers/batch:
    post:
      summary: 'Batch update

        '
      operationId: LayerService_Batch
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2BatchLayerResponse'
        '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 layout all requests interact with.
        in: path
        required: true
        schema:
          type: string
      tags:
      - LayerService
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                layers:
                  type: array
                  items:
                    $ref: '#/components/schemas/BatchLayerRequestBatchItem'
                  title: List of layers to update
                requestMetadata:
                  type: object
                  example:
                    example: true
                  default: undefined
                  title: Metadata sent with the request
                requestAnimationMode:
                  $ref: '#/components/schemas/v2RequestAnimationMode'
                  description: Order in which layer animations are applied in the batch.
              description: Batch request to modify a layout.
        required: true
  /layouts/{layoutId}/layers/{layerId}:
    get:
      summary: 'Get a single layer

        '
      operationId: LayerService_GetLayer
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2Layer'
        '404':
          description: Layer or 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
      - name: layerId
        description: the id of the Layer
        in: path
        required: true
        schema:
          type: string
      tags:
      - LayerService
    delete:
      summary: Delete a layer
      operationId: LayerService_DeleteLayer
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2DeleteLayerResponse'
        '404':
          description: Layer or 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
      - name: layerId
        description: the id of the Layer
        in: path
        required: true
        schema:
          type: string
      tags:
      - LayerService
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v2DeleteLayerPayload'
        description: Metadata associated with the deletion of a layer
        required: true
    patch:
      summary: 'Update a layer

        '
      operationId: LayerService_UpdateLayer
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v2Layer'
        '404':
          description: Layer or 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
      - name: layerId
        description: the id of the Layer
        in: path
        required: true
        schema:
          type: string
      tags:
      - LayerService
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v2PartialLayer'
        description: layer data to update with.
        required: true
components:
  schemas:
    BatchLayerRequestBatchItem:
      type: object
      properties:
        create:
          $ref: '#/components/schemas/v2PartialLayer'
          title: Create a layer
        update:
          $ref: '#/components/schemas/v2PartialLayerWithID'
          title: Update a layer
        delete:
          $ref: '#/components/schemas/v2BatchDeleteLayerRequest'
          title: Delete a layer
      description: A batch action.
    v2DeleteLayerPayload:
      type: object
      properties:
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Metadata associated with the deletion of a layer
    rpcStatus:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/protobufAny'
    v2LayerAnimation:
      type: object
      properties:
        properties:
          type: array
          example:
          - '*'
          items:
            type: string
          description: The properties to animate on. Currently x, y, width, height, opacity and scale are supported. "*" can be used to target all properties.
          required:
          - properties
        durationMs:
          type: integer
          format: int32
          example: 1000
          title: The duration to transition over in milliseconds
          maximum: 30000
          required:
          - duration_ms
        delayMs:
          type: integer
          format: int32
          example: 1000
          description: A delay to offset the animation by.
          maximum: 30000
        easingMode:
          type: string
          example: ease-in-out
          default: '"linear"'
          title: 'The easing mode for the transition.

            This value can be anything supported as an easing function: https://developer.mozilla.org/en-US/docs/Web/CSS/easing-function'
      description: 'note: this is currently only supported where layout type is "scene".'
      title: 'Represents how we should apply the action, transitioning from the current state to the new state.

        If multiple LayerAnimation''s are defined, the final LayerAnimation will be used that has a matching property!'
      required:
      - properties
      - durationMs
    v2PartialLayerWithID:
      type: object
      properties:
        id:
          type: string
          example: '12345'
          description: ID of the layer.
          required:
          - id
        type:
          type: string
          example: image
          title: 'the type of layer we''re interacting with: e.g alert, banner'
        data:
          type: object
          example:
            media:
              url: https://rainmaker.gg/assets/logo-white-medium.png
          description: Custom value for the layer. This is freeform.
        x:
          type: integer
          example: 1000
          description: x position in pixels. This can be null if the layer has no absolute position.
          maximum: 10000
        y:
          type: integer
          example: 1000
          description: y position in pixels. Can be null if the layer has no absolute position.
          maximum: 10000
        width:
          type: integer
          example: 1000
          description: width in pixels of the layer. can be null if the layer is dynamically sizable.
          maximum: 10000
        height:
          type: integer
          example: 1000
          description: height in pixels of the layer. can be null if the layer is dynamically sizable.
          maximum: 10000
        rotation:
          type: integer
          format: double
          example: 180
          default: '0'
          description: rotation of layer in degrees of the layer.
          maximum: 360
          minimum: -360
        opacity:
          type: number
          format: double
          example: 180
          default: '1'
          description: opacity of the layer. This is the same as the CSS value, 0 being transparent and 1 being opaque.
          maximum: 1
        scale:
          type: number
          format: double
          example: 0.8
          default: '1'
          description: 'Scale of the layer. This is expontential, with 1 equaling the normal size of the layer.

            note: width/height will be affected.'
          maximum: 4
        hidden:
          type: boolean
          example: false
          default: 'false'
          description: whether the layer should be rendered.
        children:
          type: array
          example:
          - '1'
          - '2'
          - '3'
          items:
            type: object
          default: '[]'
          description: children of the layer.
        parentId:
          type: string
          example: '1234'
          description: parent layer to asssign to.
        metadata:
          type: object
          example:
            name: Test Layer
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Metadata sent with the request
        requestAnimation:
          type: array
          items:
            $ref: '#/components/schemas/v2LayerAnimation'
          default: '[]'
          description: Animation information for the layer.
      description: Partial Layer for updating.
      required:
      - id
    v2DeleteLayerResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 713f6e91-3831-4421-a720-1c8084d10525
          title: The layer id that was deleted
        layoutId:
          type: string
          format: uuid
          example: 713f6e91-3831-4421-a720-1c8084d10525
          description: The layout this layer belongs to.
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Optional request metadata sent with the delete request
    v2BatchLayerResponse:
      type: object
      properties:
        layers:
          type: array
          items:
            $ref: '#/components/schemas/BatchLayerResponseBatchLayerItem'
          title: List of responses
        layoutId:
          type: string
          format: uuid
          example: 713f6e91-3831-4421-a720-1c8084d10525
          description: The layout this batch update belongs to.
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Metadata sent with the request
        requestAnimationMode:
          $ref: '#/components/schemas/v2RequestAnimationMode'
          description: Order in which layer animations are applied in the batch.
      description: A batch update for layers within a layout, indicating creation, removal and updates to layers.
    v2RequestAnimationMode:
      type: string
      enum:
      - REQUEST_ANIMATION_MODE_PARALLEL
      - REQUEST_ANIMATION_MODE_SERIES
      description: "Define how to apply animations in a batch request.\n\n - REQUEST_ANIMATION_MODE_PARALLEL: All animations in the batch will be applied at once.\n - REQUEST_ANIMATION_MODE_SERIES: Each layer update will appy after all animations on the previous layer(s) have completed."
    v2PartialLayer:
      type: object
      properties:
        type:
          type: string
          example: image
          title: 'the type of layer we''re interacting with: e.g alert, banner'
        data:
          type: object
          example:
            media:
              url: https://rainmaker.gg/assets/logo-white-medium.png
          description: Custom value for the layer. This is freeform.
        x:
          type: integer
          example: 1000
          description: x position in pixels. This can be null if the layer has no absolute position.
          maximum: 10000
        y:
          type: integer
          example: 1000
          description: y position in pixels. Can be null if the layer has no absolute position.
          maximum: 10000
        width:
          type: integer
          example: 1000
          description: width in pixels of the layer. can be null if the layer is dynamically sizable.
          maximum: 10000
        height:
          type: integer
          example: 1000
          description: height in pixels of the layer. can be null if the layer is dynamically sizable.
          maximum: 10000
        rotation:
          type: integer
          format: double
          example: 180
          default: '0'
          description: rotation of layer in degrees of the layer.
          maximum: 360
          minimum: -360
        opacity:
          type: number
          format: double
          example: 180
          default: '1'
          description: opacity of the layer. This is the same as the CSS value, 0 being transparent and 1 being opaque.
          maximum: 1
        scale:
          type: number
          format: double
          example: 0.8
          default: '1'
          description: 'Scale of the layer. This is expontential, with 1 equaling the normal size of the layer.

            note: width/height will be affected.'
          maximum: 4
        hidden:
          type: boolean
          example: false
          default: 'false'
          description: whether the layer should be rendered.
        children:
          type: array
          example:
          - '1'
          - '2'
          - '3'
          items:
            type: object
          default: '[]'
          description: children of the layer.
        parentId:
          type: string
          example: '1234'
          description: parent layer to asssign to.
        metadata:
          type: object
          example:
            name: Test Layer
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Metadata sent with the request
        requestAnimation:
          type: array
          items:
            $ref: '#/components/schemas/v2LayerAnimation'
          default: '[]'
          description: Animation information for the layer.
      description: Partial Layer for creating and updating.
    protobufAny:
      type: object
      properties:
        '@type':
          type: string
      additionalProperties: {}
    v2Layer:
      type: object
      properties:
        type:
          type: string
          example: image
          title: 'the type of layer we''re interacting with: e.g alert, banner'
        data:
          type: object
          example:
            media:
              url: https://rainmaker.gg/assets/logo-white-medium.png
          description: Custom value for the layer. This is freeform.
        x:
          type: integer
          example: 1000
          description: x position in pixels. This can be null if the layer has no absolute position.
          maximum: 10000
        y:
          type: integer
          example: 1000
          description: y position in pixels. Can be null if the layer has no absolute position.
          maximum: 10000
        width:
          type: integer
          example: 1000
          description: width in pixels of the layer. can be null if the layer is dynamically sizable.
          maximum: 10000
        height:
          type: integer
          example: 1000
          description: height in pixels of the layer. can be null if the layer is dynamically sizable.
          maximum: 10000
        rotation:
          type: integer
          format: double
          example: 180
          default: '0'
          description: rotation of layer in degrees of the layer.
          maximum: 360
          minimum: -360
        opacity:
          type: number
          format: double
          example: 180
          default: '1'
          description: opacity of the layer. This is the same as the CSS value, 0 being transparent and 1 being opaque.
          maximum: 1
        scale:
          type: number
          format: double
          example: 0.8
          default: '1'
          description: 'Scale of the layer. This is expontential, with 1 equaling the normal size of the layer.

            note: width/height will be affected.'
          maximum: 4
        hidden:
          type: boolean
          example: false
          default: 'false'
          description: whether the layer should be rendered.
        children:
          type: array
          example:
          - '1'
          - '2'
          - '3'
          items:
            type: object
          default: '[]'
          description: children of the layer.
        metadata:
          type: object
          example:
            name: Test Layer
          description: Custom metadata for the layer. This is freeform.
        id:
          type: string
          example: '1234'
          title: id of the layer
        layoutId:
          type: string
          format: uuid
          example: 713f6e91-3831-4421-a720-1c8084d10525
          description: the layout this layer is associated with.
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Metadata sent with the request
        requestAnimation:
          type: array
          items:
            $ref: '#/components/schemas/v2LayerAnimation'
          default: '[]'
          description: Animation information for the layer which should be applied on update.
      description: The Layer represents a single item within a layout.
    v2BatchDeleteLayerRequest:
      type: object
      properties:
        id:
          type: string
          example: '12345'
          description: ID of the layer deleted.
          required:
          - id
        requestMetadata:
          type: object
          example:
            example: true
          default: undefined
          title: Metadata associated with the deletion of a layer
      required:
      - id
    BatchLayerResponseBatchLayerItem:
      type: object
      properties:
        create:
          $ref: '#/components/schemas/v2Layer'
        update:
          $ref: '#/components/schemas/v2Layer'
        delete:
          $ref: '#/components/schemas/v2DeleteLayerResponse'
      description: Thee result of interacting with that layer.