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

# Pobieranie wielu rekordów

> Wpisy z Monitora Sądowego i Gospodarczego dla jednej lub wielu firm. Parametr `q` można przekazać wielokrotnie (do 50 firm): KRS, NIP lub UUID. Wspiera filtry: typ sygnatury (A/B), korzeń działu, zakres dat oraz tryby pełny/lekki (`include_details`). Każdy zwrócony rekord = 1 jednostka puli **MSiG i KRZ**.



## OpenAPI

````yaml /openapi.json get /v1/msig/records
openapi: 3.1.0
info:
  title: krdata API
  description: >

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, biała lista VAT)

    w postaci jednego, spójnego API.


    Uwierzytelnianie odbywa się przez klucz API przekazywany w nagłówku
    `x-api-key`.

    Limity zapytań oraz dzienne pule (PDF, WPV, raporty) wynikają z wybranego
    abonamentu —

    szczegóły zwraca endpoint `GET /v1/usage/summary`.
  version: 0.1.0
servers:
  - url: https://api.krdata.pl
    description: Production
security: []
paths:
  /v1/msig/records:
    get:
      tags:
        - MSiG
      summary: Pobieranie wielu rekordów
      description: >-
        Wpisy z Monitora Sądowego i Gospodarczego dla jednej lub wielu firm.
        Parametr `q` można przekazać wielokrotnie (do 50 firm): KRS, NIP lub
        UUID. Wspiera filtry: typ sygnatury (A/B), korzeń działu, zakres dat
        oraz tryby pełny/lekki (`include_details`). Każdy zwrócony rekord = 1
        jednostka puli **MSiG i KRZ**.
      operationId: msig-records
      parameters:
        - name: q
          in: query
          required: true
          schema:
            type: array
            items:
              type: string
              minLength: 1
              maxLength: 64
            description: >-
              Company identifier or notice reference (auto-detected): KRS
              (10-digit '0…'), NIP (10-digit), UUID (resolved companies.id),
              notice id (integer), or KRS court signature (e.g. 'WR.IX
              NS-REJ.KRS/1410/25/813', with or without surrounding brackets).
            title: Q
          description: >-
            Company identifier or notice reference (auto-detected): KRS
            (10-digit '0…'), NIP (10-digit), UUID (resolved companies.id),
            notice id (integer), or KRS court signature (e.g. 'WR.IX
            NS-REJ.KRS/1410/25/813', with or without surrounding brackets).
        - name: signature_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^[AB]$
              - type: 'null'
            title: Signature Type
        - name: chapter_root
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 8
              - type: 'null'
            title: Chapter Root
        - name: from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: From
        - name: to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
            title: To
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 20
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: include_details
          in: query
          required: false
          schema:
            type: boolean
            default: true
            title: Include Details
        - name: append_first_entry
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Append First Entry
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/MsigRecordPage'
                  - $ref: '#/components/schemas/MsigListPage'
                title: Response Msig-Records
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    MsigRecordPage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/MsigNotice'
          type: array
          title: Items
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
        - items
        - limit
        - offset
        - has_more
      title: MsigRecordPage
    MsigListPage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/MsigListRow'
          type: array
          title: Items
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
        - items
        - limit
        - offset
        - has_more
      title: MsigListPage
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MsigNotice:
      properties:
        id:
          type: integer
          title: Id
        signature_type:
          type: string
          title: Signature Type
        monitor_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Monitor Number
        number_of_notice:
          anyOf:
            - type: string
            - type: 'null'
          title: Number Of Notice
        sequence_number:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sequence Number
        date_of_publication:
          type: string
          format: date
          title: Date Of Publication
        signature_of_case:
          anyOf:
            - type: string
            - type: 'null'
          title: Signature Of Case
        signature_krs:
          anyOf:
            - type: string
            - type: 'null'
          title: Signature Krs
        page:
          anyOf:
            - type: integer
            - type: 'null'
          title: Page
        chapter_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Chapter Name
        chapter_root:
          anyOf:
            - type: string
            - type: 'null'
          title: Chapter Root
        entity_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Entity Name
        krs:
          anyOf:
            - type: string
            - type: 'null'
          title: Krs
        nip:
          anyOf:
            - type: string
            - type: 'null'
          title: Nip
        company_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Company Id
        text_position:
          anyOf:
            - type: string
            - type: 'null'
          title: Text Position
        text_body:
          anyOf:
            - type: string
            - type: 'null'
          title: Text Body
        metadata:
          $ref: '#/components/schemas/Metadata'
      type: object
      required:
        - id
        - signature_type
        - date_of_publication
        - metadata
      title: MsigNotice
    MsigListRow:
      properties:
        id:
          type: integer
          title: Id
        date_of_publication:
          type: string
          format: date
          title: Date Of Publication
        signature_type:
          type: string
          title: Signature Type
        chapter_root:
          anyOf:
            - type: string
            - type: 'null'
          title: Chapter Root
        chapter_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Chapter Name
        monitor_number:
          anyOf:
            - type: string
            - type: 'null'
          title: Monitor Number
        entity_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Entity Name
        krs:
          anyOf:
            - type: string
            - type: 'null'
          title: Krs
        nip:
          anyOf:
            - type: string
            - type: 'null'
          title: Nip
        company_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Company Id
        signature_of_case:
          anyOf:
            - type: string
            - type: 'null'
          title: Signature Of Case
      type: object
      required:
        - id
        - date_of_publication
        - signature_type
      title: MsigListRow
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Metadata:
      properties:
        first_seen:
          type: string
          format: date-time
          title: First Seen
        last_updated:
          type: string
          format: date-time
          title: Last Updated
        source_updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Source Updated At
      type: object
      required:
        - first_seen
        - last_updated
      title: Metadata
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````