> ## 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.

# Check view source without storing it

> Compiles and typechecks source against a slot version, and checks its declared requests, exactly as an upload would, storing nothing. Writes nothing; safe to retry.



## OpenAPI

````yaml /openapi.json post /customization/checks
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/checks:
    post:
      tags:
        - Views
      summary: Check view source without storing it
      description: >-
        Compiles and typechecks source against a slot version, and checks its
        declared requests, exactly as an upload would, storing nothing. Writes
        nothing; safe to retry.
      operationId: checkView
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                files:
                  type: object
                  additionalProperties:
                    type: string
                    maxLength: 2097152
                entry:
                  type: string
                  minLength: 1
                  maxLength: 240
                requests:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 300
                  maxItems: 50
                  default: []
                slotVersion:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                slot:
                  type: string
                  maxLength: 160
                  pattern: ^[a-z][a-z0-9-]*(\.[a-z0-9]+([.-][a-z0-9]+)*)+$
              required:
                - files
                - entry
                - slot
              additionalProperties: false
      responses:
        '200':
          description: The source compiles.
          content:
            application/json:
              schema:
                type: object
                properties:
                  digest:
                    type: string
                  slotVersion:
                    type: number
                required:
                  - digest
                  - slotVersion
        '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
        '422':
          description: >-
            It does not compile (`view_compile_failed`, with `details`) or
            declares a request the slot does not allow.
          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
        '429':
          description: The compiler is busy.
          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.