Every module for ₹9 per employee. Hosting and security included. No sales calls. Every module, ₹9 per employee Pricing →

Sign in Get started

Developers / API reference

API reference

Every endpoint, generated from the same contract the server runs on. Base address https://app.anomahq.com/api, with your key in Authorization: Bearer ank_…. Press “Try it” to run any of them in your sandbox.

People

Everyone in the company, their department, manager and job.

GET/v1/employeesTry it

List people

Needs the employees:read scope.

Parameters of GET /v1/employees
ParameterInTypeDescription
statusquerystring
active, exited, all
active (default), exited or all
department_idqueryintegerOnly this department
updated_sincequerystringOnly people added, changed or exited since this time (ISO 8601, within the last 30 days)
limitqueryintegerHow many to return, 1 to 200 (default 50)
afterqueryintegerThe next_cursor from the previous page
Request
curl 'https://app.anomahq.com/api/v1/employees' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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/v1/employees/{id}Try it

Get a person

Needs the employees:read scope.

Parameters of GET /v1/employees/{id}
ParameterInTypeDescription
id requiredpathintegerIts id
Request
curl 'https://app.anomahq.com/api/v1/employees/12' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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
}
POST/v1/employeesTry it

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
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
{
  "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
}
PATCH/v1/employees/{id}Try it

Change a person’s details

Send only what changes.

Needs the employees:write scope.

Parameters of PATCH /v1/employees/{id}
ParameterInTypeDescription
id requiredpathintegerIts id

Body

Request
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
{
  "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
}
GET/v1/departmentsTry it

List departments

Needs the employees:read scope.

Request
curl 'https://app.anomahq.com/api/v1/departments' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "data": [
    {
      "id": 3,
      "name": "Engineering",
      "headcount": 24
    }
  ]
}
GET/v1/holidaysTry it

List holidays

Needs the employees:read scope.

Parameters of GET /v1/holidays
ParameterInTypeDescription
yearqueryintegerDefaults to this year
Request
curl 'https://app.anomahq.com/api/v1/holidays' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "data": [
    {
      "date": "2026-12-25",
      "name": "Christmas",
      "location": null
    }
  ]
}

Time off

Leave types, balances and requests. Requests go through the company’s approval chain.

GET/v1/leave/typesTry it

List leave types

Needs the leave:read scope.

Request
curl 'https://app.anomahq.com/api/v1/leave/types' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "data": [
    {
      "id": 1,
      "name": "Casual leave",
      "paid": true,
      "annual_quota": 12,
      "half_day": true
    }
  ]
}
GET/v1/leave/balancesTry it

A person’s leave balances

Needs the leave:read scope.

Parameters of GET /v1/leave/balances
ParameterInTypeDescription
employee_id requiredqueryintegerWhose balances
yearqueryintegerDefaults to this year
Request
curl 'https://app.anomahq.com/api/v1/leave/balances?employee_id=12' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "employee_id": 12,
  "year": 2026,
  "data": [
    {
      "type_id": 1,
      "name": "Casual leave",
      "available": 7,
      "used": 4,
      "pending": 1,
      "accrued": 12,
      "carried": 0
    }
  ]
}
GET/v1/leave/requestsTry it

List time-off requests

Needs the leave:read scope.

Parameters of GET /v1/leave/requests
ParameterInTypeDescription
statusquerystring
pending, approved, rejected, cancelled
pending, approved, rejected or cancelled
employee_idqueryintegerOnly this person
fromquerystringOverlapping this date or later (YYYY-MM-DD)
toquerystringOverlapping this date or earlier (YYYY-MM-DD)
limitqueryintegerHow many to return, 1 to 200 (default 50)
afterqueryintegerThe next_cursor from the previous page
Request
curl 'https://app.anomahq.com/api/v1/leave/requests' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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}
ParameterInTypeDescription
id requiredpathintegerIts id
Request
curl 'https://app.anomahq.com/api/v1/leave/requests/88' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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/requestsTry it

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
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
{
  "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
ParameterInTypeDescription
id requiredpathintegerIts id
Request
curl -X POST 'https://app.anomahq.com/api/v1/leave/requests/88/cancel' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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.

GET/v1/attendanceTry it

Attendance for a date range

Needs the attendance:read scope.

Parameters of GET /v1/attendance
ParameterInTypeDescription
from requiredquerystringFirst day (YYYY-MM-DD)
to requiredquerystringLast day, at most 62 days after from
employee_idqueryintegerOnly this person
Request
curl 'https://app.anomahq.com/api/v1/attendance?from=2026-11-01&to=2026-11-30' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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
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
{
  "accepted": 2,
  "days_updated": 1,
  "unknown_codes": []
}

Expenses

Expense claims and where they stand.

GET/v1/expenses/claimsTry it

List expense claims

Needs the expenses:read scope.

Parameters of GET /v1/expenses/claims
ParameterInTypeDescription
statusquerystringdraft, pending, approved, rejected, paid or withdrawn
employee_idqueryintegerOnly this person
limitqueryintegerHow many to return, 1 to 200 (default 50)
afterqueryintegerThe next_cursor from the previous page
Request
curl 'https://app.anomahq.com/api/v1/expenses/claims' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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.

GET/v1/approvalsTry it

Everything waiting for a decision

Needs the approvals:write scope.

Request
curl 'https://app.anomahq.com/api/v1/approvals' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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
ParameterInTypeDescription
kind requiredpathstringleave, correction, expense, comp_off, profile …
ref_id requiredpathintegerThe request’s id

Body: decision required

Request
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
{
  "kind": "leave",
  "ref_id": 88,
  "result": "approved"
}

Payroll

Locked months: paid days, loss of pay, overtime, expenses to pay and dues at exit.

GET/v1/payroll/monthsTry it

Locked payroll months

Needs the payroll:read scope.

Request
curl 'https://app.anomahq.com/api/v1/payroll/months' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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}
ParameterInTypeDescription
month requiredpathstringYYYY-MM
Request
curl 'https://app.anomahq.com/api/v1/payroll/months/2026-10' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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.

GET/v1/meTry it

Who this key is

The company, the key’s name and scopes. Handy for checking a key works.

Any key can call this.

Request
curl 'https://app.anomahq.com/api/v1/me' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "workspace": "acme",
  "company": "Acme Pvt Ltd",
  "key": {
    "name": "Payroll sync",
    "prefix": "ank_acme_3f9a",
    "scopes": [
      "payroll:read"
    ]
  },
  "sandbox": false,
  "api_version": "2026-11-24"
}
GET/v1/eventsTry it

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
ParameterInTypeDescription
typequerystringOnly this event type, e.g. leave.approved
limitqueryintegerHow many to return, 1 to 200 (default 50)
afterqueryintegerThe next_cursor from the previous page
Request
curl 'https://app.anomahq.com/api/v1/events' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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
}
GET/v1/webhooksTry it

List webhook endpoints

Needs the webhooks:manage scope.

Request
curl 'https://app.anomahq.com/api/v1/webhooks' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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"
    }
  ]
}
POST/v1/webhooksTry it

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
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
{
  "id": 2,
  "url": "https://hooks.acme.in/anoma",
  "events": [
    "leave.approved",
    "employee.created"
  ],
  "active": true,
  "secret": "whsec_…"
}
DELETE/v1/webhooks/{id}Try it

Remove a webhook endpoint

Needs the webhooks:manage scope.

Parameters of DELETE /v1/webhooks/{id}
ParameterInTypeDescription
id requiredpathintegerIts id
Request
curl -X DELETE 'https://app.anomahq.com/api/v1/webhooks/12' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "deleted": true
}
POST/v1/webhooks/{id}/testTry it

Send a test event

Needs the webhooks:manage scope.

Parameters of POST /v1/webhooks/{id}/test
ParameterInTypeDescription
id requiredpathintegerIts id
Request
curl -X POST 'https://app.anomahq.com/api/v1/webhooks/41/test' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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
ParameterInTypeDescription
endpoint_idqueryintegerOnly this endpoint
afterqueryintegerOnly deliveries after this id (for live views)
Request
curl 'https://app.anomahq.com/api/v1/webhooks/deliveries' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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}
ParameterInTypeDescription
id requiredpathintegerIts id
Request
curl 'https://app.anomahq.com/api/v1/webhooks/deliveries/41' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "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
ParameterInTypeDescription
id requiredpathintegerIts id
Request
curl -X POST 'https://app.anomahq.com/api/v1/webhooks/deliveries/41/redeliver' \
  -H 'Authorization: Bearer ank_your_key'
Response · 200
{
  "delivery_id": 42
}