context:readWorkspace contextPLETOX / DEVELOPERS
REST API documentation.
Build secure, company-scoped integrations with explicit permissions, strict validation, and auditable requests.
GETTING STARTED
Authenticate every request.
Generate an integration key in your Pletox console, store it in the connector’s secret manager, and send it as a bearer token. The key determines tenant, company, location, permissions, and rate limit.
curl --request GET "https://{tenant-domain}/api/integrations/v1/context" \
--header "Authorization: Bearer <API_KEY>" \
--header "X-Device-Name: Reporting Connector" \
--header "Accept: application/json"
Keep the key secret. Never place a real key in source code, documentation, screenshots, chat, or logs. Rotate it immediately if exposed.
Available permissions
Grant only the abilities required by the connector.
AI CONNECTORS
Give any AI the complete API context.
Copy this message into Codex, Claude, ChatGPT, or another AI assistant. The assistant can study this documentation and then guide your integration.
API RESOURCE
Workspace context
Resolve the tenant, companies, locations, and access scope available to the API key.
/context
Workspace, company, location, and API key context.
API RESOURCE
Employees
Search, retrieve, create, and update employee records inside the key’s assigned scope.
/employees
Paginated employee directory with supported filters.
/employees
Create an employee in the explicitly supplied company and location scope. company_id is required; employment_type defaults to employee.
Employee write payload
Send the required employee fields to POST /employees.
Unsupported and privileged fields are rejected.
{
"employee_id": "EMP-001",
"name": "Example Employee",
"email": "employee@example.com",
"phone": "+919876543210",
"gender": "male",
"date_of_joining": "2026-01-15",
"employment_type": "employee",
"employee_type": "contractor",
"contractor_start_date": "2026-01-15",
"contractor_end_date": "2026-12-31",
"company_id": 1,
"location_id": 10,
"designation_id": 25,
"department_ids": [4, 7]
}
/employees/options/departments?company_id={company_id}
Paginated departments available within the API key company and location scope.
/employees/options/designations
Paginated designation IDs and names available for employee writes.
/employees/options/types
Allowed employee type values and whether contractor dates are required.
/employees/{employee}
Details for one employee within the key scope.
/employees/{employee}
Update supported fields for an employee within the API key scope.
Employee update payload
Send only the fields that should change to PATCH /employees/{employee}.
Unsupported and privileged fields are rejected.
{
"employee_id": "EMP-001",
"name": "Updated Employee Name",
"email": "updated.employee@example.com",
"phone": "+919876543210",
"gender": "male",
"date_of_joining": "2026-01-15",
"employment_type": "employee",
"employee_type": "contractor",
"contractor_start_date": "2026-01-15",
"contractor_end_date": "2026-12-31",
"company_id": 1,
"location_id": 10,
"designation_id": 25,
"department_ids": [4, 7]
}
API RESOURCE
Attendance
Read daily summaries, monthly summaries, and attendance records for a date range.
/attendance/summary?date=YYYY-MM-DD
Daily presence, absence, late arrival, and worked-hour totals.
/attendance/monthly-summary?month=YYYY-MM
Paginated employee attendance days, late-arrival records, and worked hours for a month.
/attendance?date_from=YYYY-MM-DD&date_to=YYYY-MM-DD
Paginated attendance records for a date range.
API RESOURCE
Leave
Read leave totals, employee balances, and paginated leave requests.
/leaves/overview
Pending, approved, rejected, and total leave counts.
/leaves/balances
Employee leave balances by leave type.
/leaves
Paginated employee leave records.
API RESOURCE
Reports
Retrieve headcount and employee joining or exit movement summaries.
/reports/headcount
Active, exited, company, and location headcount.
/reports/joining-exit?date_from=YYYY-MM-DD&date_to=YYYY-MM-DD
Employee joining and exit movements for a date range.
API RESOURCE
Payroll
Retrieve privacy-protected aggregate payroll summaries for an authorized month.
/payroll/summary?month=YYYY-MM
Privacy-protected aggregate payroll summary.
RESPONSES
Errors and status codes.
List endpoints return pagination details. Preserve validation details returned with unsuccessful requests and back off when a rate limit is reached.
200Success
The request completed successfully.
201Created
The employee was created successfully.
401Unauthenticated
The key is missing, invalid, expired, or revoked.
403Forbidden
The key lacks permission or conflicts with its assigned scope.
422Validation error
A filter, field, or request value is invalid.
429Rate limited
The configured requests-per-minute limit was exceeded.