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

# Report client error

> Public diagnostic intake. Accepts only enumerated failure and page categories, a build revision and a random trace ID. Rejects raw messages, stack traces, account data, URLs, and extra fields. Maximum body is 512 bytes; logging is capped at 60 reports per minute per isolate. No database changes or paid services.



## OpenAPI

````yaml POST /report-client-error
openapi: 3.1.0
info:
  title: Wanderer's Guide API
  description: >-
    Public HTTP API for Wanderer's Guide, the Pathfinder 2e character builder.
    Every endpoint is a Supabase Edge Function reached via `POST
    /functions/v1/<name>`. All responses follow the
    [JSend](https://github.com/omniti-labs/jsend) convention: `{ status:
    'success' | 'fail' | 'error', data?, message? }`.
  version: 1.0.0
  contact:
    name: Wanderer's Guide Discord
    url: https://discord.com/invite/FxsFZVvedr
  license:
    name: MIT
    url: https://github.com/wanderers-guide/wanderers-guide/blob/main/LICENSE
servers:
  - url: https://api.wanderersguide.app/functions/v1
    description: Production
  - url: '{supabaseUrl}/functions/v1'
    description: Self-hosted Supabase
    variables:
      supabaseUrl:
        default: http://127.0.0.1:54321
        description: Base URL of your Supabase instance, including scheme and port.
security:
  - apiKeyAuth: []
tags:
  - name: Content
    description: 'Pathfinder 2e content: spells, items, feats, ancestries, classes, etc.'
  - name: Characters
    description: Player characters.
  - name: Campaigns
    description: Campaigns and encounters.
  - name: GM
    description: 'Game-master tools: group management, access codes.'
  - name: Users
    description: Public user profiles, account management, Patreon integration.
  - name: Search
    description: Full-text and advanced search across content.
  - name: Files
    description: User-uploaded portrait and background images.
  - name: Integrations
    description: Vector DB and Discord webhooks.
paths:
  /report-client-error:
    post:
      tags:
        - Integrations
      summary: Report a bounded browser failure
      description: >-
        Public diagnostic intake. Accepts only enumerated failure and page
        categories, a build revision and a random trace ID. Rejects raw
        messages, stack traces, account data, URLs, and extra fields. Maximum
        body is 512 bytes; logging is capped at 60 reports per minute per
        isolate. No database changes or paid services.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - code
                - surface
                - release
                - trace_id
              properties:
                code:
                  type: string
                  enum:
                    - content_load_failed
                    - calculation_failed
                    - save_failed
                    - auth_failed
                    - update_failed
                    - chunk_failed
                    - unhandled_error
                    - unhandled_rejection
                surface:
                  type: string
                  enum:
                    - sheet
                    - builder
                    - account
                    - homebrew
                    - campaign
                    - other
                release:
                  type: string
                  pattern: ^(?:[a-f0-9]{7,40}|local)$
                trace_id:
                  type: string
                  format: uuid
      responses:
        '200':
          description: >-
            JSend success with data true, or fail for an invalid diagnostic
            report.
        '413':
          description: Report exceeds 512 bytes.
        '429':
          description: Ingress request budget exceeded.
      security: []
components:
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key (UUID, 36 chars)
      description: >-
        API key created in your Wanderer's Guide account settings. Send as
        `Authorization: Bearer <key>`. Used for direct API access from external
        tools and scripts.

````