Skip to main content
List patient visits
curl --request GET \
  --url https://api.spikecare.com/public/v1/patients/{patient_id}/visits
{
  "visits": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "id": 2,
      "is_initial_visit": true,
      "patient_id": 2,
      "visit_time": "2023-11-07T05:31:56Z",
      "$schema": "<string>"
    }
  ],
  "$schema": "<string>"
}

Path Parameters

patient_id
integer<int64>
required

ID of the patient whose visits to list.

Required range: x >= 1

Query Parameters

_start
integer<int64>
default:0

0-based index of the first item to return (offset). Use with _limit for paging.

Required range: x >= 0
_limit
integer<int64>
default:100

Maximum number of items to return per request (1–100).

Required range: 1 <= x <= 100
_sort
string

Name of the field to sort by (e.g. id, name, created_at). Omit for default sort.

_order
enum<string>
default:asc

Sort direction: asc or desc.

Available options:
asc,
desc

Response

OK

visits
object[] | null
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://api.spikecare.com/public/v1/schemas/PatientVisitsListResponseBody.json"