Dokumentacja MGBI API
  1. Tworzenie raportów
Dokumentacja MGBI API
  • MGBI API
    • Wprowadzenie
    • Autoryzacja
    • Pojęcia
    • Modele danych
      • pl-krs-wp-record
      • pl-krs-rdf-record
      • pl-krz-wp-record
      • pl-wpv-record
      • pl-crbr-wp-record
      • pl-msig-record
      • pl-sudop-wpopb-record
      • pl-rdr-record
      • pl-mgbi-lu-record
    • Endpointy dla modeli danych
      • pl-krs-wp-record
        • Get Records
        • Get Record By Id
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
        • Get Model Info
      • pl-krs-rdf-record
        • Get Records
        • Get Record By Id
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
        • Get Type Enum Values
        • Get Model Info
      • pl-krz-wp-record
        • Get Records
        • Get Record By Id
        • Stream Records
        • Get Limits
        • Get Projections
        • Get Model Info
      • pl-wpv-record
        • Get Records
        • Get Record By Id
        • Stream Records
        • Get Limits
        • Get Projections
        • Get Model Info
      • pl-crbr-wp-record
        • Get Records
        • Get Record By Id
        • Stream Records
        • Get Limits
        • Get Projections
        • Get Model Info
      • pl-msig-record
        • Get Records
        • Get Record By Id
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
        • Get Model Info
      • pl-sudop-wpopb-record
        • Get Records
        • Get Record By Id
        • Stream Records
        • Get Limits
        • Get Projections
        • Get Model Info
      • pl-rdr-record
        • Get Records
        • Get Record By Id
        • Stream Records
        • Get Limits
        • Get Projections
        • Get Model Info
      • pl-mgbi-lu-record
        • Get Records
        • Get Record By Id
        • Stream Records
        • Get Limits
        • Get Projections
        • Get Category
        • Get Model Info
    • Zlecanie odświeżenia danych
      • Ogólne informacje
      • Create Refresh
      • Get Refresh
    • Tworzenie raportów
      • Ogólne informacje
      • Create Report
        POST
      • Get Report By Id
        GET
      • Get Reports
        GET
      • Download Report
        GET
      • Delete Report
        DELETE
  1. Tworzenie raportów

Get Reports

GET
/v1/reports
Pobiera rekordy z informacjami o raportach spełniające podane kryteria.
W przypadku sukcesu w odpowiedzi zwraca paginowaną listę rekordów posortowaną według daty i czasu utworzenia raportu.
Jeśli dany raport został zlecony w trybie odświeżenia danych (type = "refresh"), to identyfikator zlecenia znajduje się w odpowiedzi pod kluczem refresh_id w strukturze query.
W przypadku braku rekordów spełniających podane kryteria zwraca pustą listę.

Request

Query Params

Header Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.mgbi.pl/v1/reports?date_from=&model=&projection=&status=&per_page=&limit=&offset=&page=' \
--header 'Authorization;'

Responses

🟢200Get reports list for actual user
application/json
Lista rekordów
Body

Example
{
    "content": [],
    "creation_datetime": "2025-12-18T14:17:50.192383+01:00",
    "downloads": [
        {
            "download_datetime": "2025-12-18T14:17:50.192320+01:00"
        }
    ],
    "file_encoding": "utf-8",
    "file_format": "xml",
    "file_password": "mgbi2021",
    "finish_datetime": "2025-12-18T14:17:50.192391+01:00",
    "id": "6943fefee9d923274ac9ba93",
    "name": "example raport",
    "progress": 0,
    "projection": "default",
    "query": {
        "identifiers.pl_nip": "123456789",
        "model": "pl-krz-wp-record"
    },
    "records_count": 3,
    "status": "preparing"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
Modified at 2026-01-08 13:10:11
Previous
Get Report By Id
Next
Download Report
Built with