Skip to main content
GET
List my appointments

Query Parameters

state
enum<string>[]

When included, filter to appointments with any of these appointment states. Multiple values are pipe-delimited (for example scheduled|completed). When excluded, defaults to scheduled appointments. Ignored when reviewable is true.

Valid states of the appointment.

Available options:
pending,
scheduled,
canceled,
completed,
rejected,
expired
date
string

A date range, supporting inclusive or exclusive endpoints. Dates ranges use dates expressed in YYYY-MM-DD RFC 3339 date format. The value may have the following forms:

  • YYYY-MM-DD match the date exactly; equivalent to matching dates in the range [YYYY-MM-DD,YYYY-MM-DD]
  • [YYYY-MM-DD,YYYY-MM-DD] between two dates, inclusive of the endpoints
  • (YYYY-MM-DD,YYYY-MM-DD) between two dates, exclusive of the endpoints
  • [YYYY-MM-DD,] on or after the date
  • (YYYY-MM-DD,) after the date
  • [,YYYY-MM-DD] before or on the date
  • (,YYYY-MM-DD) before the date

Examples:

  • '2022-05-19'
  • '[2022-05-01,2022-05-31]'
  • '[2022-05-01,2022-06-01)'
  • '[2022-05-19,]'
  • '(2022-05-19,)'
  • '[,2022-05-19]'
  • '(,2022-05-19)'.
Maximum string length: 24
Pattern: ^(\d{4}-\d{2}-\d{2}|[\[(](\d{4}-\d{2}-\d{2},(\d{4}-\d{2}-\d{2})?|,\d{4}-\d{2}-\d{2})[)\]])$
barberId
string

When included, limit appointments to this specific barber. When excluded, appointments are not filtered by barber. The unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.

reviewable
boolean

When true, return completed appointments the customer has not reviewed and has not dismissed from the review prompt. When excluded or false, appointments are not filtered by reviewability.

limit
integer<int16>
default:10
required
offset
integer<int16>
default:0
required

Response

Ok. The operation succeeded.

A list response for appointment resources. This response contains the full result set after any filters are applied.

items
object[]
required
count
integer<int16>
required
Required range: x >= 0
offset
integer<int16>
required

The offset of list results for the current page.

Required range: x >= 0
limit
integer<int16>
required

The maximum number of results included in items.

Required range: x >= 0