Skip to main content
The List Appointments endpoint returns a cursor-paginated collection of appointments belonging to your clinic. You can narrow results by date range, status, assigned professional, patient, or appointment type, and control the sort order to suit your workflow. Each response includes a meta object so you can determine whether more pages exist and fetch them using the cursor parameter.

Request

GET https://api.bydoctor.com.br/v1/appointments
integer
default:20
The maximum number of appointment records to return per page. Must be between 1 and 100.
string
An opaque pagination cursor returned in meta.next_cursor from a previous response. Pass this value to retrieve the next page of results. Omit on the first request.
string
Return only appointments whose starts_at is strictly after this ISO 8601 UTC timestamp. Example: 2025-06-01T00:00:00Z.
string
Return only appointments whose starts_at is strictly before this ISO 8601 UTC timestamp. Example: 2025-06-30T23:59:59Z.
string
Filter results to a single status. Accepted values: scheduled, confirmed, cancelled, completed, no_show.
string
Filter results to appointments assigned to this professional UUID.
string
Filter results to appointments linked to this patient UUID.
string
Filter results by appointment type. Accepted values: presencial, teleconsulta.
string
default:"created_at"
The field to sort results by. Accepted values: created_at, starts_at.
string
default:"desc"
The sort direction. Accepted values: asc, desc.

Response Fields

array
An array of appointment objects matching your query filters.
object
Pagination metadata for the current response.
Combine starts_after and starts_before to build a date-range report. For example, pass the first and last instant of a calendar month to pull a complete monthly schedule.

Example Request

Example Response (200 OK)

Error Responses

400 Bad Request — A query parameter has an invalid value (for example, an unrecognised status or a malformed timestamp).
401 Unauthorized — Your API key is missing or invalid.