Dokumentacja MGBI API
  1. pl-krs-rdf-record
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
    • 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
        • Get Records
          GET
        • Stream Records
          GET
        • Download File By Id
          GET
        • Get Limits
          GET
        • Get Projections
          GET
      • 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
    • Zlecanie odświeżenia danych
      • Ogólne informacje
      • Create Refresh
      • Get Refresh
  1. pl-krs-rdf-record

Download File By Id

GET
/v1/models/pl-krs-rdf-record/records/{id}/files/{file_key}
Pobiera zawartość pojedynczego pliku dokumentu z Repozytorium Dokumentów Finansowych Krajowego Rejestru Sądowego (KRS RDF).
W przypadku sukcesu w nagłówkach HTTP zwraca metadane pliku, a w odpowiedzi jego zawartość.
W przypadku, gdy plik nie istnieje, zwraca błąd 404.
Poprawne wywołanie endpointu zwiększa liczniki:
api i api_files o 1
files o 1
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.mgbi.pl/v1/models/pl-krs-rdf-record/records//files/main_document' \
--header 'Authorization;'
Response Response Example
200 - Example 1
"string"

Request

Path Params
id
string 
required
Identyfikator rekordu
file_key
string 
required
Klucz dokumentu ze słownika files w rekordzie
Example:
main_document
Header Params
Authorization
string 
optional
Klucz autoryzacji
Example:
aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee

Responses

🟢200Success
*/*
Zawartość pliku
Body
string 
optional
🟠404Not Found
🟠400Bad request
🟠401Unauthorized
🟠403Forbidden
🟠422Parameter Error
🟠429429
Modified at 2025-07-18 17:40:25
Previous
Stream Records
Next
Get Limits
Built with