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

# Search the distribution requests a brokerage firm has made

> Filters are sent as query parameters. Kept a POST for symmetry with the other searches.



## OpenAPI

````yaml /openapi.json post /brokerage-firms/{brokerageFirmId}/distribution-requests/search
openapi: 3.0.0
info:
  title: Korint API
  description: >-
    Quoting, policy issuance, billing, claims, documents and compliance for
    insurance distribution.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.korint.io
    description: Production
  - url: https://api.sandbox.korint.io
    description: Sandbox
security:
  - oauth2: []
  - bearerAuth: []
tags: []
paths:
  /brokerage-firms/{brokerageFirmId}/distribution-requests/search:
    post:
      tags:
        - distribution-requests
      summary: Search the distribution requests a brokerage firm has made
      description: >-
        Filters are sent as query parameters. Kept a POST for symmetry with the
        other searches.
      operationId: >-
        DistributionRequestsReadsController_searchBrokerageFirmDistributionRequests
      parameters:
        - name: tenant
          in: header
          required: true
          description: Your tenant identifier. Requests without it are rejected.
          schema:
            type: string
        - name: brokerageFirmId
          required: true
          in: path
          schema:
            pattern: >-
              ^brokerage_firm(_test)?_[346789ABCDEFGHJKLMNPQRTUVWXYabcdefghijkmnpqrtwxyz]{21}$
            type: string
        - name: statuses
          required: false
          in: query
          description: Status of the distribution request
          schema:
            type: array
            items:
              type: string
              enum:
                - PENDING
                - WAITING_FOR_SIGNATURE
                - APPROVED
                - DENIED
                - REVOKED
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ListBrokerageFirmDistributionRequestsOutput
components:
  schemas:
    ListBrokerageFirmDistributionRequestsOutput:
      type: object
      properties:
        data:
          description: the list of items in the page
          type: array
          items:
            $ref: '#/components/schemas/DistributionRequestDto'
        pageInfo:
          description: the page info
          allOf:
            - $ref: '#/components/schemas/ResponsePageInfo'
        totalCount:
          type: number
          description: the total number of items
        currentPage:
          type: number
          description: the current page
        totalPages:
          type: number
          description: the total number of pages
      required:
        - data
        - pageInfo
        - totalCount
        - currentPage
        - totalPages
    DistributionRequestDto:
      type: object
      properties:
        id:
          pattern: >-
            ^distribution_request(_test)?_[346789ABCDEFGHJKLMNPQRTUVWXYabcdefghijkmnpqrtwxyz]{21}$
          type: string
          description: Unique identifier for the distribution request
        type:
          type: string
          description: entity type
        status:
          description: Status of the distribution request
          allOf:
            - $ref: '#/components/schemas/DistributionRequestStatus'
        brokerageFirmId:
          pattern: >-
            ^brokerage_firm(_test)?_[346789ABCDEFGHJKLMNPQRTUVWXYabcdefghijkmnpqrtwxyz]{21}$
          type: string
          description: Brokerage firm the request is attached to
        productId:
          type: string
          description: Product the request is for
        createdAt:
          format: date-time
          type: string
          description: Date the request was created
      required:
        - id
        - type
        - status
        - brokerageFirmId
        - productId
        - createdAt
    ResponsePageInfo:
      type: object
      properties:
        first:
          type: boolean
          description: whether this is the first page
        last:
          type: boolean
          description: whether this is the last page
    DistributionRequestStatus:
      type: string
      enum:
        - PENDING
        - WAITING_FOR_SIGNATURE
        - APPROVED
        - DENIED
        - REVOKED
      description: Status of the distribution request
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://korint-tenant.auth.eu-west-3.amazoncognito.com/oauth2/token
          scopes:
            korint.io/account: Read account information
            korint.io/analytics: Access analytics endpoints
            korint.io/assets: Access asset endpoints
            korint.io/billing: Access billing endpoints
            korint.io/branches: Access branch endpoints
            korint.io/broker: Access broker endpoints
            korint.io/claims: Access claim endpoints
            korint.io/comments: Access comment endpoints
            korint.io/customers: Access customer endpoints
            korint.io/derogations: Access derogation endpoints
            korint.io/documents: Access document endpoints
            korint.io/external: Access external lookup endpoints
            korint.io/external-claims: Declare claims from an external system
            korint.io/internal-notes: Access internal note endpoints
            korint.io/invitations: Access invitation endpoints
            korint.io/payments: Access payment endpoints
            korint.io/permissions: Access permission management endpoints
            korint.io/policies: Access policy endpoints
            korint.io/quotes: Access quote endpoints
            korint.io/reportings: Access reporting endpoints
            korint.io/signature: Access signature endpoints
      description: >-
        Machine-to-machine clients use the OAuth 2.0 client credentials grant.
        Each tenant has its own authorization server: in the token URL below,
        replace `tenant` with your tenant identifier.
    bearerAuth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: An access token obtained from your tenant authorization server.

````