Skip to main content
GET
/
api
/
sablony
List report templates
curl --request GET \
  --url https://www.registeruz.sk/cruz-public/api/sablony
{
  "sablony": [
    {
      "id": 123,
      "nazov": "<string>",
      "nariadenieMF": "<string>",
      "platneOd": "<string>",
      "platneDo": "<string>",
      "tabulky": [
        {
          "nazov": {
            "sk": "<string>",
            "en": "<string>"
          },
          "hlavicka": "<array>",
          "riadky": "<array>"
        }
      ]
    }
  ]
}
Returns every template in the register in a single call, with no filters or pagination. Templates define the row structure of financial report table data and are referenced via idSablony on each financial report.
Templates are never deleted, so this list only ever grows. Fetch it once and cache it.

Common patterns

Since templates are stable and never deleted, a common pattern is to fetch them all upfront and index by id. This way you can resolve row labels for any financial report without making a separate request each time.
Build a local template lookup
// 1. Fetch all templates
const { sablony } = await fetch(`/api/sablony`).then(r => r.json());

// 2. Index by template ID for fast lookups
const templateMap = Object.fromEntries(sablony.map(t => [t.id, t]));

// 3. Resolve a template from a financial report
const template = templateMap[report.idSablony];

Response

200 - application/json

All templates returned successfully.

sablony
object[]

All report templates.