Services and Specialists

Create and change the services you sell and the people who perform them

Seven tools let an agent manage the services and specialists that bookings use. They change the same Library your team edits in the app, with the same rules.

Every tool takes an optional orgId. Leave it out unless your key acts on other organisations. An id outside the target organisation behaves exactly like a missing one.

Services and Specialists - 7

ToolScopeDoes
create_serviceSERVICES_WRITECreate a bookable service.
update_serviceSERVICES_WRITEChange a service.
delete_serviceSERVICES_WRITEDelete a service.
set_service_specialistsSERVICES_WRITEReplace who performs a service.
create_specialistSERVICES_WRITECreate a specialist.
update_specialistSERVICES_WRITEChange a specialist.
delete_specialistSERVICES_WRITEDelete a specialist.

To read services and specialists, use list_services and list_specialists with SERVICES_READ. See Bookings. SERVICES_READ does not let a key write.

Services

create_service needs name and durationMinutes. It returns the service, and its id is the serviceRef that list_services and find_slots use. update_service takes serviceId and the fields to change.

FieldTypeLimit
namestring1 to 80 characters
descriptionstringUp to 1000 characters
durationMinutesnumber5 to 480
bufferMinutesnumber0 to 240
minNoticeMinutesnumber0 to 43200
pricenumberMinor units (cents), 0 to 1000000000
currencystringISO 4217 code in capitals, such as EUR
availabilityobject{ tz, schedule: [{ days, start, end }] }. days are 0 (Sunday) to 6 (Saturday), times are HH:MM. Replaces the whole schedule.
blackoutsarray{ startDate, endDate, reason? } as YYYY-MM-DD, end inclusive. Replaces the whole list.
specialistIdsstring[]Who performs it. [] means nobody in particular: the shared business agenda.
parallelbooleanWhether bookings can overlap.
capacitynumber1 to 500 people per start.
maxSeatsPerBookingnumber1 to 50.
activebooleanWhether the service is offered.
bookablebooleanWhether it can be booked.

On update_service, a field you leave out stays as it is. Send null to clear description, price, currency or availability.

set_service_specialists takes serviceId and specialistIds and replaces the list exactly.

Specialists

create_specialist needs name. It returns the specialist, and its id is the specialistId of find_slots and create_booking. update_specialist takes specialistId and the fields to change.

FieldTypeLimit
namestring1 to 80 characters
titlestringUp to 80 characters
descriptionstringUp to 1000 characters
colorstring#RRGGBB
availabilityobjectAs on services.
blackoutsarrayAs on services.
activebooleanWhether the person is offered.

Linking calendars to a specialist is done in the app by owners and admins, not through these tools. See Services and specialists.

On update_specialist, a field you leave out stays as it is. Send null to clear title, description, color or availability.

Deleting

delete_service and delete_specialist delete softly: past bookings keep their reference.

A delete is refused while the service or specialist has upcoming confirmed or pending bookings. Repeat the call with force: true to delete anyway. The bookings stay in place and are not cancelled.

The result is { deleted: true, upcomingBookingsLeft }. delete_specialist also returns servicesLeftWithoutSpecialist, the services that lost their last performer. Those book on the shared business agenda.

Was this page helpful?

On this page