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

# RecordPageFeedbackAPI mirrors erdo_record_page_feedback: ingest one or more


> structured client page-feedback items, each naming its page by experiment\_slug + variant\_key. Every item mints a 'defect' observation on the experiment ledger (judge\_slug human:\<user\_id>) with the item's feedback text stored verbatim as the reason — the same channel and shape erdo\_respond\_attention\_item's flag-broken-variant path writes.




## OpenAPI

````yaml /api/openapi.json post /v1/page-feedback
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-08-15'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/page-feedback:
    post:
      summary: >
        RecordPageFeedbackAPI mirrors erdo_record_page_feedback: ingest one or
        more
      description: >
        structured client page-feedback items, each naming its page by
        experiment\_slug + variant\_key. Every item mints a 'defect' observation
        on the experiment ledger (judge\_slug human:\<user\_id>) with the item's
        feedback text stored verbatim as the reason — the same channel and shape
        erdo\_respond\_attention\_item's flag-broken-variant path writes.
      operationId: POST:mcp.RecordPageFeedbackAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                items:
                  items:
                    $ref: '#/components/schemas/mcp.PageFeedbackItemInput'
                  type: array
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  items:
                    items:
                      $ref: '#/components/schemas/types.PageFeedbackResult'
                    type: array
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    mcp.PageFeedbackItemInput:
      description: |
        args shape, shared with the REST body.
      properties:
        experiment_slug:
          type: string
        feedback:
          type: string
        image_bucket_key:
          type: string
        variant_key:
          type: string
      title: >
        PageFeedbackItemInput is one item of a page_feedback round — the MCP
        tool
      type: object
    types.PageFeedbackResult:
      description: |
        landed.
      properties:
        experiment_slug:
          type: string
        observation_id:
          type: string
        variant_key:
          type: string
      title: |
        PageFeedbackResult reports where one item's minted defect observation
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````