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

# Get current user + partner brand

> Bootstrap call for the embedded webview. Returns the user the JWT resolved to (created just-in-time on first request) plus the partner brand block so the UI can render your logo without a second round-trip.



## OpenAPI

````yaml /openapi.json get /me
openapi: 3.1.0
info:
  title: Voucher Platform — Partner Integration API
  version: 1.0.0
  description: >-
    Server-to-server and consumer endpoints used by partner apps to provision
    users, embed the voucher webview, and receive lifecycle webhooks. See the
    [partner integration guide](/docs) for the full narrative including JWT
    setup, HMAC signing, and a worked end-to-end example.
servers:
  - url: http://localhost:4000
    description: Local development
security: []
tags:
  - name: Integrations
    description: >-
      Server-to-server endpoints called from the partner backend. Authenticated
      with an HMAC signature.
  - name: Consumer
    description: >-
      Called from inside the partner-issued webview (or partner-native UI) on
      behalf of an end user. Authenticated with a partner-signed JWT.
paths:
  /me:
    get:
      tags:
        - Consumer
      summary: Get current user + partner brand
      description: >-
        Bootstrap call for the embedded webview. Returns the user the JWT
        resolved to (created just-in-time on first request) plus the partner
        brand block so the UI can render your logo without a second round-trip.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  id:
                    type: string
                    format: uuid
                    description: Internal voucher-platform user UUID.
                  email:
                    type:
                      - 'null'
                      - string
                  displayName:
                    type:
                      - 'null'
                      - string
                  partner:
                    type:
                      - 'null'
                      - object
                    additionalProperties: true
                    description: >-
                      Brand block for the partner that owns this user. Null for
                      internal/preview users.
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                      slug:
                        type: string
                      displayName:
                        type:
                          - 'null'
                          - string
                      logoPath:
                        type:
                          - 'null'
                          - string
                        description: >-
                          Relative path under `/uploads/`. Concatenate with the
                          API host to display.
        '401':
          description: Missing / invalid JWT.
          content:
            application/json:
              schema:
                description: Missing / invalid JWT.
                type: object
                additionalProperties: true
                properties:
                  error:
                    type: string
        '404':
          description: JWT was valid but the user row was not found (extremely rare race).
          content:
            application/json:
              schema:
                description: >-
                  JWT was valid but the user row was not found (extremely rare
                  race).
                type: object
                additionalProperties: true
                properties:
                  error:
                    type: string
                    example: user_not_found
      security:
        - BearerJwt: []
components:
  securitySchemes:
    BearerJwt:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer JWT signed by your app, with `iss` matching the issuer registered
        on the partner record. Verified against your JWKS URL or static public
        key.

````