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

# Report how views ran on a desk page

> What a desk page saw of the views it ran: each one's first frame, restart or failure. Recorded as product analytics, never stored or returned. A desk's session reports only its own desk.



## OpenAPI

````yaml /openapi.json post /customization/view-reports
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/view-reports:
    post:
      tags:
        - Views
      summary: Report how views ran on a desk page
      description: >-
        What a desk page saw of the views it ran: each one's first frame,
        restart or failure. Recorded as product analytics, never stored or
        returned. A desk's session reports only its own desk.
      operationId: reportViews
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                desk:
                  type: string
                  maxLength: 32
                  pattern: ^[a-z][a-z0-9]*(-[a-z0-9]+)*$
                reports:
                  type: array
                  items:
                    type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - rendered
                          - failed
                          - restarted
                      slot:
                        type: string
                        maxLength: 160
                        pattern: ^[a-z][a-z0-9-]*(\.[a-z0-9]+([.-][a-z0-9]+)*)+$
                      viewId:
                        type: string
                        format: uuid
                      version:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        maximum: 1000000
                      preview:
                        type: boolean
                      loadMs:
                        type: integer
                        minimum: 0
                        maximum: 600000
                      restarts:
                        type: integer
                        minimum: 0
                        maximum: 10
                      reason:
                        type: string
                        maxLength: 200
                    required:
                      - kind
                      - slot
                      - viewId
                      - version
                      - preview
                    additionalProperties: false
                  minItems: 1
                  maxItems: 50
              required:
                - desk
                - reports
              additionalProperties: false
      responses:
        '204':
          description: Recorded.
        '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.