Leapsome absences API

The absences API from Leapsome — 1 operation(s) for absences.

Operations 1

GET /absences List absences #

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/leapsome-absences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

leapsome-absences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.1
  title: Leapsome Absences API
  contact:
    name: Support
    url: https://leapsome.zendesk.com
  description: The Content API enables you to export some raw data from Leapsome for usage within your own systems and beyond what the Leapsome application offers natively. Usage is restricted to a maximum of 20 requests per second when making requests in parallel. If you exceed this limit, you will receive a 429 status code.
servers:
- url: https://api.leapsome.com/v1
tags:
- name: absences
paths:
  /absences:
    get:
      summary: List absences
      description: "Get a paginated list of absences in your Leapsome instance. You can filter by date range, \nstatus, and user. Requires admin permissions for absence management.\n"
      operationId: listAbsences
      security:
      - bearerAuth: []
      tags:
      - absences
      parameters:
      - name: absenceStartFrom
        in: query
        required: false
        description: Filter absences that start on or after this date
        schema:
          type: string
          format: date-time
        example: '2024-01-01T00:00:00.000Z'
      - name: absenceStartUntil
        in: query
        required: false
        description: Filter absences that start on or before this date
        schema:
          type: string
          format: date-time
        example: '2024-12-31T23:59:59.999Z'
      - name: status
        in: query
        required: false
        description: Filter by absence status
        schema:
          type: string
          enum:
          - active
          - removed
          - pendingRemoval
      - name: userId
        in: query
        required: false
        description: Filter absences for a specific user
        schema:
          type: string
          pattern: ^[0-9a-f]{24}$
          example: 58d55e3ffdc2eb20547edd0a
      - name: page
        in: query
        required: false
        description: Page number for pagination (starts at 1)
        schema:
          type: integer
          minimum: 1
          maximum: 1000
          default: 1
      - name: pageSize
        in: query
        required: false
        description: Number of results per page
        schema:
          type: integer
          minimum: 1
          maximum: 1000
          default: 100
      responses:
        '200':
          description: A list of absences
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Absence'
              examples:
                example-1:
                  value:
                  - _id: 66a1b2c3d4e5f6789012345a
                    createdAt: '2024-01-15T08:30:00.000Z'
                    updatedAt: '2024-01-15T08:30:00.000Z'
                    userId: 58d55e3ffdc2eb20547edd0a
                    start: '2024-02-01T00:00:00.000Z'
                    end: '2024-02-05T23:59:59.999Z'
                    absenceType: paidVacation
                    activityType: nonWorkingPaid
                    status: active
                    timeUnit: days
                    actualAbsenceDuration: 5
                  - _id: 66a1b2c3d4e5f6789012345b
                    createdAt: '2024-01-20T09:15:00.000Z'
                    updatedAt: '2024-01-20T09:15:00.000Z'
                    userId: 58d55e3ffdc2eb20547edd0b
                    start: '2024-03-10T00:00:00.000Z'
                    end: '2024-03-12T23:59:59.999Z'
                    absenceType: sickLeave
                    activityType: nonWorkingPaid
                    status: active
                    timeUnit: days
                    actualAbsenceDuration: 3
        '401':
          description: Authorization failed. Token is missing or invalid.
        '403':
          description: Insufficient permissions. Admin access to absence management is required.
components:
  schemas:
    Absence:
      type: object
      required:
      - _id
      - createdAt
      - updatedAt
      - userId
      - start
      - end
      - absenceType
      - activityType
      - status
      - timeUnit
      properties:
        _id:
          type: string
          pattern: ^[0-9a-f]{24}$
          example: 66a1b2c3d4e5f6789012345a
          description: Unique identifier for the absence
        createdAt:
          type: string
          format: date-time
          example: '2024-01-15T08:30:00.000Z'
          description: When the absence was created
        updatedAt:
          type: string
          format: date-time
          example: '2024-01-15T08:30:00.000Z'
          description: When the absence was last modified
        userId:
          type: string
          pattern: ^[0-9a-f]{24}$
          example: 58d55e3ffdc2eb20547edd0a
          description: ID of the user taking the absence
        start:
          type: string
          format: date-time
          example: '2024-02-01T00:00:00.000Z'
          description: Start date and time of the absence
        startDayTime:
          type: string
          example: 09:00
          description: Start time of the absence (HH:mm format)
        startDayDuration:
          type: string
          enum:
          - fullDay
          - halfDayMorning
          - halfDayAfternoon
          example: fullDay
          description: Duration type for the start day of the absence
        end:
          type: string
          format: date-time
          example: '2024-02-05T23:59:59.999Z'
          description: End date and time of the absence
        endDayTime:
          type: string
          example: '17:00'
          description: End time of the absence (HH:mm format)
        endDayDuration:
          type: string
          enum:
          - fullDay
          - halfDayMorning
          - halfDayAfternoon
          example: fullDay
          description: Duration type for the end day of the absence
        absenceType:
          type: string
          enum:
          - paidVacation
          - sickLeave
          - parentalLeave
          - unpaidVacation
          - familyCare
          - childCare
          - shortTermAllowance
          - quarantine
          - lockout
          - irrevocableExemption
          - voluntaryMilitaryService
          - unlawfulStrike
          - lawfulStrike
          - unexcusedAbsence
          - remoteWork
          - otherPaidLeave
          - educationalLeave
          - gardenLeave
          - longtermSickLeave
          example: paidVacation
          description: Type of absence being taken
        activityType:
          type: string
          enum:
          - nonWorkingPaid
          - nonWorkingUnpaid
          - working
          - nonWorkingPartiallyPaid
          example: nonWorkingPaid
          description: Activity type classification of the absence
        status:
          type: string
          enum:
          - active
          - removed
          - pendingRemoval
          example: active
          description: Current status of the absence
        timeUnit:
          type: string
          enum:
          - days
          - hours
          example: days
          description: Unit of time used for measuring the absence duration
        comment:
          type: string
          example: Medical appointment
          description: Optional comment or note about the absence
        actualAbsenceDuration:
          type:
          - number
          - 'null'
          example: 5
          description: Actual duration of the absence in the specified time unit
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT