Paņem brīvdienu Entitlement API

The Entitlement API from Paņem brīvdienu — 1 operation(s) for entitlement.

GitHub OpenAPI

Operations 1

POST /api/v1/entitlement Estimate annual leave entitlement #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/panembrivdienu-lv:panembrivdienu-lv-entitlement-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

panembrivdienu-lv-entitlement-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Paņem brīvdienu Entitlement API
  version: '1'
  summary: Latvian public holidays, time-off planning and annual leave estimates.
  description: 'Calendars cover 2026 and 2027 and assume a Monday-to-Friday workweek. The API is open without a key: anonymous clients get 10 requests per second with a burst of 20. An API key (request one through the site''s contact form) raises that to 100 per second with a burst of 200. JSON request bodies are limited to 64 KiB.'
  contact:
    name: SIA Valksor
    url: https://panembrivdienu.lv/en#contact
  license:
    name: BSD-3-Clause
    identifier: BSD-3-Clause
servers:
- url: https://panembrivdienu.lv
security:
- {}
- apiKey: []
tags:
- name: Entitlement
paths:
  /api/v1/entitlement:
    post:
      operationId: estimateEntitlement
      summary: Estimate annual leave entitlement
      description: Estimates annual leave in calendar days excluding statutory holidays (Labor Law section 149). For a first-year employee the figure is an accrual estimate. For employees under 18 the statutory duration is one calendar month; the 30-day figure is only a nominal estimate.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EntitlementRequest'
            example:
              employment_start_date: '2026-01-01'
              year: 2027
              fte_percentage: 0.5
              annual_base: 28
      responses:
        '200':
          description: The entitlement estimate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntitlementResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/InvalidAPIKey'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '413':
          $ref: '#/components/responses/RequestTooLarge'
        '429':
          $ref: '#/components/responses/TooManyRequests'
      tags:
      - Entitlement
components:
  responses:
    MethodNotAllowed:
      description: The path exists but not for this method (METHOD_NOT_ALLOWED).
      headers:
        Allow:
          description: The methods the path accepts.
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InvalidAPIKey:
      description: An API key was sent but is not known (INVALID_API_KEY).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: Invalid parameters (VALIDATION_ERROR) or body (INVALID_JSON).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RequestTooLarge:
      description: The request body is over 64 KiB (REQUEST_TOO_LARGE).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TooManyRequests:
      description: The client's rate limit is used up (RATE_LIMIT_EXCEEDED).
      headers:
        Retry-After:
          description: Seconds until the next request is allowed.
          schema:
            type: integer
            minimum: 1
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              examples:
              - VALIDATION_ERROR
            message:
              type: string
            request_id:
              type: string
    EntitlementRequest:
      type: object
      required:
      - employment_start_date
      - year
      - fte_percentage
      - annual_base
      properties:
        employment_start_date:
          $ref: '#/components/schemas/Date'
        birth_date:
          $ref: '#/components/schemas/Date'
        year:
          type: integer
          minimum: 2020
          maximum: 2100
        fte_percentage:
          type: number
          minimum: 0.1
          maximum: 1
          description: Workload as a fraction of full time. Part-time work does not shorten the leave period.
        annual_base:
          type: integer
          minimum: 28
          maximum: 60
          description: Annual leave in calendar days; the statutory minimum is 28.
    EntitlementResponse:
      type: object
      required:
      - entitlement_days
      - unit
      - is_accrual_estimate
      - under_18_calendar_month
      - six_month_threshold_reached_by_year_end
      - is_under_18
      - base_used
      properties:
        entitlement_days:
          type: number
        unit:
          type: string
          const: calendar_days_excluding_holidays
        is_accrual_estimate:
          type: boolean
          description: Employment starts on or after January 1 of the requested year, so the figure is accrued.
        under_18_calendar_month:
          type: boolean
          description: The statutory duration is one calendar month, not the nominal figure.
        six_month_threshold_reached_by_year_end:
          type: boolean
          description: Six months of continuous work are reached by year end, after which the full annual leave may be requested.
        is_under_18:
          type: boolean
        base_used:
          type: integer
    Date:
      type: string
      format: date
      examples:
      - '2026-06-24'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Optional. Raises the rate limit; a supplied but unknown key returns 401.
externalDocs:
  description: API documentation
  url: https://panembrivdienu.lv/api-docs