People Everyone in the company, their department, manager and job.
List people
Needs the employees:read scope.
Parameters of GET /v1/employees Parameter In Type Description statusquery stringactive, exited, all active (default), exited or all department_idquery integer Only this department updated_sincequery string Only people added, changed or exited since this time (ISO 8601, within the last 30 days) limitquery integer How many to return, 1 to 200 (default 50) afterquery integer The next_cursor from the previous page
Request Copy
curl 'https://app.anomahq.com/api/v1/employees' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"id": 12,
"emp_code": "E0012",
"first_name": "Sneha",
"last_name": "Iyer",
"name": "Sneha Iyer",
"email": "sneha@acme.in",
"phone": "+919876543210",
"department": {
"id": 3,
"name": "Engineering"
},
"designation": "Backend engineer",
"manager_id": 4,
"employment_type": "full_time",
"join_date": "2024-04-01",
"status": "active",
"exit_date": null
}
],
"has_more": false,
"next_cursor": null
}
Get a person
Needs the employees:read scope.
Parameters of GET /v1/employees/{id} Parameter In Type Description id required path integer Its id
Request Copy
curl 'https://app.anomahq.com/api/v1/employees/12' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"id": 12,
"emp_code": "E0012",
"first_name": "Sneha",
"last_name": "Iyer",
"name": "Sneha Iyer",
"email": "sneha@acme.in",
"phone": "+919876543210",
"department": {
"id": 3,
"name": "Engineering"
},
"designation": "Backend engineer",
"manager_id": 4,
"employment_type": "full_time",
"join_date": "2024-04-01",
"status": "active",
"exit_date": null
}
Add a person
They get an invitation to sign in when the company has email on. Their onboarding checklist starts.
Needs the employees:write scope.
Body: first_name, join_date required
Request Copy
curl -X POST 'https://app.anomahq.com/api/v1/employees' \
-H 'Authorization: Bearer ank_your_key' \
-H 'Content-Type: application/json' \
-d '{"first_name":"Arjun","last_name":"Mehta","email":"arjun@acme.in","join_date":"2026-12-01","designation":"Sales executive","department_id":2,"manager_id":4}'Response · 200 Copy
{
"id": 57,
"emp_code": "E0012",
"first_name": "Arjun",
"last_name": "Mehta",
"name": "Arjun Mehta",
"email": "arjun@acme.in",
"phone": "+919876543210",
"department": {
"id": 3,
"name": "Engineering"
},
"designation": "Backend engineer",
"manager_id": 4,
"employment_type": "full_time",
"join_date": "2024-04-01",
"status": "active",
"exit_date": null
}
Change a person’s details
Send only what changes.
Needs the employees:write scope.
Parameters of PATCH /v1/employees/{id} Parameter In Type Description id required path integer Its id
Body
Request Copy
curl -X PATCH 'https://app.anomahq.com/api/v1/employees/12' \
-H 'Authorization: Bearer ank_your_key' \
-H 'Content-Type: application/json' \
-d '{"designation":"Senior backend engineer","department_id":3}'Response · 200 Copy
{
"id": 12,
"emp_code": "E0012",
"first_name": "Sneha",
"last_name": "Iyer",
"name": "Sneha Iyer",
"email": "sneha@acme.in",
"phone": "+919876543210",
"department": {
"id": 3,
"name": "Engineering"
},
"designation": "Senior backend engineer",
"manager_id": 4,
"employment_type": "full_time",
"join_date": "2024-04-01",
"status": "active",
"exit_date": null
}
List departments
Needs the employees:read scope.
Request Copy
curl 'https://app.anomahq.com/api/v1/departments' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"id": 3,
"name": "Engineering",
"headcount": 24
}
]
}
List holidays
Needs the employees:read scope.
Parameters of GET /v1/holidays Parameter In Type Description yearquery integer Defaults to this year
Request Copy
curl 'https://app.anomahq.com/api/v1/holidays' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"date": "2026-12-25",
"name": "Christmas",
"location": null
}
]
}
Time off Leave types, balances and requests. Requests go through the company’s approval chain.
List leave types
Needs the leave:read scope.
Request Copy
curl 'https://app.anomahq.com/api/v1/leave/types' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"id": 1,
"name": "Casual leave",
"paid": true,
"annual_quota": 12,
"half_day": true
}
]
}
A person’s leave balances
Needs the leave:read scope.
Parameters of GET /v1/leave/balances Parameter In Type Description employee_id required query integer Whose balances yearquery integer Defaults to this year
Request Copy
curl 'https://app.anomahq.com/api/v1/leave/balances?employee_id=12' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"employee_id": 12,
"year": 2026,
"data": [
{
"type_id": 1,
"name": "Casual leave",
"available": 7,
"used": 4,
"pending": 1,
"accrued": 12,
"carried": 0
}
]
}
List time-off requests
Needs the leave:read scope.
Parameters of GET /v1/leave/requests Parameter In Type Description statusquery stringpending, approved, rejected, cancelled pending, approved, rejected or cancelled employee_idquery integer Only this person fromquery string Overlapping this date or later (YYYY-MM-DD) toquery string Overlapping this date or earlier (YYYY-MM-DD) limitquery integer How many to return, 1 to 200 (default 50) afterquery integer The next_cursor from the previous page
Request Copy
curl 'https://app.anomahq.com/api/v1/leave/requests' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"id": 88,
"employee_id": 12,
"employee_name": "Sneha Iyer",
"type": {
"id": 1,
"name": "Casual leave"
},
"start_date": "2026-12-08",
"end_date": "2026-12-09",
"days": 2,
"half_day": false,
"reason": "Family function",
"status": "pending",
"stage": "Waiting for their manager",
"created_at": "2026-11-24T09:12:00Z"
}
],
"has_more": false,
"next_cursor": null
}
GET /v1/leave/requests/{id}Try it
Get a time-off request
Needs the leave:read scope.
Parameters of GET /v1/leave/requests/{id} Parameter In Type Description id required path integer Its id
Request Copy
curl 'https://app.anomahq.com/api/v1/leave/requests/88' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"id": 88,
"employee_id": 12,
"employee_name": "Sneha Iyer",
"type": {
"id": 1,
"name": "Casual leave"
},
"start_date": "2026-12-08",
"end_date": "2026-12-09",
"days": 2,
"half_day": false,
"reason": "Family function",
"status": "pending",
"stage": "Waiting for their manager",
"created_at": "2026-11-24T09:12:00Z"
}
Request time off for someone
Checked against their balance and the company’s leave rules, then sent through the approval chain like a request made in ANOMA.
Needs the leave:write scope.
Body: employee_id, leave_type_id, start_date required
Request Copy
curl -X POST 'https://app.anomahq.com/api/v1/leave/requests' \
-H 'Authorization: Bearer ank_your_key' \
-H 'Content-Type: application/json' \
-d '{"employee_id":12,"leave_type_id":1,"start_date":"2026-12-08","end_date":"2026-12-09","half_day":false,"reason":"Family function"}'Response · 200 Copy
{
"id": 88,
"employee_id": 12,
"employee_name": "Sneha Iyer",
"type": {
"id": 1,
"name": "Casual leave"
},
"start_date": "2026-12-08",
"end_date": "2026-12-09",
"days": 2,
"half_day": false,
"reason": "Family function",
"status": "pending",
"stage": "Waiting for their manager",
"created_at": "2026-11-24T09:12:00Z"
}
POST /v1/leave/requests/{id}/cancelTry it
Cancel a time-off request
Needs the leave:write scope.
Parameters of POST /v1/leave/requests/{id}/cancel Parameter In Type Description id required path integer Its id
Request Copy
curl -X POST 'https://app.anomahq.com/api/v1/leave/requests/88/cancel' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"id": 88,
"employee_id": 12,
"employee_name": "Sneha Iyer",
"type": {
"id": 1,
"name": "Casual leave"
},
"start_date": "2026-12-08",
"end_date": "2026-12-09",
"days": 2,
"half_day": false,
"reason": "Family function",
"status": "cancelled",
"stage": null,
"created_at": "2026-11-24T09:12:00Z"
}
Attendance Daily attendance, and punches from machines or other systems.
Attendance for a date range
Needs the attendance:read scope.
Parameters of GET /v1/attendance Parameter In Type Description from required query string First day (YYYY-MM-DD) to required query string Last day, at most 62 days after from employee_idquery integer Only this person
Request Copy
curl 'https://app.anomahq.com/api/v1/attendance?from=2026-11-01&to=2026-11-30' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"employee_id": 12,
"date": "2026-11-24",
"status": "present",
"check_in": "09:12",
"check_out": "18:40",
"work_min": 568,
"late_min": 0,
"source": "device"
}
]
}
POST /v1/attendance/punchesTry it
Send punches
Up to 1,000 punches by employee code. The first punch of a day is the check-in, the last the check-out. Days HR corrected are left alone; months locked for payroll are refused.
Needs the attendance:write scope.
Body: punches required
Request Copy
curl -X POST 'https://app.anomahq.com/api/v1/attendance/punches' \
-H 'Authorization: Bearer ank_your_key' \
-H 'Content-Type: application/json' \
-d '{"punches":[{"emp_code":"E0012","at":"2026-11-24T09:12"},{"emp_code":"E0012","at":"2026-11-24T18:40"}]}'Response · 200 Copy
{
"accepted": 2,
"days_updated": 1,
"unknown_codes": []
}
Expenses Expense claims and where they stand.
List expense claims
Needs the expenses:read scope.
Parameters of GET /v1/expenses/claims Parameter In Type Description statusquery string draft, pending, approved, rejected, paid or withdrawn employee_idquery integer Only this person limitquery integer How many to return, 1 to 200 (default 50) afterquery integer The next_cursor from the previous page
Request Copy
curl 'https://app.anomahq.com/api/v1/expenses/claims' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"id": 31,
"employee_id": 12,
"employee_name": "Sneha Iyer",
"title": "Client visit to Pune",
"total": 4820,
"status": "pending",
"submitted_at": "2026-11-22"
}
],
"has_more": false,
"next_cursor": null
}
Approvals Everything waiting for a decision, and deciding it.
Everything waiting for a decision
Needs the approvals:write scope.
Request Copy
curl 'https://app.anomahq.com/api/v1/approvals' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"kind": "leave",
"ref_id": 88,
"kind_label": "Time off",
"employee_id": 12,
"employee_name": "Sneha Iyer",
"summary": "2 days of casual leave, 8 Dec 2026 to 9 Dec 2026",
"reason": "Family function",
"stage": "Waiting for their manager",
"created_at": "2026-11-24 09:12:00"
}
]
}
POST /v1/approvals/{kind}/{ref_id}/decideTry it
Approve or decline
Decided as the HR admin who created the key, so the company’s approval chain moves on exactly as if they clicked it.
Needs the approvals:write scope.
Parameters of POST /v1/approvals/{kind}/{ref_id}/decide Parameter In Type Description kind required path string leave, correction, expense, comp_off, profile … ref_id required path integer The request’s id
Body: decision required
Request Copy
curl -X POST 'https://app.anomahq.com/api/v1/approvals/leave/88/decide' \
-H 'Authorization: Bearer ank_your_key' \
-H 'Content-Type: application/json' \
-d '{"decision":"approved","note":"Enjoy the break"}'Response · 200 Copy
{
"kind": "leave",
"ref_id": 88,
"result": "approved"
}
Payroll Locked months: paid days, loss of pay, overtime, expenses to pay and dues at exit.
Locked payroll months
Needs the payroll:read scope.
Request Copy
curl 'https://app.anomahq.com/api/v1/payroll/months' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"month": "2026-10",
"status": "locked",
"people": 48,
"locked_at": "2026-11-02T10:00:00Z",
"hash": "9c1e…"
}
]
}
GET /v1/payroll/months/{month}Try it
A locked month’s payroll inputs
The same contract as the payroll export (anoma.payroll-inputs/v1). 409 if the month is not locked yet.
Needs the payroll:read scope.
Parameters of GET /v1/payroll/months/{month} Parameter In Type Description month required path string YYYY-MM
Request Copy
curl 'https://app.anomahq.com/api/v1/payroll/months/2026-10' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"contract": "anoma.payroll-inputs/v1",
"month": "2026-10",
"people": [
{
"emp_code": "E0012",
"name": "Sneha Iyer",
"days_in_month": 31,
"paid_days": 30,
"lop_days": 1,
"overtime_hours": 4,
"expenses_to_pay": 4820
}
]
}
Webhooks & events Get told the moment something happens, signed so you know it is ANOMA.
Who this key is
The company, the key’s name and scopes. Handy for checking a key works.
Any key can call this.
Request Copy
curl 'https://app.anomahq.com/api/v1/me' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"workspace": "acme",
"company": "Acme Pvt Ltd",
"key": {
"name": "Payroll sync",
"prefix": "ank_acme_3f9a",
"scopes": [
"payroll:read"
]
},
"sandbox": false,
"api_version": "2026-11-24"
}
Recent events
Everything that happened in the last 30 days, newest first. The same events webhooks deliver.
Needs the webhooks:manage scope.
Parameters of GET /v1/events Parameter In Type Description typequery string Only this event type, e.g. leave.approved limitquery integer How many to return, 1 to 200 (default 50) afterquery integer The next_cursor from the previous page
Request Copy
curl 'https://app.anomahq.com/api/v1/events' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"id": "evt_2b7f0c…",
"type": "leave.approved",
"created_at": "2026-11-24T10:02:11Z",
"data": {
"id": 88,
"employee_id": 12,
"employee_name": "Sneha Iyer",
"type": {
"id": 1,
"name": "Casual leave"
},
"start_date": "2026-12-08",
"end_date": "2026-12-09",
"days": 2,
"half_day": false,
"reason": "Family function",
"status": "pending",
"stage": "Waiting for their manager",
"created_at": "2026-11-24T09:12:00Z"
}
}
],
"has_more": false,
"next_cursor": null
}
List webhook endpoints
Needs the webhooks:manage scope.
Request Copy
curl 'https://app.anomahq.com/api/v1/webhooks' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"id": 2,
"url": "https://hooks.acme.in/anoma",
"events": [
"leave.approved",
"employee.created"
],
"active": true,
"description": "Payroll sync",
"created_at": "2026-11-20 08:00:00"
}
]
}
Add a webhook endpoint
The signing secret is shown once, in this response. Use ["*"] for every event.
Needs the webhooks:manage scope.
Body: url, events required
Request Copy
curl -X POST 'https://app.anomahq.com/api/v1/webhooks' \
-H 'Authorization: Bearer ank_your_key' \
-H 'Content-Type: application/json' \
-d '{"url":"https://hooks.acme.in/anoma","events":["leave.approved","employee.created"],"description":"Payroll sync"}'Response · 200 Copy
{
"id": 2,
"url": "https://hooks.acme.in/anoma",
"events": [
"leave.approved",
"employee.created"
],
"active": true,
"secret": "whsec_…"
}
Remove a webhook endpoint
Needs the webhooks:manage scope.
Parameters of DELETE /v1/webhooks/{id} Parameter In Type Description id required path integer Its id
Request Copy
curl -X DELETE 'https://app.anomahq.com/api/v1/webhooks/12' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"deleted": true
}
POST /v1/webhooks/{id}/testTry it
Send a test event
Needs the webhooks:manage scope.
Parameters of POST /v1/webhooks/{id}/test Parameter In Type Description id required path integer Its id
Request Copy
curl -X POST 'https://app.anomahq.com/api/v1/webhooks/41/test' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"event": "ping",
"delivery_id": 41
}
GET /v1/webhooks/deliveriesTry it
Recent deliveries, with what your server answered
Needs the webhooks:manage scope.
Parameters of GET /v1/webhooks/deliveries Parameter In Type Description endpoint_idquery integer Only this endpoint afterquery integer Only deliveries after this id (for live views)
Request Copy
curl 'https://app.anomahq.com/api/v1/webhooks/deliveries' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"data": [
{
"id": 41,
"endpoint_id": 2,
"event_id": "evt_2b7f0c…",
"event": "leave.approved",
"status": "sent",
"attempts": 1,
"response_status": 200,
"duration_ms": 182,
"created_at": "2026-11-24 10:02:11"
}
]
}
GET /v1/webhooks/deliveries/{id}Try it
One delivery in full
The exact signed request ANOMA sent (headers and body) and what your server answered, for checking signatures or debugging.
Needs the webhooks:manage scope.
Parameters of GET /v1/webhooks/deliveries/{id} Parameter In Type Description id required path integer Its id
Request Copy
curl 'https://app.anomahq.com/api/v1/webhooks/deliveries/41' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"id": 41,
"event": "leave.approved",
"status": "sent",
"url": "https://hooks.acme.in/anoma",
"request_headers": {
"x-anoma-event": "leave.approved",
"x-anoma-signature": "t=1795500000,v1=5f0c…"
},
"body": {
"id": "evt_2b7f0c…",
"type": "leave.approved",
"created_at": "2026-11-24T10:02:11Z",
"workspace": "acme",
"data": {
"id": 88,
"employee_id": 12,
"employee_name": "Sneha Iyer",
"type": {
"id": 1,
"name": "Casual leave"
},
"start_date": "2026-12-08",
"end_date": "2026-12-09",
"days": 2,
"half_day": false,
"reason": "Family function",
"status": "pending",
"stage": "Waiting for their manager",
"created_at": "2026-11-24T09:12:00Z"
}
},
"response_status": 200,
"response_body": "ok"
}
POST /v1/webhooks/deliveries/{id}/redeliverTry it
Send a delivery again
Needs the webhooks:manage scope.
Parameters of POST /v1/webhooks/deliveries/{id}/redeliver Parameter In Type Description id required path integer Its id
Request Copy
curl -X POST 'https://app.anomahq.com/api/v1/webhooks/deliveries/41/redeliver' \
-H 'Authorization: Bearer ank_your_key'Response · 200 Copy
{
"delivery_id": 42
}