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

# Walidacja i dopasowanie identyfikatorów

> Pomocniczy endpoint UI: waliduje listę identyfikatorów (KRS, NIP, PESEL, ID podmiotu) i zwraca dopasowane nazwy podmiotów z bazy, bez tworzenia monitorów. Identyfikatory spoza bazy (np. NIP z CEIDG) wracają bez nazwy - można im nadać nazwę własną przy tworzeniu monitora. Nie liczy się do żadnej puli.



## OpenAPI

````yaml /openapi.json post /v1/monitors/resolve
openapi: 3.1.0
info:
  title: krdata API
  description: >

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, RDF, 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 pule (RDF, 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/monitors/resolve:
    post:
      tags:
        - Monitors
      summary: Walidacja i dopasowanie identyfikatorów
      description: >-
        Pomocniczy endpoint UI: waliduje listę identyfikatorów (KRS, NIP, PESEL,
        ID podmiotu) i zwraca dopasowane nazwy podmiotów z bazy, bez tworzenia
        monitorów. Identyfikatory spoza bazy (np. NIP z CEIDG) wracają bez nazwy
        - można im nadać nazwę własną przy tworzeniu monitora. Nie liczy się do
        żadnej puli.
      operationId: monitors-resolve
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitorResolveRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorResolveResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    MonitorResolveRequest:
      properties:
        items:
          items:
            $ref: '#/components/schemas/MonitorBulkItem'
          type: array
          maxItems: 1000
          minItems: 1
          title: Items
      type: object
      required:
        - items
      title: MonitorResolveRequest
    MonitorResolveResult:
      properties:
        items:
          items:
            $ref: '#/components/schemas/MonitorResolveItem'
          type: array
          title: Items
      type: object
      required:
        - items
      title: MonitorResolveResult
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MonitorBulkItem:
      properties:
        identifier_type:
          type: string
          title: Identifier Type
        identifier_value:
          type: string
          title: Identifier Value
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
      type: object
      required:
        - identifier_type
        - identifier_value
      title: MonitorBulkItem
    MonitorResolveItem:
      properties:
        identifier_type:
          type: string
          title: Identifier Type
        identifier_value:
          type: string
          title: Identifier Value
        valid:
          type: boolean
          title: Valid
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
      type: object
      required:
        - identifier_type
        - identifier_value
        - valid
      title: MonitorResolveItem
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````