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

# Get a public user profile

> Without a body, returns the caller's own profile. Pass id (Supabase auth user id, UUID) or _id (numeric public_user.id) to look up another user. Sensitive fields (Patreon tokens, API keys) are stripped from the response.



## OpenAPI

````yaml POST /get-user
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:
  /get-user:
    post:
      tags:
        - Users
      summary: Get a public user profile
      description: >-
        Without a body, returns the caller's own profile. Pass `id` (Supabase
        auth user id, UUID) or `_id` (numeric `public_user.id`) to look up
        another user. Sensitive fields (Patreon tokens, API keys) are stripped
        from the response.
      operationId: getUser
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  format: uuid
                  description: Supabase auth user id.
                _id:
                  type: string
                  description: public_user.id (numeric) as a string.
      responses:
        '200':
          description: JSend success with the public user.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    $ref: '#/components/schemas/PublicUser'
components:
  schemas:
    PublicUser:
      type: object
      required:
        - user_id
        - display_name
      properties:
        id:
          type: integer
        user_id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        display_name:
          type: string
        image_url:
          type: string
        background_image_url:
          type: string
        site_theme:
          type: object
          properties:
            color:
              type: string
        is_admin:
          type: boolean
        is_mod:
          type: boolean
        is_developer:
          type: boolean
        is_community_paragon:
          type: boolean
        deactivated:
          type: boolean
        summary:
          type: string
        organized_play_id:
          type: string
        subscribed_content_sources:
          type: array
          items:
            type: object
            properties:
              source_id:
                type: integer
              source_name:
                type: string
              added_at:
                type: string
        patreon:
          type: object
          additionalProperties: true
        api:
          type: object
          properties:
            clients:
              type: array
              items:
                type: object
                required:
                  - id
                  - name
                  - api_key
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  description:
                    type: string
                  image_url:
                    type: string
                  api_key:
                    type: string
                    description: 36-char UUID
  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.

````