Skip to main content
GET
List appointments

Authorizations

Authorization
string
header
required

Authenticate with an API access token in the Authorization header: Authorization: Bearer <token>. Create a token from the API Access Tokens page in Contractors Cloud, under Integrations.

Query Parameters

page[number]
integer
default:1

The 1-indexed page number to retrieve.

Required range: x >= 1
page[size]
integer
default:30

The number of results per page (max 100).

Required range: 1 <= x <= 100
filter[id]
integer

Exact match on the appointment's id.

filter[company_id]
integer

Exact match on the id of the company the appointment belongs to.

filter[project_id]
integer

Exact match on the id of the project the appointment is linked to.

filter[company_appointment_type_id]
integer

Exact match on the id of the company's configured appointment type for the appointment.

filter[appointment_category_id]
integer

Exact match on the id of the appointment's category.

filter[appointment_result_id]
integer

Exact match on the id of the appointment's recorded outcome.

filter[created_by]
integer

Exact match on the id of the user who created the appointment.

filter[slot_type]
enum<string>

Exact match on whether the appointment is confirmed or placeholder.

Available options:
confirmed,
placeholder

Limit to appointments where the given user is an attendee.

filter[nearby]
string

Limit to appointments within a radius of a point, formatted as lat,lon,radius (radius is in miles and defaults to 25 when omitted). Orders results by distance from the given point.

filter[date_range]
string

Limit to appointments whose start or end time falls within the given range, formatted as start,end (dates or datetimes).

filter[starts_at_range]
string

Limit to appointments whose starts_at falls within the given range, formatted as start,end. Date-only values expand to cover the full day.

filter[ends_at_range]
string

Limit to appointments whose ends_at falls within the given range, formatted as start,end. Date-only values expand to cover the full day.

filter[created_at_range]
string

Limit to appointments whose created_at falls within the given range, formatted as start,end. Date-only values expand to cover the full day.

filter[updated_at_range]
string

Limit to appointments whose updated_at falls within the given range, formatted as start,end. Date-only values expand to cover the full day.

Fuzzy search across the appointment's title, description, address, the creator's name, and attendees' names and email addresses.

filter[extended_property]
object

Filters by an extended property's key and value, using the syntax filter[extended_property][<key>]=<value>. Matches appointments with an extended property whose key equals <key> and whose value exactly equals <value> (comma-separate multiple values to match any of them).

include
string

Comma-separated related resources to embed. Allowed: company, project, account, type, result, category, company_type, creator, first_attendee, second_attendee, third_attendee, fourth_attendee, extended_properties.

sort
string

Field to sort by. Prefix with - for descending. Allowed: starts_at, ends_at, created_at, updated_at.

Response

A paginated list of appointments.

data
object[]
current_page
integer

The 1-indexed page number of the current response.

Example:

1

first_page_url
string

The URL of the first page of results.

from
integer | null

The 1-indexed position of the first record in data for this page. Null when the page is empty.

Example:

1

last_page
integer

The number of the final page in the result set.

Example:

4

last_page_url
string

The URL of the last page of results.

Rendered pagination links (previous, numbered pages, next).

next_page_url
string | null

The URL of the next page, or null if this is the last page.

path
string

The endpoint URL without query parameters.

per_page
integer

The number of records requested per page.

Example:

30

prev_page_url
string | null

The URL of the previous page, or null if this is the first page.

to
integer | null

The 1-indexed position of the last record in data for this page. Null when the page is empty.

Example:

30

total
integer

The total number of records across all pages.

Example:

97