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-mgbi-lu-record
    • Endpointy dla modeli danych
      • pl-krs-wp-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
      • pl-krs-rdf-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
        • Get Type Enum Values
      • pl-krz-wp-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Get Limits
        • Get Projections
      • pl-wpv-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Get Limits
        • Get Projections
      • pl-crbr-wp-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Get Limits
        • Get Projections
      • pl-msig-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Download File By Id
        • Get Limits
        • Get Projections
      • pl-mgbi-lu-record
        • Get Record By Id
        • Get Records
        • Stream Records
        • Get Limits
        • Get Projections
        • Get Category
    • 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 Report By Id

GET
/v1/reports/{report_id}
Pobiera pojedynczy rekord z informacjami o raporcie.
W przypadku sukcesu w odpowiedzi zwraca parametry raportu.
W przypadku, gdy raport nie istnieje, zwraca błąd 404.

Request

Path 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/'

Responses

🟢200Get a single report
application/json
Pojedynczy rekord
Body

Example
{
    "content": [],
    "creation_datetime": "2025-09-11T12:47:28.887705+02:00",
    "downloads": [
        {
            "download_datetime": "2025-09-11T12:47:28.887654+02:00"
        }
    ],
    "file_encoding": "utf-8",
    "file_format": "xml",
    "file_password": "mgbi2021",
    "id": "68c2a8c05d9b51e8c479b1d2",
    "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
🟠404Not Found
🟠410Gone
Modified at 2025-09-11 12:02:24
Previous
Create Report
Next
Get Reports
Built with