Rotase Employees API

The employees API from Rotase — 2 operation(s) for employees.

GitHub OpenAPI

Operations 2

POST /api/v1/employees/validate Waliduj listę pracowników #
POST /api/v1/employees/monthly-targets Podgląd nominału miesiąca i automatycznych celów z etatu #

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/rotase-com:rotase-com-employees-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

rotase-com-employees-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Employee Schedule Planner Employees API
  version: 1.0.0
  description: 'Stateless scheduling API: projects are sent in requests and are not stored on the server. The separate feedback API sends explicit messages by SMTP and stores only anti-spam counters and keyed IP hashes. No accounts or database.'
servers:
- url: /
  description: Bieżący serwer
tags:
- name: Employees
paths:
  /api/v1/employees/validate:
    post:
      operationId: employees_validate
      tags:
      - Employees
      summary: Waliduj listę pracowników
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                employees:
                  type: array
                  items:
                    $ref: '#/components/schemas/Employee'
              required:
              - employees
            example:
              employees:
              - id: 06622c52-ab66-56f7-90da-ff0f55c95614
                firstName: Adam
                lastName: Przykładowy
                color: '#3366CC'
                active: true
              - id: 9f9dde3e-7639-5a77-bdaa-50ecabfa7373
                firstName: Bartek
                lastName: Przykładowy
                color: '#DC3912'
                active: true
              - id: 8c706d86-41ee-58c8-ab73-1c0b44decb43
                firstName: Celina
                lastName: Przykładowy
                color: '#FF9900'
                active: true
              - id: 81c41671-fce6-5353-ac1d-d08bcf880752
                firstName: Daniel
                lastName: Przykładowy
                color: '#109618'
                active: true
              - id: 2af12b97-8e48-56d2-9f47-11b8269fc27b
                firstName: Ewa
                lastName: Przykładowy
                color: '#990099'
                active: true
      responses:
        '200':
          description: Wynik operacji.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: object
                    properties:
                      valid:
                        type: boolean
                        description: Wartość logiczna.
                      employees:
                        type: array
                        items:
                          $ref: '#/components/schemas/Employee'
                required:
                - success
                - data
              example:
                success: true
                data:
                  valid: true
                  employees:
                  - id: 06622c52-ab66-56f7-90da-ff0f55c95614
                    firstName: Adam
                    lastName: Przykładowy
                    color: '#3366CC'
                    active: true
                  - id: 9f9dde3e-7639-5a77-bdaa-50ecabfa7373
                    firstName: Bartek
                    lastName: Przykładowy
                    color: '#DC3912'
                    active: true
                  - id: 8c706d86-41ee-58c8-ab73-1c0b44decb43
                    firstName: Celina
                    lastName: Przykładowy
                    color: '#FF9900'
                    active: true
                  - id: 81c41671-fce6-5353-ac1d-d08bcf880752
                    firstName: Daniel
                    lastName: Przykładowy
                    color: '#109618'
                    active: true
                  - id: 2af12b97-8e48-56d2-9f47-11b8269fc27b
                    firstName: Ewa
                    lastName: Przykładowy
                    color: '#990099'
                    active: true
        '400':
          description: Błędny JSON, Content-Type lub przekroczony limit żądania.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error:
                  code: BAD_REQUEST
                  message: Błędny JSON, Content-Type lub przekroczony limit żądania.
                  details: []
        '422':
          description: Niepoprawne dane wejściowe.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Niepoprawne dane wejściowe.
                  details: []
        '500':
          description: Błąd wewnętrzny bez stack trace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error:
                  code: INTERNAL_ERROR
                  message: Błąd wewnętrzny bez stack trace.
                  details: []
  /api/v1/employees/monthly-targets:
    post:
      operationId: previewEmployeeMonthlyTargets
      tags:
      - Employees
      summary: Podgląd nominału miesiąca i automatycznych celów z etatu
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                year:
                  type: integer
                  minimum: 2000
                  maximum: 2100
                month:
                  type: integer
                  minimum: 1
                  maximum: 12
                intervalMinutes:
                  type: integer
                  minimum: 1
                  maximum: 60
                  default: 30
                workTime:
                  $ref: '#/components/schemas/WorkTimeSettings'
                employees:
                  type: array
                  maxItems: 50
                  items:
                    $ref: '#/components/schemas/Employee'
              required:
              - year
              - month
            example:
              year: 2026
              month: 11
              intervalMinutes: 30
              workTime:
                calendar: PL
                mode: AUTO
              employees:
              - id: 06622c52-ab66-56f7-90da-ff0f55c95614
                firstName: Adam
                lastName: Przykładowy
                color: '#3366CC'
                active: true
                employmentFraction: 0.75
      responses:
        '200':
          description: Wynik operacji.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    $ref: '#/components/schemas/MonthlyTargetsPreview'
                required:
                - success
                - data
              example:
                success: true
                data:
                  year: 2026
                  month: 11
                  calendar: PL
                  mode: AUTO
                  region: null
                  weeklyMinutes: 2400
                  nominalMinutes: 9600
                  automaticNominalMinutes: 9600
                  weekdayCount: 21
                  holidays:
                  - date: '2026-11-01'
                    name: All Saints’ Day
                    id: allSaintsDay
                    reducesNominal: false
                  - date: '2026-11-11'
                    name: Independence Day
                    id: independenceDay
                    reducesNominal: true
                  targets:
                  - employeeId: 06622c52-ab66-56f7-90da-ff0f55c95614
                    employmentFraction: 0.75
                    targetMinutes: 7200
        '400':
          description: Błędny JSON, Content-Type lub przekroczony limit żądania.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error:
                  code: BAD_REQUEST
                  message: Błędny JSON, Content-Type lub przekroczony limit żądania.
                  details: []
        '422':
          description: Niepoprawne dane wejściowe.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Niepoprawne dane wejściowe.
                  details: []
        '500':
          description: Błąd wewnętrzny bez stack trace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error:
                  code: INTERNAL_ERROR
                  message: Błąd wewnętrzny bez stack trace.
                  details: []
      description: Podgląd bez zapisu projektu. Waliduje rok, miesiąc, etaty i konfigurację nominału; zwraca cel każdego pracownika zaokrąglony do interwału. Nie zmienia dostępności ani limitów.
components:
  schemas:
    Employee:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Stabilny identyfikator UUID.
        firstName:
          type: string
          description: Imię.
        lastName:
          type: string
          description: Nazwisko.
        color:
          type: string
          pattern: ^#[0-9a-fA-F]{6}$
          description: 'Kolor #RRGGBB.'
        active:
          type: boolean
          description: Wartość logiczna.
        reserveOnly:
          type: boolean
          default: false
          description: Osoba rezerwowa (np. właściciel). Generator najpierw szuka obsady bez rezerwy, potem dopuszcza ją w dostępnych godzinach. Miesięczne cele i minima nie wymuszają jej zmian; maksimum, dostępność, odpoczynek i inne limity nadal obowiązują. Ręczne blokady są zachowane.
        employmentFraction:
          type: number
          exclusiveMinimum: 0
          maximum: 1
          default: 1
          description: Wymiar etatu, np. 1 (pełny), 0.75 (¾), 0.5 (½). Brak pola w starszym projekcie zachowuje ręczne cele.
      required:
      - id
      - firstName
      - lastName
      - color
      - active
    Error:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          properties:
            code:
              type: string
              description: Kod błędu.
            message:
              type: string
              description: Opis błędu.
            details:
              type: array
              items:
                type: object
                additionalProperties: true
          required:
          - code
          - message
          - details
      required:
      - success
      - error
    WorkTimeSettings:
      type: object
      properties:
        calendar:
          type: string
          enum:
          - AD
          - AL
          - AM
          - AT
          - AZ
          - BA
          - BE
          - BG
          - CA
          - CUSTOM
          - CY
          - CZ
          - DE
          - DK
          - EE
          - ES
          - FI
          - FR
          - GB
          - GE
          - GR
          - HR
          - HU
          - IE
          - IS
          - IT
          - KZ
          - LT
          - LU
          - LV
          - ME
          - MK
          - MT
          - NL
          - 'NO'
          - PL
          - PT
          - RO
          - RS
          - SE
          - SI
          - SK
          - UA
          - US
          - XK
        mode:
          type: string
          enum:
          - AUTO
          - MANUAL
          default: AUTO
        nominalMinutes:
          type: integer
          minimum: 0
          maximum: 44640
          description: Nominał pełnego etatu. W MANUAL wymagany; w AUTO obliczany na nowo dla roku/miesiąca.
        region:
          type:
          - string
          - 'null'
          description: Regional calendar code, e.g. DE-BY
        weeklyMinutes:
          type: integer
          minimum: 1
          maximum: 10080
          default: 2400
          description: Contractual full-time weekly minutes; planning workweek Monday–Friday.
      description: 'Polski kalendarz ustawowy: 40 h/tydzień, 8 h/dzień, święta poza niedzielą obniżają nominał, także soboty; Wigilia od 2025. CUSTOM wymaga MANUAL. Nominał nie zależy od otwarcia firmy ani dostępności.'
    MonthlyTargetsPreview:
      type: object
      properties:
        year:
          type: integer
        month:
          type: integer
        calendar:
          type: string
        mode:
          type: string
        nominalMinutes:
          type: integer
        automaticNominalMinutes:
          type:
          - integer
          - 'null'
        weekdayCount:
          type: integer
        holidays:
          type: array
          items:
            type: object
            properties:
              date:
                type: string
                format: date
              reducesNominal:
                type: boolean
              provisional:
                type: boolean
                description: True for a planning forecast that requires confirmation against an official calendar.
        targets:
          type: array
          items:
            type: object
            properties:
              employeeId:
                type: string
                format: uuid
              employmentFraction:
                type: number
              targetMinutes:
                type: integer