Skip to main content

Getting Appointments

Retrieve a single appointment by ID or search your appointment history with filters using the GET /v1/appointments endpoints.


Before You Begin

Your API key requires the appointments:read scope.


Get a Single Appointment

  • Endpoint: GET https://api.huskyvoice.ai/v1/appointments/{appointment_id}
  • Required scope: appointments:read
curl -s https://api.huskyvoice.ai/v1/appointments/appt_a1b2c3d4e5 \
-H "Authorization: Bearer YOUR_API_KEY"

Response — 200 OK

{
"success": true,
"data": {
"appointment_id": "appt_a1b2c3d4e5",
"appointment_type": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"branch_id": "branch_uuid_here",
"date": "2026-06-15",
"session": "Morning",
"batch": "MA",
"token": null,
"patient_name": "Aadhi",
"parent_phone": "+919840XXXXXX",
"assigned_doctor": null,
"status": "confirmed",
"external_reference_id": null,
"created_at": "2026-05-26T10:00:00.000Z",
"updated_at": "2026-05-26T10:00:00.000Z"
}
}

Returns 404 NOT_FOUND if no appointment with that ID exists in your organization.


Search Appointments

  • Endpoint: GET https://api.huskyvoice.ai/v1/appointments
  • Required scope: appointments:read

All query parameters are optional. Results are sorted by appointment date ascending.

ParameterTypeDescription
datestringFilter by date — YYYY-MM-DD (matches the full day in UTC)
statusstringFilter by status: confirmed, rescheduled, cancelled, completed
appointment_typestringFilter by service UUID
branch_idstringFilter by branch UUID
sessionstringFilter by session: Morning, Afternoon, or Evening
batchstringFilter by batch label (e.g. "MA")
pageintegerPage number — defaults to 1
limitintegerResults per page — defaults to 50, max 200
curl -s "https://api.huskyvoice.ai/v1/appointments?date=2026-06-15&session=Morning&page=1&limit=50" \
-H "Authorization: Bearer YOUR_API_KEY"

Response — 200 OK

{
"success": true,
"data": [
{
"appointment_id": "appt_a1b2c3d4e5",
"appointment_type": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"branch_id": "branch_uuid_here",
"date": "2026-06-15",
"session": "Morning",
"batch": "MA",
"token": null,
"patient_name": "Aadhi",
"parent_phone": "+919840XXXXXX",
"assigned_doctor": null,
"status": "confirmed",
"external_reference_id": null,
"created_at": "2026-05-26T10:00:00.000Z",
"updated_at": "2026-05-26T10:00:00.000Z"
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 50,
"total_pages": 1
}
}

Error Codes

StatusCodeCause
404NOT_FOUNDAppointment not found (single-fetch only)
403INSUFFICIENT_SCOPEAPI key does not have appointments:read scope