API Documentation
Complete REST API documentation for IceHrm.
Overview
IceHrm provides a REST API that allows you to integrate with external systems, build custom applications, and automate HR processes. The API exposes endpoints for managing employees, attendance, leave, and documents.
Base URL
- Open Source/Pro:
http://your-icehrm-url.com/app/api - Cloud:
https://icehrm.com/api/[instance-name]
Authentication
IceHrm uses Bearer Token authentication. Include the token in the Authorization header with every request.
Authorization: Bearer [your-token]
Getting Your API Token
- Log in to IceHrm
- Navigate to Personal Information -> Basic Information
- Click the Api Access tab
- Copy your API token
Request Format
- All requests should use
Content-Type: application/json - Request bodies should be valid JSON
Response Format
All responses return JSON with the following structure:
Success Response:
{
"status": "SUCCESS",
"data": { ... }
}
Error Response:
{
"status": "ERROR",
"message": "Error description"
}
HTTP Status Codes
- 200 OK: Successful request
- 201 Created: Resource created successfully
- 204 No Content: Successful with no response body
- 400 Bad Request: Missing or invalid parameters
- 401 Unauthorized: Authentication failed
- 403 Forbidden: Access denied
- 404 Not Found: Resource not found
- 405 Method Not Allowed: HTTP method not supported
Available Endpoints
📄️ Employees API
Endpoints for managing employee records in IceHrm.
📄️ Attendance API
Endpoints for managing attendance records and punch in/out functionality.
📄️ Leave API
Endpoints for managing leave requests.
📄️ Documents API
Endpoints for managing employee documents.