Leave Management API

A secure API for managing employee leave requests. Requires both JWT and API Key for authentication.

Get Started

Register or log in to get your API credentials.

Register


Login

API Usage Examples

Once you have your API Key and JWT Token, use them in requests:

Example: Create a Leave Request

curl -X POST http://localhost:4000/leaves \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason":"Vacation","startDate":"2025-12-01","endDate":"2025-12-10"}'

Swagger Docs

Explore all endpoints interactively: Open API Docs