# Leave Dates API Documentation

This is the complete API documentation for connecting to the Leave Dates API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Leave Dates connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/leaveDates/actions/{actionSlug}/run
```

## Leave Dates actions

- POST `add-department` Add Department
- POST `add-employment` Add Employment
- POST `create-allowance-type` Create Allowance Type
- POST `create-leave-type` Create Leave Type
- DELETE `delete-allowance-type` Delete Allowance Type
- DELETE `delete-department` Delete Department
- DELETE `delete-employment` Delete Employment
- DELETE `delete-leave-type` Delete Leave Type
- GET `get-allowance-type` Get Allowance Type
- GET `get-employment` Get Employment
- GET `get-employment-report` Get Employment Report
- GET `list-allowance-types` List Allowance Types
- GET `list-companies` List Companies
- GET `list-countries` List Countries
- GET `list-departments` List Departments
- GET `list-employments` List Employments
- GET `list-leave-types` List Leave Types
- PUT `update-allowance-type` Update Allowance Type
- PUT `update-department` Update Department
- PUT `update-employment` Update Employment
- PUT `update-leave-type` Update Leave Type
