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

# Get schema by id



## OpenAPI

````yaml https://app.facetflux.com/api/openapi/v1.json get /api/v1/public/schemas/{id}
openapi: 3.1.1
info:
  title: FacetFlux API
  description: >-
    Product catalog, diagnostics, AI enrichment, and exports for your FacetFlux
    tenant. Authenticate by sending your API key as a Bearer token:
    `Authorization: Bearer <your-api-key>`. All responses are scoped to the
    tenant the API key belongs to. Read-only keys can only perform GET requests;
    mint a 'Read & write' key for mutating calls. An MCP server with the full
    tool surface is available at `https://app.facetflux.com/api/mcp` (same
    Bearer auth).
  contact:
    name: FacetFlux Support
    url: https://facetflux.com
    email: support@facetflux.com
  version: v1
servers:
  - url: https://app.facetflux.com
    description: Production
security:
  - apiKey: []
tags:
  - name: Diagnostics
  - name: Product Catalog
  - name: Exports
  - name: Enrichment
paths:
  /api/v1/public/schemas/{id}:
    get:
      tags:
        - Product Catalog
      summary: Get schema by id
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/PimSchemaPublicDto'
            application/json:
              schema:
                $ref: '#/components/schemas/PimSchemaPublicDto'
            text/json:
              schema:
                $ref: '#/components/schemas/PimSchemaPublicDto'
        '401':
          description: Unauthorized
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    PimSchemaPublicDto:
      required:
        - id
        - name
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        labels:
          type: object
          additionalProperties:
            type: string
        descriptions:
          type: object
          additionalProperties:
            type: string
        kind:
          $ref: '#/components/schemas/SchemaKind'
        standardCode:
          type:
            - 'null'
            - string
        standardVersion:
          type:
            - 'null'
            - string
        productTypeCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        traitCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        categoryCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        attributeDefinitionCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    SchemaKind:
      type: integer
  securitySchemes:
    apiKey:
      type: http
      description: Your FacetFlux API key, minted under Settings → API keys.
      scheme: bearer

````