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

# Get Publisher Producer IDs

> Retrieve a paginated list of distinct producer IDs associated with a specific publisher. Use this endpoint instead of `/publisher/{publisher_id}/items` when you only need producer IDs and the publisher has a large number of items.

<Card title="Error Reference: Content Controls" icon="triangle-exclamation" href="/api-reference/general/errors#content-controls-data-engine">
  Common errors: invalid item or publisher IDs, missing producer IDs, item not found, insufficient permissions.
</Card>


## OpenAPI

````yaml get /engine/v2/publisher/{publisher_id}/producer-ids
openapi: 3.1.0
info:
  title: AI API
  description: |-
    Optimized for high-speed inference and scalability by Gloo AI

    [Swagger UI](./docs) | [ReDoc UI](./redoc)
  version: 1.0.0
servers:
  - url: https://platform.ai.gloo.com
security:
  - bearerAuth: []
tags:
  - name: Content Controls
  - name: Data Engine
  - name: Ingestion & Enrichment
  - name: answers
  - name: chat
  - name: completions
  - name: content
  - name: core
  - name: data
  - name: get-models
  - name: ingestion
  - name: sotc
paths:
  /engine/v2/publisher/{publisher_id}/producer-ids:
    get:
      tags:
        - Data Engine
        - Content Controls
      summary: Get Publisher Producer IDs
      description: >-
        Retrieve a paginated list of distinct producer IDs associated with a
        specific publisher. Use this endpoint instead of
        `/publisher/{publisher_id}/items` when you only need producer IDs and
        the publisher has a large number of items.
      operationId: >-
        get_producer_ids_from_publisher_engine_v2_publisher__publisher_id__producer_ids_get
      parameters:
        - name: publisher_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Publisher Id
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
            description: Page number (1-indexed).
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 5000
            default: 1000
            title: Page Size
            description: Number of producer IDs per page. Maximum 5000.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedProducerIds'
        '400':
          description: Bad Request - Invalid publisher ID format
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
              example:
                detail:
                  code: Invalid publisher ID format
                  message: Publisher ID must be a valid UUID format
                  publisher_id: not-a-uuid
        '403':
          description: Forbidden - Not authorized to access this publisher
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
              example:
                authorized: false
                detail: Not authorized to access this publisher
        '404':
          description: Organization not found for publisher
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
              example:
                authorized: false
                detail: Organization not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error - Failed to retrieve producer IDs
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
              example:
                detail:
                  code: Internal server error
                  message: Failed to retrieve producer IDs for publisher
                  publisher_id: 550e8400-e29b-41d4-a716-446655440000
      security:
        - HTTPBearer: []
components:
  schemas:
    PaginatedProducerIds:
      properties:
        producer_ids:
          items:
            type: string
          type: array
          title: Producer Ids
          description: List of distinct producer IDs for the current page.
        pagination:
          $ref: '#/components/schemas/PaginationInfo'
      type: object
      required:
        - producer_ids
        - pagination
      title: PaginatedProducerIds
      description: Paginated response containing distinct producer IDs for a publisher.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PaginationInfo:
      properties:
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - page_size
        - total
        - total_pages
      title: PaginationInfo
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form Bearer `<token>`, where
        `<token>` is your [auth token](/studio/manage-api-credentials).
    HTTPBearer:
      type: http
      scheme: bearer

````