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

# Czy podmiot jest monitorowany

> Pomocniczy endpoint UI: przyjmuje dowolny zestaw identyfikatorów jednego podmiotu (krs, nip, pesel, subject_id) i zwraca dopasowany monitor użytkownika albo null. Nie zużywa jednostek.



## OpenAPI

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

    krdata udostępnia dane z polskich rejestrów gospodarczych (KRS, CRBR, KRZ,
    MSiG, BZP, RDF, KNF, UOKiK, SUDOP,

    biała lista VAT) w postaci jednego, spójnego API.


    Uwierzytelnianie odbywa się przez klucz API w nagłówku `x-api-key`. Płatne
    endpointy zużywają jednostki

    z jednej puli; koszt każdego z nich podany jest w jego opisie, a zasady w
    sekcji Rozliczanie.

    Bieżący stan puli zwraca `GET /v1/usage/api`.
  version: 0.1.0
servers:
  - url: https://api.krdata.pl
    description: Production
security: []
paths:
  /v1/monitors/lookup:
    get:
      tags:
        - Monitors
      summary: Czy podmiot jest monitorowany
      description: >-
        Pomocniczy endpoint UI: przyjmuje dowolny zestaw identyfikatorów jednego
        podmiotu (krs, nip, pesel, subject_id) i zwraca dopasowany monitor
        użytkownika albo null. Nie zużywa jednostek.
      operationId: monitors-lookup
      parameters:
        - name: krs
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Krs
        - name: nip
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Nip
        - name: pesel
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Pesel
        - name: subject_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Subject Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorLookupResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    MonitorLookupResult:
      properties:
        monitor:
          anyOf:
            - $ref: '#/components/schemas/MonitorOut'
            - type: 'null'
      type: object
      title: MonitorLookupResult
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MonitorOut:
      properties:
        id:
          type: string
          title: Id
        identifier_type:
          type: string
          title: Identifier Type
        identifier_value:
          type: string
          title: Identifier Value
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        label:
          anyOf:
            - type: string
            - type: 'null'
          title: Label
        tags:
          items:
            type: string
          type: array
          title: Tags
        created_at:
          type: string
          format: date-time
          title: Created At
        last_event_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Event At
        event_count:
          type: integer
          title: Event Count
          default: 0
      type: object
      required:
        - id
        - identifier_type
        - identifier_value
        - created_at
      title: MonitorOut
    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

````