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

# List attribute definitions in schema



## OpenAPI

````yaml https://app.facetflux.com/api/openapi/v1.json get /api/v1/public/schemas/{id}/attributes
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}/attributes:
    get:
      tags:
        - Product Catalog
      summary: List attribute definitions in schema
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PimAttributeDefinitionPublicDto'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PimAttributeDefinitionPublicDto'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PimAttributeDefinitionPublicDto'
        '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:
    PimAttributeDefinitionPublicDto:
      required:
        - id
        - schemaId
        - code
      type: object
      properties:
        id:
          type: string
        schemaId:
          type: string
        traitId:
          type:
            - 'null'
            - string
        code:
          type: string
        labels:
          type: object
          additionalProperties:
            type: string
        descriptions:
          type: object
          additionalProperties:
            type: string
        dataType:
          $ref: '#/components/schemas/AttributeDataType'
        scope:
          $ref: '#/components/schemas/AttributeScope'
        role:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/AttributeRole'
        isRequired:
          type: boolean
        isTranslatable:
          type: boolean
        unit:
          type:
            - 'null'
            - string
        unitLabel:
          type: object
          additionalProperties:
            type: string
        imperialUnitCode:
          type:
            - 'null'
            - string
        imperialUnitLabel:
          type:
            - 'null'
            - string
        minLength:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        maxLength:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - 'null'
            - integer
            - string
          format: int32
        minValue:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - 'null'
            - number
            - string
          format: double
        maxValue:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          type:
            - 'null'
            - number
            - string
          format: double
        validationPattern:
          type:
            - 'null'
            - string
        hasAllowedValues:
          type: boolean
        allowedValueCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
        sortOrder:
          pattern: ^-?(?:0|[1-9]\d*)$
          type:
            - integer
            - string
          format: int32
    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
    AttributeDataType:
      type: integer
    AttributeScope:
      type: integer
    AttributeRole:
      type: integer
  securitySchemes:
    apiKey:
      type: http
      description: Your FacetFlux API key, minted under Settings → API keys.
      scheme: bearer

````