Skip to main content
AfterCare extracts every follow-up appointment from discharge paperwork and exposes them through two endpoints. Use GET /appointments to retrieve the structured list of appointments for a document. Use POST /appointments/{appointmentId}/calendar to download an ICS file that your patient can import directly into their calendar app.

GET /appointments

Retrieve all follow-up appointments associated with a processed document.

Query parameter

string (UUID)
required
The document identifier returned by POST /upload. Only appointments that belong to this document and are owned by the authenticated user are returned.

Response — 200 OK

Returns an object with a data array of Appointment objects.
Appointment[]
Array of extracted appointment objects.
Appointments where AfterCare could not find a concrete date are still included in the response with an empty date field. These appointments are listed so your patient is aware of them, but they cannot be exported to a calendar — the /calendar endpoint will return 422 for undated appointments.

cURL example


POST /appointments//calendar

Download an ICS calendar file for a specific appointment. The server generates a standard VCALENDAR event and returns it as a text/calendar attachment.

Path parameter

string
required
The id of the appointment to export. Must belong to the authenticated user, and the appointment’s date field must contain a valid ISO 8601 datetime string (e.g. "2024-10-01T09:00:00.000Z"). Appointments with an empty or unparseable date cannot be exported — the server returns 422.

Response — 200 OK

Returns a text/calendar file download (appointment.ics). The ICS file contains a single VEVENT populated with the appointment’s date, specialty, and location.
The downloaded .ics file opens natively in any major calendar application — including Google Calendar, Apple Calendar, and Microsoft Outlook. Prompt your user to open the file after downloading to add the appointment to their personal calendar with one click.

cURL example


Error responses