Your own private drafts and leave requests
Authorization
bearer In: header
Query Parameters
1 <= value <= 10030length <= 512Response Body
application/json
curl -X GET "https://example.com/v1/me/leave"{ "requests": [ { "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" } } ], "nextCursor": "string"}Export your own clinical records as portable JSON GET
Includes original and corrected records and author licence snapshots. Follow nextCursor until null. The response is private JSON; no public download URL is created.
Save a private draft or submit a medical-leave request POST
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.