At a glance
- Plan needed: Plus plan (plan feature matrix).
- Rate limit:
150requests per second per workspace. - Starting points: Quick start for your first call, Webhooks for real-time events, or MCP Server for AI assistants (
https://absentify.com/docs/mcpfor read-only docs search).
Quick start guide
Create an API key and make your first REST API call.
Webhook integration
Receive real-time notifications when requests are created or updated.
MCP server
Connect AI assistants to your workspace or read-only docs (
https://absentify.com/docs/mcp).Localized names
Endpoints returning leave-type or allowance-type names accept an optionallocale (en, de, fr, hu, it, pl, pt, ru, es, tr, uk; query parameter on GET).
- With
locale:namereturns the translation if stored (otherwise the default name). Unsupported values likeDEorde-DEreturn400. OnGET /requests_per_day,month,weekday, andfulldayare also localized. - Without
locale: Leave types return their stored name; allowance types follow the API key owner’s language.default_nameis always returned. - Writing translations:
POST /leave_typesandPUT /leave_types/{id}accepttranslations: [{ language, name }](replaces the full set when sent; omit to keep existing). - Webhooks: Always send the stored
nameonly (nolocalesupport).
Managing allowances through the API
Allowances use four linked objects: allowance types (the balance), allowance rules (accrual & carry-over), rule assignments (connecting a user to a rule over a date range), and adjustments (manual corrections on top).Key rules and conventions
- Permissions: All write endpoints require an authenticated admin. Read-only
GET /allowance-types,GET /allowance-types/{id}, andGET /members/{member_id}/allowancesalso work for an authenticated manager (via a validated Microsoft Entra ID Bearer token) for members they may view. Workspace API keys belong to active admins only. - Units:
allowance_unitisdaysorhoursand cannot be changed after creation. Every amount on anhoursallowance is sent and returned in minutes. - Dates (
YYYY-MM-DD): Real calendar dates only (e.g.2026-02-30is rejected).rule_start_dateandvalid_fromare the first inclusive day.rule_end_date,valid_until, and adjustmentexpiry_dateare the last inclusive day (null= open-ended; omittingrule_end_dateonPATCHleaves it unchanged).expiry_datecannot be earlier than the adjustmentdate.coverage_start_date(read-only) is the actual first accrual day (rule_start_dateor the member’s lateremployment_start_date). Never write it back intorule_start_date.
- Rule fields:
rule_amountmust be> 0. UsePOST /members/{member_id}/manual-rulefor manual/zero-accrual management.proration_basis(yearly rules; defaultmonth):month(whole months + day-prorated partial months),day,full_month(whole 1/12 months only), ornone(full amount on join/leave year; mid-year rule switches still count each rule’s months).nonecannot combine withrule_duration(Always the full amount can’t be combined with an expiry for each grant.) and may be rejected on migrated workspaces with pre-rule balances.part_time_basis:none,workdays, orhours(users without a personal schedule count as full time). When notnone,part_time_referenceis required (> 0, max7days or168hours, always in days or hours even for hourly types), andpart_time_fromcannot precede day 1 of the current fiscal year.
- Reasons: Optional on rule edits; required (3 to 500 non-whitespace characters) when creating, updating, switching, or deleting rule assignments.
Allowance types, chains, and rule moves
- Types:
POST /allowance-typesstarts with no rules (nothing accrues until a rule is added; workspace limits depend on plan).PATCHupdates only sent fields (translationsreplaces all stored translations when present).DELETEis blocked while leave types, default assignments, or rules depend on it, or if it is the last type.POST /allowance-types/reorderexpects every workspace type ID.PUT /allowance-types/{allowance_type_id}/default-rulesets the org default (rule_id: nullsetsdefault_rule_manually_managed: true); existing members do not move. - Deleting rules:
DELETE /rules/{id}requiresreassign_toif members are assigned; they switch at the next fiscal-year start, never mid-year. - Assignment chains: End dates are accepted only on the day before the next assignment or the member’s last employment day (
nullif nothing follows). Existing gaps/overlaps are tolerated but cannot be widened.DELETE /rule-assignments/{id}extends the neighboring assignment (preceding forward, or following backward) to cover the gap. - Moving members: Prefer
POST /members/{member_id}/rule-changeorPOST /members/{member_id}/manual-rule(passingcurrent_assignment_id, ornullif none) to switch atomically in one transaction and one audit entry.GET /rules/{rule_id}/membersis a preview without offset (limit1 to 50, default 10;totalcounts all).
Carry-over when you switch to manual management
POST /members/{member_id}/manual-rule has no carry_over field. A carry_over object on that call is ignored. absentify copies the year-end carry-over of current_assignment_id, including whether a negative balance carries.
Pass current_assignment_id as null when no assignment covers valid_from. Unused allowance then follows the allowance type. On a type with no carry-over of its own, nothing carries over.
Choose the carry-over with the MCP tools allowance_rule.assignManualRule or allowance_rule.updateAssignment (MCP Server). Amounts are days, or minutes on an hours allowance (480 is 8 hours).
Leave
carry_over out to keep the replaced rule. On allowance_rule.updateAssignment, send carry_over only with set_manual true. For a user already managed manually, send both to change it, or leave carry_over out to keep it. A change recalculates every year end in that period, including past ones.
GET /members/{member_id}/rule-assignments returns only rule.max_carry_forward. allowance_rule.listAssignments also returns the expiry months and the amount kept.
Balances and audit logs
GET /members/{member_id}/allowances: All fiscal years (oldest first) for enabled types.allowance = rule_allowance + adjustments; overtime is separate incompensatory_time_off.GET /members/{member_id}/allowance-breakdown: Month-by-month ledger for one fiscal year (fields stay empty iflegacy_unmigratedorno_allowance_for_yearistrue).POST /allowances/{id}/revert-carryover-override: Passmember_allowance_idfrom breakdown. Returnsbrought_forwardfrom before the revert; re-read allowances for the recomputed value.- Audit logs (newest first): Rule and type logs take
take1 to 200 (default 100); member logs return up to 200 entries. Rule moves appear under the destination rule (changes.from_rule_id); deleted rules remain readable viaGET /allowance-types/{allowance_type_id}/audit-log.