Skip to content

Get All ​

GET

/:tenantId/appointments

Query parameters ​

NameTypeDescription
searchstringSearches by note, user name, patient name, patient mobile

Filter Parameters ​

KeyTypeDescription
filter[user_id]integerFilters results based on the specified user ID.
filter[patient_id]integerFilters results based on the specified patient ID.
filter[appointment_type_id]integerFilters results based on the specified appointment type ID. See appointment types
filter[status]integerFilters results based on the specified status. See appointment statuses
filter[kind]integerFilters by appointment kind. Defaults to normal appointments.
filter[visit_type]integerFilters by visit type: 0 in-person, 1 online.
filter[start_date][from]datetimeFilters results starting from this date and time. Format Y-m-d H:i:S
filter[start_date][to]datetimeFilters results up to this date and time. Format Y-m-d H:i:S
filter[end_date][from]datetimeFilters by ending date lower bound.
filter[end_date][to]datetimeFilters by ending date upper bound.
filter[created_at][from]datetimeFilters by creation date lower bound.
filter[created_at][to]datetimeFilters by creation date upper bound.
filter[patient_group_id]integerFilters appointments by patient group.
filter[source]stringFilters by source.
filter[external_id]stringFilters by external identifier.

Response ​

json
{
  "data": [
    {
      "id": 1001,
      "start_date": "2024-09-19T06:45:00.000000Z",
      "end_date": "2024-09-19T07:15:00.000000Z",
      "note": "Sample note for appointment 1.",
      "user": {
        "id": 201,
        "name": "John Doe",
        "photo": null,
        "color": ""
      },
      "patient": {
        "id": 301,
        "is_deleted": false,
        "mobile": "+1234567890",
        "name": "Jane Doe",
        "sms_consent": 0,
        "photo": null
      },
      "appointment_type_id": 501,
      "status": 1,
      "notify": 0,
      "resource_id": null,
      "kind": 0,
      "visit_type": 0,
      "online_meeting": null,
      "source": null,
      "parent_id": null,
      "has_children_recurrences": false,
      "is_walk_in_visit": false
    },
    {
      "id": 1002,
      "start_date": "2024-09-21T09:45:00.000000Z",
      "end_date": "2024-09-21T10:00:00.000000Z",
      "note": "Sample note for appointment 2.",
      "user": {
        "id": 202,
        "name": "Alice Smith",
        "photo": null,
        "color": ""
      },
      "patient": {
        "id": 302,
        "is_deleted": false,
        "mobile": "+9876543210",
        "name": "Bob Smith",
        "sms_consent": 0,
        "photo": null
      },
      "appointment_type_id": 502,
      "status": 2,
      "notify": 0,
      "resource_id": null,
      "kind": 0,
      "visit_type": 0,
      "online_meeting": null,
      "source": null,
      "parent_id": null,
      "has_children_recurrences": false,
      "is_walk_in_visit": false
    }
  ],
  "links": {
    "first": "https://<Base URL>/api/v1/:tenantId/appointments?page=1",
    "last": "https://<Base URL>/api/v1/:tenantId/appointments?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": null,
        "label": "pagination.previous",
        "active": false
      },
      {
        "url": "https://<Base URL>/api/v1/:tenantId/appointments?page=1",
        "label": "1",
        "active": true
      },
      {
        "url": null,
        "label": "pagination.next",
        "active": false
      }
    ],
    "path": "https://<Base URL>/api/v1/:tenantId/appointments",
    "per_page": 15,
    "to": 2,
    "total": 2
  }
}