List appointments in a date range.
List appointments in a date range.
GET
https://app.softsolz.uk/api/v1/services/appointments/appointmentsRecent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Headers
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Query Params
fromstringOnly appointments starting at or after this ISO timestamp.
tostringOnly appointments starting at or before this ISO timestamp.
statestringFilter by workflow state.
type_idintegerFilter by appointment type.
resource_idintegerOnly appointments this resource is assigned to.
customer_idintegerOnly appointments for this customer.
limitintegerPage size, 1-200.
offsetintegerPagination offset.
Response
Response Body · array of objects
idintegerUnique identifier.public_refstringShort reference safe to show a customer.type_idinteger | nullAppointment type this belongs to.plan_idinteger | nullMulti-visit plan this belongs to, when part of one.stage_sequenceinteger | nullPosition within the plan stages, when part of one.customer_idinteger | nullNull for group sessions, where people are listed as attendees instead.asset_idinteger | nullThe thing the visit is about, for example a vehicle or a property.state_keystringCurrent workflow state.titlestring | nullShort label shown on the calendar.starts_atstringStart of the appointment, in UTC.ends_atstringEnd of the appointment, in UTC.window_ends_atstring | nullEnd of the arrival window when the type uses one.timezonestringIANA timezone, for example Europe/London.location_modestringWhere the appointment happens.locationobjectAddress, coordinates, meeting URL, or phone number.capacityintegerPlaces available. 1 is one-to-one; above 1 enables group booking.sourcestringHow the appointment was created.price_centsinteger | nullPrice in the smallest currency unit.currencystring | nullISO 4217 currency code.intake_dataobjectAnswers to the appointment type intake questions.custom_fieldsobjectYour own extra fields, keyed by the definitions in workspace settings.assignmentsarray of objectsResources working this appointment.attendeesarray of objectsPeople booked onto a group session.created_atstringWhen the record was created.updated_atstringRound-trip as expected_updated_at to guard against stale writes.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.appointments.listAppointments({});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": [ { "id": 0, "public_ref": "string", "type_id": 0, "plan_id": 0, "stage_sequence": 0, "customer_id": 0, "asset_id": 0, "state_key": "string", "title": "string", "starts_at": "string", "ends_at": "string", "window_ends_at": "string", "timezone": "string", "location_mode": "string", "location": {}, "capacity": 0, "source": "string", "price_cents": 0, "currency": "string", "intake_data": {}, "custom_fields": {}, "assignments": [], "attendees": [], "created_at": "string", "updated_at": "string" } ]}