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

# Get the embed snippet

> Returns ready-to-paste embed code for this context: the `<iframe>` and `<script>` loader snippets, plus the viewer URL and default dimensions. Paste a snippet into any page to show the widget. Use the context's `id` (UUID) in the path.



## OpenAPI

````yaml /specs/openapi-interactive.json get /api/console/b2c/contexts/{id}/embed/
openapi: 3.0.3
info:
  title: Perso Interactive API
  version: 0.0.0
servers:
  - url: https://platform.perso.ai
security: []
tags:
  - name: Embed
paths:
  /api/console/b2c/contexts/{id}/embed/:
    get:
      tags:
        - Embed
      summary: Get the embed snippet
      description: >-
        Returns ready-to-paste embed code for this context: the `<iframe>` and
        `<script>` loader snippets, plus the viewer URL and default dimensions.
        Paste a snippet into any page to show the widget. Use the context's `id`
        (UUID) in the path.
      operationId: console_b2c_contexts_embed_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying this context.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
          description: ''
      security:
        - PersoPlatform-APIKey: []
        - cookieAuth: []
components:
  securitySchemes:
    PersoPlatform-APIKey:
      type: apiKey
      in: header
      name: PersoPlatform-APIKey
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid

````