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

# Read the browser origins your storefront may read this brand from

> Returns the exact web origins (scheme + host + port) your brand's website may read its storefront prices and commerce readiness from, using your PUBLISHABLE key, from a browser. An origin that is not on this list gets no cross-origin permission, and the browser refuses the response. Requires a member domain to be registered for the brand.



## OpenAPI

````yaml /openapi/public-openapi.json get /v1/account/brands/{brand_id}/domains/member/browser-origins
openapi: 3.1.0
info:
  title: Purple API
  version: 0.0.0
servers:
  - url: https://api.dev.purplelabelmd.com
security: []
tags:
  - description: Sign a patient in and out and manage the browser session.
    name: Sessions & authentication
  - description: Run the server-driven intake questionnaire question by question.
    name: Intake
  - description: Address autocomplete for the intake flow.
    name: Addresses
  - description: Read the public status of a patient's enrollment.
    name: Enrollment
  - description: Track a client's onboarding progress.
    name: Onboarding
  - description: Read back the platform configuration stored for your brand.
    name: Brand configuration
  - description: Enable offerings for your brand and set their display copy.
    name: Offering configuration
  - description: Start and track payments for an order.
    name: Payments
  - description: Subscribe to platform events and manage delivery endpoints.
    name: Webhooks
paths:
  /v1/account/brands/{brand_id}/domains/member/browser-origins:
    parameters:
      - $ref: '#/components/parameters/AccountBrandIdPath'
    get:
      tags:
        - Brand configuration
      summary: Read the browser origins your storefront may read this brand from
      description: >-
        Returns the exact web origins (scheme + host + port) your brand's
        website may read its storefront prices and commerce readiness from,
        using your PUBLISHABLE key, from a browser. An origin that is not on
        this list gets no cross-origin permission, and the browser refuses the
        response. Requires a member domain to be registered for the brand.
      operationId: getAccountBrandBrowserOrigins
      parameters:
        - $ref: '#/components/parameters/BrandIdHeader'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    properties:
                      browser_origins:
                        description: >-
                          exact serialized origins, e.g.
                          https://shop.example.com
                        items:
                          type: string
                        type: array
                    required:
                      - browser_origins
                    type: object
                required:
                  - data
                type: object
          description: the brand's registered browser origins (may be empty)
        '401':
          $ref: '#/components/responses/EdgeUnauthorized'
        '404':
          $ref: '#/components/responses/EdgeNotFound'
      security:
        - apiKey: []
components:
  parameters:
    AccountBrandIdPath:
      description: >-
        the brand whose custom domains to view or manage (must match
        X-Brand-Id).
      in: path
      name: brand_id
      required: true
      schema:
        pattern: ^brd_[A-Za-z0-9][A-Za-z0-9_-]*$
        type: string
    BrandIdHeader:
      description: >-
        Opaque brand id (brd_...). Validated to belong to the resolved client
        (§2).
      in: header
      name: X-Brand-Id
      required: true
      schema:
        pattern: ^brd_[A-Za-z0-9][A-Za-z0-9_-]*$
        type: string
  responses:
    EdgeUnauthorized:
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/EdgeProblem'
      description: >-
        missing, unknown, or revoked API key - one opaque body (no
        enumeration/timing oracle, §1)
    EdgeNotFound:
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/EdgeProblem'
      description: >-
        brand not found for this tenant - identical for unknown and foreign
        brands (404, never 403; no cross-tenant existence leak, §2)
  schemas:
    EdgeProblem:
      description: RFC 7807 problem+json error body.
      properties:
        detail:
          type: string
        status:
          type: integer
        title:
          type: string
        type:
          format: uri-reference
          type: string
      required:
        - type
        - title
        - status
      type: object
  securitySchemes:
    apiKey:
      description: 'Per-client API key (M2M). Presented as `Authorization: Bearer <key>`.'
      scheme: bearer
      type: http

````