KLOKIN Planning API

The Planning API from KLOKIN — 2 operation(s) for planning.

GitHub OpenAPI

Operations 4

GET /planning/employees/{employeeId}/children The employee's children and the rights that follow from their age #
POST /planning/employees/{employeeId}/children Add a child (requires protected_status.manage) #
PUT /planning/children/{id} Change a child's record (requires protected_status.manage) #
DELETE /planning/children/{id} Remove a child's record (requires protected_status.manage) #

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/klokin-io:klokin-io-planning-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

klokin-io-planning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Klokin Planning API
  version: 1.0.0
  description: 'REST API for the Klokin employee time-tracking platform.


    ## Authentication

    Most endpoints accept a Bearer token in the `Authorization` header — either

    a JWT obtained from `POST /v1/auth/login`, or an organization API key

    (`klkn_…`) created on the "API raktai" admin page. API keys carry an

    explicit permission list; JWT users get their role''s permissions.


    ## Organization context

    Multi-tenant requests resolve the organization from the `X-Organization`

    header (organization domain). Super-admin JWTs may operate across

    organizations; everyone else is scoped to their own.


    ## Errors

    Errors return `{ "error": "" }` (messages are in Lithuanian) and,

    where applicable, a stable machine-readable `code` such as

    `PLAN_LIMIT_REACHED`, `PLAN_FEATURE_REQUIRED` or `RATE_LIMIT_EXCEEDED`.


    ## Rate limiting

    API-key requests are rate limited per minute by the organization''s plan:

    STARTAS 30, VERSLAS 60, PAŽENGĘS 300, ĮMONĖ unlimited. Every response

    carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`

    (seconds until the window resets). Exceeding the limit returns `429` with a

    `Retry-After` header and `code: RATE_LIMIT_EXCEEDED`. The admin dashboard

    (JWT) is not subject to these limits.


    ## Versioning

    The API is versioned in the path (`/v1`). Backwards-incompatible changes

    ship under a new version; additive changes may appear within `/v1`.'
servers:
- url: /v1
security:
- bearerAuth: []
tags:
- name: Planning
paths:
  /planning/employees/{employeeId}/children:
    get:
      tags:
      - Planning
      summary: The employee's children and the rights that follow from their age
      description: 'Requires `protected_status.read`. Rights: extra rest days (DK 138 str. 3 d.), first school day (str. 4 d.), extended leave (str. 1 d.), leave queue group (DK 128 str. 4 d.), remote work (DK 52 str. 2 d.).'
      parameters:
      - name: employeeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: '{ children[], rights, needsReview }'
      operationId: getPlanningEmployeesByEmployeeIdChildren
      x-operation-id-source: derived
    post:
      tags:
      - Planning
      summary: Add a child (requires protected_status.manage)
      parameters:
      - name: employeeId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - birthDate
              properties:
                birthDate:
                  type: string
                  format: date
                disabled:
                  type: boolean
                raisedAlone:
                  type: boolean
                inEducation:
                  type: boolean
      responses:
        '201':
          description: Created
      operationId: postPlanningEmployeesByEmployeeIdChildren
      x-operation-id-source: derived
  /planning/children/{id}:
    put:
      tags:
      - Planning
      summary: Change a child's record (requires protected_status.manage)
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '200':
          description: Updated
      operationId: putPlanningChildrenById
      x-operation-id-source: derived
    delete:
      tags:
      - Planning
      summary: Remove a child's record (requires protected_status.manage)
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '200':
          description: Removed
      operationId: deletePlanningChildrenById
      x-operation-id-source: derived
components:
  parameters:
    IdPath:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Admin JWT from POST /v1/auth/login, or a `klkn_…` API key.