List appointments
GET/api/integration/v1/appointments
Returns appointments, including those that patients booked themselves, ordered by last update, oldest first. A cancelled appointment is still returned, with status set to CANCELLED. Only a deleted appointment is returned as a deleted record (tombstone). Requires the appointments:read scope.
Query parameters
| Parameter | Description |
|---|---|
updatedSincestring · date-timeoptional |
Returns only records whose updatedAt is at or after this time. Use an ISO 8601 date-time with a time zone, for example 2026-10-01T00:00:00.000Z. For how to use it, see Incremental sync. |
cursorstringoptional |
The nextCursor value from the previous page, exactly as returned. Omit it on the first page. See Pagination. |
limitintegeroptional |
From 1 to 500. Default 200. |
Response 200
A page of appointments: { requestId, appointments, nextCursor }. Each element of appointments has the fields of an appointment, or is a tombstone. If nextCursor is not null, there is a next page.
Errors
| Error code | When |
|---|---|
INVALID_UPDATED_SINCE400 | updatedSince is not an ISO 8601 date-time with a time zone, or appears more than once. |
INVALID_CURSOR400 | cursor is not valid, or was issued by a different endpoint. |
INVALID_LIMIT400 | limit is not an integer from 1 to 500. |
UNKNOWN_PARAMETER400 | A parameter that is not listed under “Query parameters”, including one with a misspelled name. |
INSUFFICIENT_SCOPE403 | The API key does not have the appointments:read scope. |
Every endpoint can also return 401, 429 and 5xx. See Error codes.
curl -sS "https://iclinic.phongkhamhieploi.vn/api/integration/v1/appointments?limit=200" \
-H "Authorization: Bearer $ICLINIC_API_KEY"
{
"requestId": "req_7c1f3a",
"appointments": [
{
"id": "a41f9c0e-7d25-4b8a-9c36-0e5b1d7a2f44",
"code": "LH-20261020-003",
"patientId": "5b0d6a38-3f5a-4a52-8f7c-1d2e9c4b7a10",
"phone": "0900000001",
"scheduledAt": "2026-10-20T02:30:00.000Z",
"status": "BOOKED",
"doctorName": "BS. Trần Thị B",
"room": "Phòng 2",
"reason": "Tái khám",
"createdAt": "2026-10-15T07:00:00.000Z",
"updatedAt": "2026-10-15T07:00:00.000Z",
"deletedAt": null
}
],
"nextCursor": null
}