API Reference

Seamlessly integrate Zenchronity into your workflow. Secure, fast, and built for developers.

$https://api.zenchronity.com/api/public-api
System Operational

Getting Started

Base URL:

https://api.zenchronity.com/api/public-api

Auth header:

Authorization: Bearer YOUR_API_KEY

Harness the Power of AISmart Docs

Building complex automation logic or custom middleware? Simply paste this documentation URL into ChatGPT, Claude, or Gemini.Our metadata-rich structure allows AI models to instantly architect precise, production-ready scripts tailored specifically to your tech stack.

Security Tips

  • Never expose API keys in client-side code
  • Use environment variables for storage
  • Rotate keys periodically
GET

Health Check

$https://api.zenchronity.com/api/public-api/health

Verify API key validity and connection status. Returns your organization code and access level.

GET

List Users

$https://api.zenchronity.com/api/public-api/users

Get a paginated list of all users. Includes profile info, department, team, and manager.

Parameters

NameTypeDescription
pageintegerPage number (default: 1)
limitintegerItems per page (max: 100)
statusstringFilter: active, inactive, pending
departmentIduuidFilter by department
teamIduuidFilter by team
GET

Get User

$https://api.zenchronity.com/api/public-api/users/:id

Get detailed information for a specific user by UUID.

Parameters

NameTypeDescription
idREQuuidUser UUID
GET

List Leave Requests

$https://api.zenchronity.com/api/public-api/requests

Get paginated leave requests with filtering options.

Parameters

NameTypeDescription
pageintegerPage number
limitintegerItems per page (max: 100)
statusstringpending, approved, rejected, cancelled
userIduuidFilter by user
fromdateStart date (YYYY-MM-DD)
todateEnd date (YYYY-MM-DD)
GET

Get Request

$https://api.zenchronity.com/api/public-api/requests/:id

Get detailed information for a specific leave request.

Parameters

NameTypeDescription
idREQuuidRequest UUID
GET

List Leave Types

$https://api.zenchronity.com/api/public-api/leave-types

Get all active leave types with quota settings.

GET

List Departments

$https://api.zenchronity.com/api/public-api/departments

Get all departments with hierarchy information.

GET

List Teams

$https://api.zenchronity.com/api/public-api/teams

Get all teams with department associations.

GET

Audit Logs

$https://api.zenchronity.com/api/public-api/audit-logs

Get paginated audit logs with all security and business events. Includes login, leave requests, approvals, and security events.

Parameters

NameTypeDescription
pageintegerPage number (default: 1)
limitintegerItems per page (max: 100, default: 50)
fromdateStart date (ISO format: YYYY-MM-DD)
todateEnd date (ISO format: YYYY-MM-DD)
searchstringSearch in message and action

Error Handling

HTTP status codes and responses

400
Bad Request
Invalid parameters
401
Unauthorized
Invalid API key
403
Forbidden
Insufficient permissions
404
Not Found
Resource not found
429
Too Many Requests
Rate limit exceeded
500
Server Error
Internal error