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

# Canonical AdCP get_products fan-out (progressive)



## OpenAPI

````yaml /openapi/buyer.yaml post /api/v2/buyer/products/query
openapi: 3.1.0
info:
  title: Semicola Exchange buyer API
  version: 2.0.0
  description: >-
    Buyer endpoints: advertisers, storefronts and connections, product
    discovery, campaigns, proposals, media buys, creatives and reporting. Every
    write accepts an Idempotency-Key header.
servers:
  - url: https://api.semicola.com
security:
  - bearerAuth: []
  - sessionCookie: []
tags:
  - name: Advertisers
  - name: Storefronts
  - name: Product Discovery
  - name: Campaigns
  - name: Media Buys
  - name: Creatives
  - name: Reporting
  - name: Event Sources
  - name: Webhooks
  - name: Tasks
  - name: Audit Logs
paths:
  /api/v2/buyer/products/query:
    post:
      tags:
        - Product Discovery
      summary: Canonical AdCP get_products fan-out (progressive)
      operationId: postBuyerProductsQuery
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
            minLength: 16
            maxLength: 255
            pattern: ^[A-Za-z0-9_.:-]+$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                buying_mode:
                  type: string
                  enum:
                    - brief
                    - wholesale
                    - refine
                brief:
                  type: string
                idempotency_key:
                  type: string
                  pattern: ^[A-Za-z0-9_.:-]{16,255}$
                context:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                ext:
                  type: object
                  properties:
                    semicola:
                      type: object
                      properties:
                        advertiser_id:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 9007199254740991
                        campaign_id:
                          type: string
                          minLength: 1
                        execution_id:
                          type: string
                          minLength: 1
                          maxLength: 128
                      additionalProperties: {}
                  additionalProperties: {}
              required:
                - buying_mode
              additionalProperties: {}
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - submitted
                      - working
                      - input-required
                      - completed
                      - canceled
                      - failed
                      - rejected
                      - auth-required
                      - unknown
                  products:
                    type: array
                    items:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties: {}
                  proposals:
                    type: array
                    items:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties: {}
                  incomplete:
                    type: array
                    items:
                      type: object
                      properties:
                        scope:
                          type: string
                          const: products
                        description:
                          type: string
                      required:
                        - scope
                        - description
                      additionalProperties: false
                  cache_scope:
                    type: string
                    const: account
                  context:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties: {}
                  ext:
                    type: object
                    properties:
                      semicola:
                        type: object
                        properties:
                          execution_id:
                            type: string
                          revision:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          results_complete:
                            type: boolean
                          provisional:
                            type: boolean
                          candidate_count:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          storefront_results:
                            type: array
                            items:
                              type: object
                              properties:
                                storefront_id:
                                  type: string
                                  pattern: ^[1-9]\d*$
                                storefront_name:
                                  type: string
                                status:
                                  type: string
                                  enum:
                                    - pending
                                    - completed
                                    - failed
                                    - incomplete
                                product_count:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                                response_time_ms:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                                error:
                                  type: string
                              required:
                                - storefront_id
                                - storefront_name
                                - status
                                - product_count
                              additionalProperties: false
                          pending_agents:
                            type: array
                            items:
                              type: object
                              properties:
                                agent_id:
                                  type: string
                                agent_name:
                                  type: string
                                storefronts:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      storefront_id:
                                        type: string
                                      storefront_name:
                                        type: string
                                    required:
                                      - storefront_id
                                      - storefront_name
                                    additionalProperties: false
                              required:
                                - agent_id
                                - agent_name
                                - storefronts
                              additionalProperties: false
                          poll_after_ms:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        required:
                          - execution_id
                          - revision
                          - results_complete
                          - provisional
                          - candidate_count
                          - storefront_results
                          - pending_agents
                        additionalProperties: false
                    required:
                      - semicola
                    additionalProperties: false
                required:
                  - status
                  - products
                  - cache_scope
                  - ext
                additionalProperties: {}
        default:
          description: >-
            Error envelope `{data: null, error: {code, message, field?,
            details?}}`.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or OAuth access token.
    sessionCookie:
      type: apiKey
      in: cookie
      name: sc_session

````