Skip to content
Docs

List leave

GET/v1/employees/{employeeId}/leave

Leave someone took, newest first: the type, the dates, the days and whether it was paid.

Path

employeeIdstringrequired

Its id, like emp_8f2k1xH3vNpa.

Query

limitinteger

How many to answer, 1 to 100. 50 when left out.

cursorstring

The nextCursor of the page before.

Answer

dataarray of object
Show 7 fields
idstring

Starts "lve_".

employeeIdstring
typestring

One of vacation, sick, maternity, unpaid, other_paid, suspension. Read any other value as "other".

startsOndate

YYYY-MM-DD.

endsOndate or null

The last day. Null while it goes on.

daysstring or null

Days taken, as entered: "2.5". Null when not entered.

paidboolean
nextCursorstring or null

Send as cursor for the next page. Null on the last.

Refusals

400bad_requestThe request isn't right: the message says which part.
401unauthorizedNo key, a key Paie doesn't know, or one that was revoked.
403forbiddenThe key can't do this (its areas), or the workspace isn't in the API beta.
403plan_requiredThe workspace's plan has no API, or, for a change, none that changes things (Scale).
404not_foundNot there, or not a company this key reaches. The two read the same.
429rate_limitedOver the key's calls a minute, or the workspace's calls a day: wait the seconds Retry-After says.
500server_errorSomething went wrong at Paie. Send support the requestId.
Terminal window
curl https://api.paieday.com/v1/employees/emp_8f2k1xH3vNpa/leave \
-H "Authorization: Bearer $PAIE_API_KEY"
Answer
{
"data": [
{
"id": "lve_1HhXDwZAx",
"employeeId": "emp_8f2k1xH3vNpa",
"type": "vacation",
"startsOn": "2026-11-16",
"endsOn": "2026-11-18",
"days": "3.0",
"paid": true
}
],
"nextCursor": null
}