KLOKIN Time entries API

The Time entries API from KLOKIN — 7 operation(s) for time entries.

GitHub OpenAPI

Operations 9

GET /time-entries List time entries #
POST /time-entries Create a manual time entry #
POST /time-entries/clock-in Clock in (employee portal) #
POST /time-entries/clock-out Clock out (employee portal) #
GET /time-entries/active Currently clocked-in employees #
GET /time-entries/export Export time entries to Excel #
POST /time-entries/admin-clock-out/{id} Clock out an employee on their behalf #
PUT /time-entries/{id} Edit a time entry #
DELETE /time-entries/{id} Delete a time entry #

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-time-entries-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-time-entries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Klokin Time entries 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: Time Entries
paths:
  /time-entries:
    get:
      tags:
      - Time Entries
      summary: List time entries
      parameters:
      - name: employeeId
        in: query
        schema:
          type: string
          format: uuid
      - name: storeId
        in: query
        schema:
          type: string
          format: uuid
      - name: startDate
        in: query
        schema:
          type: string
          format: date
      - name: endDate
        in: query
        schema:
          type: string
          format: date
      responses:
        '200':
          description: Time entries
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TimeEntry'
      operationId: getTimeEntries
      x-operation-id-source: derived
    post:
      tags:
      - Time Entries
      summary: Create a manual time entry
      description: Requires `time_entries.create` (manual admin entry).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - employeeId
              - storeId
              - clockIn
              properties:
                employeeId:
                  type: string
                  format: uuid
                storeId:
                  type: string
                  format: uuid
                clockIn:
                  type: string
                  format: date-time
                clockOut:
                  type: string
                  format: date-time
      responses:
        '201':
          description: Created entry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimeEntry'
      operationId: postTimeEntries
      x-operation-id-source: derived
  /time-entries/clock-in:
    post:
      tags:
      - Time Entries
      summary: Clock in (employee portal)
      description: Resolves the nearest store by GPS geofence.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - latitude
              - longitude
              properties:
                latitude:
                  type: number
                longitude:
                  type: number
      responses:
        '201':
          description: Clocked in
        '400':
          $ref: '#/components/responses/BadRequest'
      operationId: postTimeEntriesClockIn
      x-operation-id-source: derived
  /time-entries/clock-out:
    post:
      tags:
      - Time Entries
      summary: Clock out (employee portal)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - latitude
              - longitude
              properties:
                latitude:
                  type: number
                longitude:
                  type: number
      responses:
        '200':
          description: Clocked out; totalHours computed
      operationId: postTimeEntriesClockOut
      x-operation-id-source: derived
  /time-entries/active:
    get:
      tags:
      - Time Entries
      summary: Currently clocked-in employees
      responses:
        '200':
          description: Active sessions
      operationId: getTimeEntriesActive
      x-operation-id-source: derived
  /time-entries/export:
    get:
      tags:
      - Time Entries
      summary: Export time entries to Excel
      parameters:
      - name: employeeId
        in: query
        schema:
          type: string
          format: uuid
      - name: storeId
        in: query
        schema:
          type: string
          format: uuid
      - name: startDate
        in: query
        schema:
          type: string
          format: date
      - name: endDate
        in: query
        schema:
          type: string
          format: date
      responses:
        '200':
          description: XLSX file
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
      operationId: getTimeEntriesExport
      x-operation-id-source: derived
  /time-entries/admin-clock-out/{id}:
    post:
      tags:
      - Time Entries
      summary: Clock out an employee on their behalf
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '200':
          description: Clocked out
      operationId: postTimeEntriesAdminClockOutById
      x-operation-id-source: derived
  /time-entries/{id}:
    put:
      tags:
      - Time Entries
      summary: Edit a time entry
      description: Requires `time_entries.update`. totalHours is recomputed.
      parameters:
      - $ref: '#/components/parameters/IdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                clockIn:
                  type: string
                  format: date-time
                clockOut:
                  type: string
                  format: date-time
      responses:
        '200':
          description: Updated entry
      operationId: putTimeEntriesById
      x-operation-id-source: derived
    delete:
      tags:
      - Time Entries
      summary: Delete a time entry
      parameters:
      - $ref: '#/components/parameters/IdPath'
      responses:
        '200':
          description: Deleted
      operationId: deleteTimeEntriesById
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable message (Lithuanian)
        code:
          type: string
          description: Stable machine-readable code, present on plan/limit errors.
          enum:
          - PLAN_LIMIT_REACHED
          - PLAN_FEATURE_REQUIRED
        feature:
          type: string
        plan:
          $ref: '#/components/schemas/PlanId'
    TimeEntry:
      type: object
      properties:
        id:
          type: string
          format: uuid
        employeeId:
          type: string
          format: uuid
        employeeName:
          type: string
        storeId:
          type: string
          format: uuid
        storeName:
          type: string
        clockIn:
          type: string
          format: date-time
        clockOut:
          type:
          - string
          - 'null'
          format: date-time
        totalHours:
          type:
          - number
          - 'null'
    PlanId:
      type: string
      enum:
      - startas
      - verslas
      - pazenges
      - imone
  responses:
    BadRequest:
      description: Invalid input
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  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.