> ## Documentation Index
> Fetch the complete documentation index at: https://slovakapi.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List legal forms

> Returns all legal form codes and labels.

You can use this endpoint to resolve the `pravnaForma` field from the response on an [Accounting unit](/ruz/api-reference/entity-details/get-accounting-unit) into a human-readable label.

<Info>The source code for this endpoint is the ŠÚSR codelist `0056/FORMA`.</Info>

***

## Common patterns

<AccordionGroup>
  <Accordion title="Resolve a legal form code">
    Fetch all legal forms and find the matching label for a `pravnaForma` code on an accounting unit.

    ```js Resolve a legal form code theme={null}
    // 1. Fetch all legal forms
    const { klasifikacie } = await fetch(`${BASE}/api/pravne-formy`).then(r => r.json());

    // 2. Resolve the legal form label for an accounting unit
    const form = klasifikacie.find(f => f.kod === unit.pravnaForma);

    // 3. Log the legal form label
    console.log(form?.nazov?.sk);
    ```
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml ruz/openapi.json GET /api/pravne-formy
openapi: 3.1.0
info:
  title: RÚZ API
  description: >-
    Public REST API for Slovakia's Register of Financial Statements (Register
    účtovných závierok). Exposes accounting units, financial statements,
    financial reports, and annual reports in JSON. Data is updated throughout
    the day as records are published.
  version: 2.5.0
  license:
    name: Creative Commons Zero (CC0)
    url: https://creativecommons.org/publicdomain/zero/1.0/
servers:
  - url: https://www.registeruz.sk/cruz-public
    description: Production
security: []
paths:
  /api/pravne-formy:
    get:
      summary: List legal forms
      description: >-
        Returns all legal form codes and labels from ŠÚSR codelist `0056/FORMA`.
        No parameters required.


        Use codes to resolve the `pravnaForma` field on accounting units.
      operationId: listLegalForms
      responses:
        '200':
          description: Legal forms returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationList'
components:
  schemas:
    ClassificationList:
      type: object
      properties:
        klasifikacie:
          type: array
          items:
            $ref: '#/components/schemas/ClassificationItem'
    ClassificationItem:
      type: object
      properties:
        kod:
          type: string
          description: Classification code.
        nazov:
          $ref: '#/components/schemas/LocalizedText'
    LocalizedText:
      type: object
      description: A text value with localized variants.
      properties:
        sk:
          type: string
          description: Slovak label.
        en:
          type: string
          description: English label.

````