Developers
V1MeLeave

Save a private draft or submit a medical-leave request

Inclusive dates up to 365 days. Reuse the UUID and identical content on retry. Optional certificate is one JPEG/PNG photo up to 2 MiB, decoded and stripped of metadata, encrypted on MedBuk infrastructure for 90 days. At most 20 unexpired photos per employee. No external AI. Explicit storage and separate employer-sharing consent required. Drafts are private. Certificate references remain plain text. Upload does not verify authenticity or determine entitlement, pay or medical validity.

POST
/v1/me/leave
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/me/leave" \  -H "Content-Type: application/json" \  -d '{    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",    "startDate": "2019-08-24",    "endDate": "2019-08-24",    "status": "draft"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",  "tenantName": "string",  "startDate": "2019-08-24",  "endDate": "2019-08-24",  "note": "",  "certificateReference": "",  "calendarDays": 1,  "status": "draft",  "createdAt": "2019-08-24T14:15:22Z",  "submittedAt": "2019-08-24T14:15:22Z",  "consent": {    "version": "2026-09-09",    "grantedAt": "2019-08-24T14:15:22Z"  },  "history": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "action": "submitted",      "actor": "employee",      "note": "string",      "at": "2019-08-24T14:15:22Z"    }  ],  "certificate": {    "mimeType": "image/jpeg",    "expiresAt": "2019-08-24T14:15:22Z"  }}