curl -G https://api.plane.com/v1/leaves \
-H "Authorization: Bearer YOUR_API_KEY"
{
"leaves": [
{
"id": "lv_1HPCXADYAhh5k1NMU0r1WUqs",
"status": "approved",
"type": "vacation",
"worker": "wr_CgcLakmx4guire",
"starts": "2026-04-14",
"ends": "2026-04-16",
"days": 2.5,
"hours": 20,
"schedule": {
"2026-04-14": 8,
"2026-04-15": 8,
"2026-04-16": 4
},
"note": "Annual vacation",
"request": {
"id": "lvr_6r3wLwX44s0Ak0bDkP5n2r7Q",
"status": "approved",
"created": "2026-03-10T18:42:11Z",
"updated": "2026-03-11T09:05:52Z"
},
"created": "2026-03-10T18:42:11Z",
"updated": "2026-03-11T09:05:52Z"
}
],
"cursor": "eyJpZCI6Imx2XzFIUENYQURZQWhoNWsxTk1VMHIxV1VxcyJ9"
}
Returns leaves in your Plane workspace.
curl -G https://api.plane.com/v1/leaves \
-H "Authorization: Bearer YOUR_API_KEY"
{
"leaves": [
{
"id": "lv_1HPCXADYAhh5k1NMU0r1WUqs",
"status": "approved",
"type": "vacation",
"worker": "wr_CgcLakmx4guire",
"starts": "2026-04-14",
"ends": "2026-04-16",
"days": 2.5,
"hours": 20,
"schedule": {
"2026-04-14": 8,
"2026-04-15": 8,
"2026-04-16": 4
},
"note": "Annual vacation",
"request": {
"id": "lvr_6r3wLwX44s0Ak0bDkP5n2r7Q",
"status": "approved",
"created": "2026-03-10T18:42:11Z",
"updated": "2026-03-11T09:05:52Z"
},
"created": "2026-03-10T18:42:11Z",
"updated": "2026-03-11T09:05:52Z"
}
],
"cursor": "eyJpZCI6Imx2XzFIUENYQURZQWhoNWsxTk1VMHIxV1VxcyJ9"
}
created and then by id.
2026-04-01.2026-04-30.requested, approved, declined, cancelled, or
all. Passing all returns leaves of every status. If you don’t provide a value, only approved
leaves are returned.starts or ends, Plane returns a leave when any part of it falls inside that date
window.
curl -G https://api.plane.com/v1/leaves \
-H "Authorization: Bearer YOUR_API_KEY"
leaves property that contains an array of
Leave objects. If no matching leaves exist, the array is empty.
{
"leaves": [
{
"id": "lv_1HPCXADYAhh5k1NMU0r1WUqs",
"status": "approved",
"type": "vacation",
"worker": "wr_CgcLakmx4guire",
"starts": "2026-04-14",
"ends": "2026-04-16",
"days": 2.5,
"hours": 20,
"schedule": {
"2026-04-14": 8,
"2026-04-15": 8,
"2026-04-16": 4
},
"note": "Annual vacation",
"request": {
"id": "lvr_6r3wLwX44s0Ak0bDkP5n2r7Q",
"status": "approved",
"created": "2026-03-10T18:42:11Z",
"updated": "2026-03-11T09:05:52Z"
},
"created": "2026-03-10T18:42:11Z",
"updated": "2026-03-11T09:05:52Z"
}
],
"cursor": "eyJpZCI6Imx2XzFIUENYQURZQWhoNWsxTk1VMHIxV1VxcyJ9"
}
Was this page helpful?