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

# Preview a stored version

> A stored version as a page renders it, for its author and organization admins; the page runs it with writes and events stubbed and shows that it is a preview.



## OpenAPI

````yaml /openapi.json get /customization/views/{view}/versions/{version}/preview
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.canary.effectiveai.app/api/v2
    description: Canary
security:
  - bearerAuth: []
paths:
  /customization/views/{view}/versions/{version}/preview:
    get:
      tags:
        - Views
      summary: Preview a stored version
      description: >-
        A stored version as a page renders it, for its author and organization
        admins; the page runs it with writes and events stubbed and shows that
        it is a preview.
      operationId: previewViewVersion
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: view
          in: path
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            maximum: 1000000
          required: true
          name: version
          in: path
      responses:
        '200':
          description: The version to preview, with its slot.
          content:
            application/json:
              schema:
                type: object
                properties:
                  viewId:
                    type: string
                    format: uuid
                  version:
                    type: number
                  slotVersion:
                    type: number
                  meta:
                    nullable: true
                  digest:
                    type: string
                  trusted:
                    type: boolean
                  requests:
                    type: array
                    items:
                      type: string
                  slot:
                    type: string
                required:
                  - viewId
                  - version
                  - slotVersion
                  - digest
                  - trusted
                  - requests
                  - slot
        '400':
          description: The request is invalid.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        location:
                          type: string
                          enum:
                            - body
                        path:
                          type: array
                          items:
                            type: string
                        code:
                          type: string
                          enum:
                            - invalid_value
                        message:
                          type: string
                      required:
                        - location
                        - path
                        - code
                        - message
                required:
                  - error
                  - code
        '403':
          description: >-
            The caller may not do this, or UI Modules are off for the
            organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        location:
                          type: string
                          enum:
                            - body
                        path:
                          type: array
                          items:
                            type: string
                        code:
                          type: string
                          enum:
                            - invalid_value
                        message:
                          type: string
                      required:
                        - location
                        - path
                        - code
                        - message
                required:
                  - error
                  - code
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        location:
                          type: string
                          enum:
                            - body
                        path:
                          type: array
                          items:
                            type: string
                        code:
                          type: string
                          enum:
                            - invalid_value
                        message:
                          type: string
                      required:
                        - location
                        - path
                        - code
                        - message
                required:
                  - error
                  - code
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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