API документация

Всичко, което сървърът предлага по HTTP, генерирано от същия код, който го обслужва. Документът за машини е на /v1/openapi.json.

Удостоверяване и грешки

Заявките с API ключ на обекта и заявките на вписан потребител изпращат токена като „Authorization: Bearer …“. Грешките са application/problem+json със стабилно поле code.

Публични

GET /healthz

Liveness and database check

Отговори

Статус Описание Тяло Заглавия
200 Success StatusResponse
400 The request is malformed Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/openapi.json

The API contract

Отговори

Статус Описание Тяло Заглавия
200 Success
400 The request is malformed Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/register

Register an owner account

Тяло на заявката

RegisterRequest

Отговори

Статус Описание Тяло Заглавия
201 Success RegisterResponse
400 The request is malformed Problem
409 The request conflicts with the current state Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/login

Sign in with email and password; creates a named device session

Тяло на заявката

LoginRequest

Отговори

Статус Описание Тяло Заглавия
200 Success TokenResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/register/confirm

Confirm the email of a new account from the emailed link; the account can sign in afterwards

Тяло на заявката

EmailConfirm

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/register/resend

Email a new confirmation link to an account that has not confirmed yet (always answers 202)

Тяло на заявката

ResendConfirmation

Отговори

Статус Описание Тяло Заглавия
202 Success
400 The request is malformed Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/refresh

Exchange a refresh token for new tokens (rotating)

Тяло на заявката

RefreshRequest

Отговори

Статус Описание Тяло Заглавия
200 Success TokenResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/email/confirm

Confirm a new email address with the link sent to it; no sign-in needed

Тяло на заявката

EmailConfirm

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
409 The request conflicts with the current state Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/password-reset

Email a password reset link (always answers 202)

Тяло на заявката

ResetRequest

Отговори

Статус Описание Тяло Заглавия
202 Success
400 The request is malformed Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/password-reset/confirm

Set a new password from a reset link; signs out everywhere

Тяло на заявката

ResetConfirm

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/invites/accept

Accept a worker invite: choose a password, or give the existing password if the email already has an account

Тяло на заявката

AcceptInvite

Отговори

Статус Описание Тяло Заглавия
201 Success StatusResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
409 The request conflicts with the current state Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

С API ключ на обекта

GET /v1/place

Read place settings

Отговори

Статус Описание Тяло Заглавия
200 Success PlaceView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/place

Replace place settings

Параметри

Име Къде Тип Задължително Описание
If-Match header string не The version from a read's ETag; a stale one gives 412

Тяло на заявката

PlaceInput

Отговори

Статус Описание Тяло Заглавия
200 Success PlaceView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
412 The If-Match version is stale Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/slot-types

List slot types

Параметри

Име Къде Тип Задължително Описание
limit query integer не Page size, 1 to 200 (default 50)
cursor query string не The next_cursor of the previous page
updated_since query string не Only records changed since this ISO-8601 instant

Отговори

Статус Описание Тяло Заглавия
200 Success SlotTypesPage
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/slot-types

Create a slot type

Тяло на заявката

SlotTypeInput

Отговори

Статус Описание Тяло Заглавия
201 Success SlotTypeView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/slot-types/{slotTypeId}

Read a slot type

Параметри

Име Къде Тип Задължително Описание
slotTypeId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success SlotTypeView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/slot-types/{slotTypeId}

Replace a slot type

Параметри

Име Къде Тип Задължително Описание
slotTypeId path integer да
If-Match header string не The version from a read's ETag; a stale one gives 412

Тяло на заявката

SlotTypeInput

Отговори

Статус Описание Тяло Заглавия
200 Success SlotTypeView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
412 The If-Match version is stale Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/slot-types/{slotTypeId}

Delete a slot type (soft; existing bookings keep their snapshot)

Параметри

Име Къде Тип Задължително Описание
slotTypeId path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/workers

List workers

Параметри

Име Къде Тип Задължително Описание
limit query integer не Page size, 1 to 200 (default 50)
cursor query string не The next_cursor of the previous page
updated_since query string не Only records changed since this ISO-8601 instant

Отговори

Статус Описание Тяло Заглавия
200 Success WorkersPage
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/workers

Create a worker

Тяло на заявката

WorkerInput

Отговори

Статус Описание Тяло Заглавия
201 Success WorkerView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/workers/{workerId}

Read a worker

Параметри

Име Къде Тип Задължително Описание
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success WorkerView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/workers/{workerId}

Replace a worker's name and email

Параметри

Име Къде Тип Задължително Описание
workerId path integer да
If-Match header string не The version from a read's ETag; a stale one gives 412

Тяло на заявката

WorkerInput

Отговори

Статус Описание Тяло Заглавия
200 Success WorkerView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
412 The If-Match version is stale Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/workers/{workerId}

Delete a worker (soft; removes their login)

Параметри

Име Къде Тип Задължително Описание
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/workers/{workerId}/slot-types

Replace the slot types a worker accepts

Параметри

Име Къде Тип Задължително Описание
workerId path integer да

Тяло на заявката

AcceptedInput

Отговори

Статус Описание Тяло Заглавия
200 Success WorkerView
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/workers/{workerId}/unlink

Unlink the worker's account so the record can be handed over

Параметри

Име Къде Тип Задължително Описание
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/workers/{workerId}/schedule

Read a worker's weekly template and dated exceptions

Параметри

Име Къде Тип Задължително Описание
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success ScheduleBody
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/workers/{workerId}/schedule

Replace a worker's schedule

Параметри

Име Къде Тип Задължително Описание
workerId path integer да

Тяло на заявката

ScheduleBody

Отговори

Статус Описание Тяло Заглавия
200 Success ScheduleBody
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/workers/{workerId}/invite

Email the worker an invite link (the owner's own email links directly)

Параметри

Име Къде Тип Задължително Описание
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
202 Success
200 Success StatusResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
409 The request conflicts with the current state Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/availability

Search offered start times for a slot type, for one worker or all

Параметри

Име Къде Тип Задължително Описание
from query string да Start of the range, ISO-8601 UTC instant
to query string да End of the range, exclusive; at most 31 days after from
slot_type_id query integer да The slot type to search
worker_id query integer не Limit to one worker; omit for any worker

Отговори

Статус Описание Тяло Заглавия
200 Success OffersResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/bookings

Create a booking (Idempotency-Key supported)

Параметри

Име Къде Тип Задължително Описание
Idempotency-Key header string не 1 to 200 characters; repeating the same request returns the original result

Тяло на заявката

BookingInput

Отговори

Статус Описание Тяло Заглавия
201 Success BookingView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
409 The request conflicts with the current state Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/bookings

List bookings (filters, cursor paging, updated_since); by external_id for booking keys

Параметри

Име Къде Тип Задължително Описание
from query string не Only bookings starting at or after this instant
to query string не Only bookings starting before this instant
status query string (confirmed, canceled) не Filter by status
worker_id query integer не Only this worker
external_id query string не The booker's external id
updated_since query string не Only records changed since this ISO-8601 instant
limit query integer не Page size, 1 to 200 (default 50)
cursor query string не The next_cursor of the previous page

Отговори

Статус Описание Тяло Заглавия
200 Success BookingsPage
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/bookings/{bookingId}

Read one booking

Параметри

Име Къде Тип Задължително Описание
bookingId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success BookingView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PATCH /v1/bookings/{bookingId}

Edit the booker's contact details and metadata (If-Match supported)

Параметри

Име Къде Тип Задължително Описание
bookingId path integer да
If-Match header string не The version from a read's ETag; a stale one gives 412

Тяло на заявката

BookingPatch

Отговори

Статус Описание Тяло Заглавия
200 Success BookingView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
412 The If-Match version is stale Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/bookings/{bookingId}/cancel

Cancel a booking (terminal; repeating is harmless)

Параметри

Име Къде Тип Задължително Описание
bookingId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success BookingView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

За вписан потребител

POST /v1/auth/logout

End this device session

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/auth/me

The signed-in user's profile

Отговори

Статус Описание Тяло Заглавия
200 Success MeResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/language

Choose the interface and email language (bg or en)

Тяло на заявката

LanguageRequest

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/auth/devices

List this user's device sessions

Отговори

Статус Описание Тяло Заглавия
200 Success DevicesResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/auth/devices/{id}

Revoke one device session

Параметри

Име Къде Тип Задължително Описание
id path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/confirm-password

Re-enter the password to allow sensitive actions for a few minutes

Тяло на заявката

PasswordRequest

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/password

Change the password (needs recent confirmation); signs out other devices

Тяло на заявката

NewPasswordRequest

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/auth/email

Ask to change the email (needs recent confirmation); the new address must confirm it with a link

Тяло на заявката

EmailRequest

Отговори

Статус Описание Тяло Заглавия
202 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
409 The request conflicts with the current state Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places

List the owner's places

Отговори

Статус Описание Тяло Заглавия
200 Success PlacesResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/places

Create a place

Тяло на заявката

PlaceInput

Отговори

Статус Описание Тяло Заглавия
201 Success PlaceView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/api-keys

List API keys (never the secret)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
limit query integer не Page size, 1 to 200 (default 50)
cursor query string не The next_cursor of the previous page

Отговори

Статус Описание Тяло Заглавия
200 Success KeysResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/places/{placeId}/api-keys

Create an API key; the secret is returned once

Параметри

Име Къде Тип Задължително Описание
placeId path integer да

Тяло на заявката

KeyInput

Отговори

Статус Описание Тяло Заглавия
201 Success CreatedKeyView
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/places/{placeId}/api-keys/{keyId}

Revoke an API key immediately

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
keyId path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/audit-log

Who did what (newest first, kept 12 months)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
limit query integer не Page size, 1 to 200 (default 50)
cursor query string не The next_cursor of the previous page

Отговори

Статус Описание Тяло Заглавия
200 Success AuditPage
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/places/{placeId}/my-worker

The owner adds themselves as a worker of their place (no invite)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да

Тяло на заявката

MyWorkerInput

Отговори

Статус Описание Тяло Заглавия
201 Success WorkerView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
409 The request conflicts with the current state Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/devices/push

Register or refresh this app's push token

Тяло на заявката

DeviceInput

Отговори

Статус Описание Тяло Заглавия
200 Success PushDeviceView
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/devices/push

List this user's push devices

Отговори

Статус Описание Тяло Заглавия
200 Success PushDevicesResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/devices/push/{id}

Remove a push device

Параметри

Име Къде Тип Задължително Описание
id path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/bookers/export

Export one booker's bookings and message history

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
email query string не Give exactly one of email, phone or external_id; a blank value counts as not given
phone query string не Give exactly one of email, phone or external_id; a blank value counts as not given
external_id query string не Give exactly one of email, phone or external_id; a blank value counts as not given

Отговори

Статус Описание Тяло Заглавия
200 Success BookerExport
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/places/{placeId}/bookers

Erase one booker's personal data now

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
email query string не Give exactly one of email, phone or external_id; a blank value counts as not given
phone query string не Give exactly one of email, phone or external_id; a blank value counts as not given
external_id query string не Give exactly one of email, phone or external_id; a blank value counts as not given

Отговори

Статус Описание Тяло Заглавия
200 Success AnonymisedResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/places/{placeId}

Delete a place and everything under it (needs password confirmation)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}

Read place settings

Параметри

Име Къде Тип Задължително Описание
placeId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success PlaceView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/places/{placeId}

Replace place settings

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
If-Match header string не The version from a read's ETag; a stale one gives 412

Тяло на заявката

PlaceInput

Отговори

Статус Описание Тяло Заглавия
200 Success PlaceView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
412 The If-Match version is stale Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/auth/account

Delete the owner account with all places (needs password confirmation)

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/slot-types

List slot types

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
limit query integer не Page size, 1 to 200 (default 50)
cursor query string не The next_cursor of the previous page
updated_since query string не Only records changed since this ISO-8601 instant

Отговори

Статус Описание Тяло Заглавия
200 Success SlotTypesPage
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/places/{placeId}/slot-types

Create a slot type

Параметри

Име Къде Тип Задължително Описание
placeId path integer да

Тяло на заявката

SlotTypeInput

Отговори

Статус Описание Тяло Заглавия
201 Success SlotTypeView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/slot-types/{slotTypeId}

Read a slot type

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
slotTypeId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success SlotTypeView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/places/{placeId}/slot-types/{slotTypeId}

Replace a slot type

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
slotTypeId path integer да
If-Match header string не The version from a read's ETag; a stale one gives 412

Тяло на заявката

SlotTypeInput

Отговори

Статус Описание Тяло Заглавия
200 Success SlotTypeView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
412 The If-Match version is stale Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/places/{placeId}/slot-types/{slotTypeId}

Delete a slot type (soft; existing bookings keep their snapshot)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
slotTypeId path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/workers

List workers

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
limit query integer не Page size, 1 to 200 (default 50)
cursor query string не The next_cursor of the previous page
updated_since query string не Only records changed since this ISO-8601 instant

Отговори

Статус Описание Тяло Заглавия
200 Success WorkersPage
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/places/{placeId}/workers

Create a worker

Параметри

Име Къде Тип Задължително Описание
placeId path integer да

Тяло на заявката

WorkerInput

Отговори

Статус Описание Тяло Заглавия
201 Success WorkerView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/workers/{workerId}

Read a worker

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success WorkerView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/places/{placeId}/workers/{workerId}

Replace a worker's name and email

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
workerId path integer да
If-Match header string не The version from a read's ETag; a stale one gives 412

Тяло на заявката

WorkerInput

Отговори

Статус Описание Тяло Заглавия
200 Success WorkerView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
412 The If-Match version is stale Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

DELETE /v1/places/{placeId}/workers/{workerId}

Delete a worker (soft; removes their login)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/places/{placeId}/workers/{workerId}/slot-types

Replace the slot types a worker accepts

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
workerId path integer да

Тяло на заявката

AcceptedInput

Отговори

Статус Описание Тяло Заглавия
200 Success WorkerView
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/places/{placeId}/workers/{workerId}/unlink

Unlink the worker's account so the record can be handed over

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/workers/{workerId}/schedule

Read a worker's weekly template and dated exceptions

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success ScheduleBody
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PUT /v1/places/{placeId}/workers/{workerId}/schedule

Replace a worker's schedule

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
workerId path integer да

Тяло на заявката

ScheduleBody

Отговори

Статус Описание Тяло Заглавия
200 Success ScheduleBody
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/places/{placeId}/workers/{workerId}/invite

Email the worker an invite link (the owner's own email links directly)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
workerId path integer да

Отговори

Статус Описание Тяло Заглавия
202 Success
200 Success StatusResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
409 The request conflicts with the current state Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/availability

Search offered start times for a slot type, for one worker or all

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
from query string да Start of the range, ISO-8601 UTC instant
to query string да End of the range, exclusive; at most 31 days after from
slot_type_id query integer да The slot type to search
worker_id query integer не Limit to one worker; omit for any worker

Отговори

Статус Описание Тяло Заглавия
200 Success OffersResponse
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/places/{placeId}/bookings

Create a booking (Idempotency-Key supported)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
Idempotency-Key header string не 1 to 200 characters; repeating the same request returns the original result

Тяло на заявката

BookingInput

Отговори

Статус Описание Тяло Заглавия
201 Success BookingView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
409 The request conflicts with the current state Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/bookings

List bookings (filters, cursor paging, updated_since); by external_id for booking keys

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
from query string не Only bookings starting at or after this instant
to query string не Only bookings starting before this instant
status query string (confirmed, canceled) не Filter by status
worker_id query integer не Only this worker
external_id query string не The booker's external id
updated_since query string не Only records changed since this ISO-8601 instant
limit query integer не Page size, 1 to 200 (default 50)
cursor query string не The next_cursor of the previous page

Отговори

Статус Описание Тяло Заглавия
200 Success BookingsPage
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

GET /v1/places/{placeId}/bookings/{bookingId}

Read one booking

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
bookingId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success BookingView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

PATCH /v1/places/{placeId}/bookings/{bookingId}

Edit the booker's contact details and metadata (If-Match supported)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
bookingId path integer да
If-Match header string не The version from a read's ETag; a stale one gives 412

Тяло на заявката

BookingPatch

Отговори

Статус Описание Тяло Заглавия
200 Success BookingView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
412 The If-Match version is stale Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/places/{placeId}/bookings/{bookingId}/cancel

Cancel a booking (terminal; repeating is harmless)

Параметри

Име Къде Тип Задължително Описание
placeId path integer да
bookingId path integer да

Отговори

Статус Описание Тяло Заглавия
200 Success BookingView ETag
400 The request is malformed Problem
401 The credential is missing, expired or wrong Problem
403 The credential is valid but may not do this Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

С връзка на клиента

GET /v1/booker/bookings/{token}

View a booking by its token

Параметри

Име Къде Тип Задължително Описание
token path string да

Отговори

Статус Описание Тяло Заглавия
200 Success BookerBookingView
400 The request is malformed Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/booker/bookings/{token}/reminders/opt-out

Stop reminder emails for this booking

Параметри

Име Къде Тип Задължително Описание
token path string да

Отговори

Статус Описание Тяло Заглавия
204 Success
400 The request is malformed Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

POST /v1/booker/bookings/{token}/cancel

Cancel by token; the place's cancel cutoff applies

Параметри

Име Къде Тип Задължително Описание
token path string да

Отговори

Статус Описание Тяло Заглавия
200 Success BookerBookingView
400 The request is malformed Problem
404 No such resource in the caller's scope Problem
422 A field is not acceptable Problem
429 Too many requests; see Retry-After Problem Retry-After

Схеми

AcceptInvite

Име Тип Задължително Описание
token string да
password string да

AcceptedInput

Име Тип Задължително Описание
slot_types array of AcceptedView да

AcceptedView

Име Тип Задължително Описание
slot_type_id integer да
duration_override_minutes integer or null не

AnonymisedResponse

Име Тип Задължително Описание
anonymised integer да

AppPlatform

android, ios

AuditEntryView

Име Тип Задължително Описание
id integer да
actor_kind string да
actor_id integer or null не
action string да
resource_type string да
resource_id integer or null не
details object да
at string да

AuditPage

Име Тип Задължително Описание
entries array of AuditEntryView да
next_cursor string or null не

BookerBookingView

Име Тип Задължително Описание
status string да
start string да
end string да
timezone string да
place_name string да
worker_name string да
slot_type_name string да
booker_name string да
can_cancel boolean да

BookerExport

Име Тип Задължително Описание
bookings array of BookingView да
messages array of MessageView да

BookerInput

The person who books. An email or a phone is required: give at least one of them.

Име Тип Задължително Описание
name string да
email string or null не Required when phone is not given.
phone string or null не Required when email is not given.
metadata object or null не
external_id string or null не
locale Language or null не

BookerView

Име Тип Задължително Описание
name string да
email string or null не
phone string or null не
metadata object да
external_id string or null не
locale string or null не

BookingInput

Име Тип Задължително Описание
slot_type_id integer да
start string да
worker_id integer or null не
booker BookerInput да

BookingPatch

Име Тип Задължително Описание
booker BookerInput да

BookingView

Име Тип Задължително Описание
id integer да
status string да
worker_id integer да
slot_type_id integer да
start string да
end string да
duration_minutes integer да
buffer_minutes integer да
booker BookerView да
updated_at string да
outside_working_hours boolean or null не
booker_token string or null не

BookingsPage

Име Тип Задължително Описание
bookings array of BookingView да
next_cursor string or null не

CreatedKeyView

Име Тип Задължително Описание
id integer да
secret string да
label string да
kind string да

DeviceInput

Име Тип Задължително Описание
token string да
platform AppPlatform да
app_version string да
locale Language or null не
enabled boolean не
opt_out array of PushKind не

DeviceView

Име Тип Задължително Описание
id string да
name string да
platform string да
created_at string да
last_used_at string да

DevicesResponse

Име Тип Задължително Описание
devices array of DeviceView да

EmailConfirm

Име Тип Задължително Описание
token string да

EmailRequest

Име Тип Задължително Описание
email string да

FieldError

Име Тип Задължително Описание
field string да
code string да
message string or null не

KeyInput

Име Тип Задължително Описание
label string да
kind KeyKind да
expires_at string or null не

KeyKind

management, booking

KeyView

Име Тип Задължително Описание
id integer да
label string да
kind string да
prefix string да
last_four string да
created_at string да
last_used_at string or null не
expires_at string or null не
revoked_at string or null не

KeysResponse

Име Тип Задължително Описание
api_keys array of KeyView да
next_cursor string or null не

Language

bg, en

LanguageRequest

Име Тип Задължително Описание
language Language да

LoginRequest

Име Тип Задължително Описание
email string да
password string да
device_name string да
platform Platform не

MeResponse

Име Тип Задължително Описание
user_id integer да
role string да
email string да
language string да
worker_ids array of integer да

MessageView

Име Тип Задължително Описание
kind string да
channel string да
recipient string да
status string да
at string да

MyWorkerInput

Име Тип Задължително Описание
name string да

NewPasswordRequest

Име Тип Задължително Описание
new_password string да

OfferView

Име Тип Задължително Описание
start string да
worker_ids array of integer да

OffersResponse

Име Тип Задължително Описание
offers array of OfferView да

PasswordRequest

Име Тип Задължително Описание
password string да

PlaceInput

Име Тип Задължително Описание
name string да
timezone string да
default_language Language не
min_notice_hours integer не
booking_window_days integer не
cancel_cutoff_hours integer не
reminder_offset_hours integer не

PlaceView

Име Тип Задължително Описание
id integer да
name string да
timezone string да
default_language string да
min_notice_hours integer да
booking_window_days integer да
cancel_cutoff_hours integer да
reminder_offset_hours integer да

PlacesResponse

Име Тип Задължително Описание
places array of PlaceView да

Platform

web, android, ios

Problem

Име Тип Задължително Описание
type string да
title string да
status integer да
code string да
detail string or null не
errors array of FieldError не
store_url string or null не

PushDeviceView

Име Тип Задължително Описание
id integer да
platform string да
token string да
app_version string да
locale string or null не
enabled boolean да
opt_out array of string да

PushDevicesResponse

Име Тип Задължително Описание
devices array of PushDeviceView да

PushKind

new_booking, cancellation, outside_hours

RefreshRequest

Име Тип Задължително Описание
refresh_token string да

RegisterRequest

Име Тип Задължително Описание
email string да
password string да

RegisterResponse

Име Тип Задължително Описание
user_id integer да

ResendConfirmation

Име Тип Задължително Описание
email string да

ResetConfirm

Име Тип Задължително Описание
token string да
new_password string да

ResetRequest

Име Тип Задължително Описание
email string да

ScheduleBody

Име Тип Задължително Описание
weekly map of array of TimeRange не Keys: monday to sunday.
exceptions map of array of TimeRange не Keys: ISO dates such as 2030-01-07; an empty list is time off.

SlotTypeInput

Име Тип Задължително Описание
name string да
duration_minutes integer да
buffer_minutes integer не
reminder_offset_hours integer or null не
reminders_disabled boolean не

SlotTypeView

Име Тип Задължително Описание
id integer да
name string да
duration_minutes integer да
buffer_minutes integer да
reminder_offset_hours integer or null не
reminders_disabled boolean да
deleted boolean or null не

SlotTypesPage

Име Тип Задължително Описание
slot_types array of SlotTypeView да
next_cursor string or null не

StatusResponse

Име Тип Задължително Описание
status string да

TimeRange

Име Тип Задължително Описание
start string да Local time, 24-hour HH:mm. Must be before end.
end string да Local time, 24-hour HH:mm. Must be after start.

TokenResponse

Име Тип Задължително Описание
access_token string да
token_type string не
expires_at string да
refresh_token string or null не
refresh_expires_at string or null не

WorkerInput

Име Тип Задължително Описание
name string да
email string or null не

WorkerView

Име Тип Задължително Описание
id integer да
name string да
email string or null не
has_login boolean да
slot_types array of AcceptedView да
deleted boolean or null не

WorkersPage

Име Тип Задължително Описание
workers array of WorkerView да
next_cursor string or null не