nisebookings Availability API
The availability API from nisebookings — 2 operation(s) for availability.
The availability API from nisebookings — 2 operation(s) for availability.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nisebookings-com:nisebookings-com-availability-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: nisebookings — public Availability API
version: '2026-10-13'
summary: Hosted appointment booking, packages, waiting lists and event tickets.
description: 'Public, unauthenticated API for one business account, identified by its **public key** in the
path (Instellingen → Insluiten in the admin). Used by the embeddable widgets and by custom
front-ends. Test against a 24-hour sandbox: `POST https://app.nisebookings.com/api/sandbox`.
## Rules that matter
- All instants are ISO 8601 UTC. `from`/`until` are business-local calendar dates (`YYYY-MM-DD`).
- The server never trusts client amounts, staff, extras or persons: every request is re-resolved
and re-checked against the live schedule, then written transactionally with per-staff locks.
- Two customers can never book the same seat: the loser of a race receives `409 slot_unavailable`
with the 0-based index of the failing item.
- Send back the exact `start` (and `staffId`) that a slot search returned. Times are never
constructed client-side.
- CORS: the request `Origin` is reflected when the account''s allowed-websites list (`allowedOrigins`) is empty or
contains that origin; otherwise `403 origin_not_allowed`. `OPTIONS` is answered with 204.
- Responses are `Cache-Control: no-store`, except `GET services` (`public, max-age=60`).
- Retries: send an `Idempotency-Key` header on `POST bookings` and `POST tickets`. A retry with the
same key and body returns the original response (`Idempotent-Replayed: true`) instead of creating
a second order. Keys are kept 24 hours.
## Versioning and rate limits
- Send `X-Api-Version: 2026-10-13` to pin a version; omit it for the latest, which every response
echoes — except the unknown-version `400` itself. An unknown value is `400 bad_request` and lists
the supported `versions`.
- Per minute and per client IP: 120 requests, or 20 for booking commits (`POST bookings`,
`POST bookings/{token}/reschedule`, `POST uploads` and `POST tickets`); `OPTIONS` preflights have
their own bucket of 120. Over that is `429 rate_limited`. Counted responses carry `X-RateLimit-Limit`,
`X-RateLimit-Remaining` and `X-RateLimit-Reset` (epoch seconds); a 429 adds `Retry-After`
(seconds). The unknown-version `400` and `OPTIONS` preflights carry no rate-limit state.
- A breaking change ships as a new dated version; the old one stays supported for at least six
months, announced with `Deprecation` and `Sunset` headers.
- This document is served on the app origin as `GET /openapi.json`; the management API spec as
`GET /api/v1/openapi.json`.
Limits: 60 items per order, 10 chain parts, 52 recurrence occurrences, 31 days per slots call,
2000-character notes, 40-character coupon codes, 1–50 tickets per type (max 20 types).
Errors use stable `error` codes: `not_found`, `origin_not_allowed`, `validation`,
`slot_unavailable`, `sold_out`, `sales_closed`, `payment_unavailable`, `bad_request`,
`idempotency_in_progress`, `idempotency_mismatch`, `rate_limited`, `server`.'
license:
name: Proprietary
servers:
- url: https://app.nisebookings.com
tags:
- name: Availability
paths:
/api/public/{key}/slots:
parameters:
- $ref: '#/components/parameters/Key'
- $ref: '#/components/parameters/ApiVersion'
get:
tags:
- Availability
summary: Slot search for one item
description: 'Time slots for an ordinary service; for a day service (`durationDays` > 0) one entry per free
start date instead — `start` is the business-local midnight (with offset) and `end` the local
midnight `durationDays` days later. Send both back verbatim when booking.'
operationId: getSlots
parameters:
- name: service
in: query
required: true
schema:
type: string
format: uuid
- name: staff
in: query
description: Staff id, or `any` (default) to let the engine choose.
schema:
type: string
- name: from
in: query
description: Business-local date. Defaults to today.
schema:
type: string
format: date
- name: days
in: query
description: Number of days (1–31). Defaults to 7.
schema:
type: integer
minimum: 1
maximum: 31
default: 7
- name: persons
in: query
schema:
type: integer
minimum: 1
maximum: 1000
default: 1
responses:
'200':
description: Slots per day; `hasMore` says whether the booking horizon is beyond this window.
content:
application/json:
schema:
$ref: '#/components/schemas/SlotsResponse'
'400':
$ref: '#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/OriginNotAllowed'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/Validation'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
post:
tags:
- Availability
summary: Slot search for a chain or with holds
description: 'One item behaves like the GET search. More than one item searches a chain: consecutive
services for one customer; every returned slot then has `parts` with each resolved
appointment. `hold` items (already chosen by the customer) are treated as occupied and are
never joined.'
operationId: postSlots
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- items
properties:
items:
type: array
minItems: 1
maxItems: 10
items:
$ref: '#/components/schemas/ItemInput'
hold:
type: array
description: Items the customer already selected (with a concrete `staff` id).
maxItems: 60
items:
$ref: '#/components/schemas/ItemInput'
from:
type: string
format: date
days:
type: integer
minimum: 1
maximum: 31
default: 7
responses:
'200':
description: Slots per day
content:
application/json:
schema:
$ref: '#/components/schemas/SlotsResponse'
'400':
$ref: '#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/OriginNotAllowed'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/Validation'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
/api/public/{key}/recurrence:
parameters:
- $ref: '#/components/parameters/Key'
- $ref: '#/components/parameters/ApiVersion'
post:
tags:
- Availability
summary: Plan a recurring series
description: 'Returns the occurrence dates for a rule, with conflict handling: a moved occurrence has
`anotherTime: true`, an occurrence without any free time has `start: null`. Occurrences on a
full group slot come back with `state: "waitlist"` and must be booked with `waitlist: true`.
Requires the account to have recurrence enabled and the service to offer the frequency.'
operationId: postRecurrence
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- item
- rule
properties:
item:
allOf:
- $ref: '#/components/schemas/ItemInput'
- type: object
required:
- start
rule:
$ref: '#/components/schemas/RecurrenceRule'
hold:
type: array
items:
$ref: '#/components/schemas/ItemInput'
responses:
'200':
description: Occurrences in date order
content:
application/json:
schema:
type: object
required:
- occurrences
properties:
occurrences:
type: array
maxItems: 52
items:
$ref: '#/components/schemas/Occurrence'
'400':
$ref: '#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/OriginNotAllowed'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: The base item's slot is not available
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
$ref: '#/components/responses/Validation'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/ServerError'
components:
responses:
ServerError:
description: Unexpected server error (details are logged server-side only).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: Unknown key, service, event, package, payment or booking token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Validation:
description: Invalid input; `fields` names the offending fields.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
OriginNotAllowed:
description: The request `Origin` is not in the account's allowed websites (`allowedOrigins`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Unsupported `X-Api-Version` (`bad_request` with the supported `versions`), or a malformed `Idempotency-Key`.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
TooManyRequests:
description: 'Rate limit exceeded (`rate_limited`): 120 requests per minute per client IP, or 20 for booking
commits.
'
headers:
Retry-After:
$ref: '#/components/headers/Retry-After'
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Slot:
type: object
required:
- start
- time
- staffId
properties:
start:
type: string
description: ISO 8601 the server produced; send this back verbatim. UTC for a time slot, the business-local midnight (with offset) for a day service.
time:
type: string
description: Business-local `HH:MM`; `00:00` for a day service.
staffId:
type: string
format: uuid
end:
type: string
description: 'Day services only: local midnight `durationDays` calendar days after `start`; the booked span is `[start, end)`.'
occupied:
type: integer
description: Only when the account shows occupancy; never on a day slot.
capacity:
type: integer
description: Only when the account shows occupancy.
state:
type: string
enum:
- waitlist
description: Slot is full but a waiting list is open.
waiting:
type: integer
description: Persons already waiting (waitlist slots only).
parts:
type: array
description: Chain slots only — each resolved part.
items:
type: object
required:
- service
- staff
- start
properties:
service:
type: string
format: uuid
staff:
type: string
format: uuid
start:
type: string
RecurrenceRule:
type: object
required:
- freq
properties:
freq:
type: string
enum:
- daily
- weekly
- biweekly
- monthly
every:
type: integer
minimum: 1
maximum: 30
description: Interval.
'on':
type: array
description: ISO weekdays (1 = Monday) for weekly frequencies.
minItems: 1
maxItems: 7
items:
type: integer
minimum: 1
maximum: 7
monthly:
description: One of `day` (1–31; short months skip) or `nth` + `weekday`.
oneOf:
- type: object
required:
- day
properties:
day:
type: integer
minimum: 1
maximum: 31
- type: object
required:
- nth
- weekday
properties:
nth:
type: integer
enum:
- 1
- 2
- 3
- 4
- -1
weekday:
type: integer
minimum: 1
maximum: 7
until:
type: string
format: date
description: Capped at the booking horizon.
count:
type: integer
minimum: 1
maximum: 52
Occurrence:
type: object
required:
- date
- start
- time
- staffId
- anotherTime
properties:
date:
type: string
format: date
start:
type:
- string
- 'null'
description: null = no free time found for this occurrence.
time:
type:
- string
- 'null'
staffId:
type:
- string
- 'null'
format: uuid
anotherTime:
type: boolean
description: The preferred time was taken; this is a moved occurrence.
state:
type: string
enum:
- waitlist
SlotsResponse:
type: object
required:
- days
- hasMore
properties:
days:
type: array
description: Only days that have slots appear, in date order; days without free times are omitted.
items:
type: object
required:
- date
- slots
properties:
date:
type: string
format: date
slots:
type: array
items:
$ref: '#/components/schemas/Slot'
hasMore:
type: boolean
description: False when the window passed the account's booking horizon.
ItemInput:
type: object
required:
- service
properties:
service:
type: string
format: uuid
staff:
type:
- string
- 'null'
description: Staff id, or `any`/omitted to let the engine choose.
start:
type: string
description: ISO 8601 UTC, exactly as returned by a slot search. A day service returns it with the business offset (local midnight); send it back as-is.
end:
type: string
description: 'Day services only (`durationDays` > 0): the `end` of the same slot — local midnight `durationDays` calendar days after `start`. Send it back verbatim; the server re-checks the whole span. Ignored for other services.'
persons:
type: integer
minimum: 1
maximum: 1000
default: 1
extras:
type: object
description: Quantity per extra id; clamped server-side, mandatory extras added. A day service has no extras (any value → 422).
additionalProperties:
type: integer
minimum: 0
fields:
type: object
description: Answers to the service's intake questions, keyed by field id (see GET /services). A perPerson field sends an array with one entry per person; `textarea` is capped at 2000 and `text` at 500 characters, `date` is YYYY-MM-DD, and a `file` field sends the upload id from POST /uploads (unknown, another account's or already-used ids are 422). Unknown ids are ignored; a missing or wrong answer is 422 with the field id in `fields`.
additionalProperties: true
series:
type: string
pattern: ^[A-Za-z0-9_-]{1,64}$
description: Key linking this item to a rule in the order's `series` map.
waitlist:
type: boolean
description: Join the waiting list; cannot combine with `series` or `package`.
package:
type: string
pattern: ^[0-9a-f]{48}$
description: 'Token of a bought package; the visit is not paid. Requires `persons: 1`.'
kind:
type: string
enum:
- booking
- package
default: booking
description: '`package` buys a package itself (no `start`).'
Error:
type: object
required:
- error
properties:
error:
type: string
enum:
- not_found
- origin_not_allowed
- validation
- slot_unavailable
- cannot_reschedule
- sold_out
- sales_closed
- payment_unavailable
- plan_limit
- too_large
- bad_request
- idempotency_in_progress
- idempotency_mismatch
- rate_limited
- server
message:
type: string
description: 'Present for `plan_limit`: a sentence for the customer, in the account language.'
limit:
type: integer
description: 'Present for a reached booking limit (`plan_limit`): bookings per month.'
used:
type: integer
description: 'Present for a reached booking limit (`plan_limit`): bookings this month.'
payment:
type: boolean
description: Present for `plan_limit` when the subscription is read-only after a missed payment.
fields:
type: object
description: 'Present for `validation`. For the request''s own fields: a code (`invalid`, `required`, `too_long`;
`coupon` carries the coupon''s status, e.g. `expired`). For an intake question (keyed by its field id)
and for uploads: a message in the account language, ready to show.
'
additionalProperties:
type: string
item:
type: integer
description: 0-based index of the failing item.
min:
type: integer
description: 'Present with `fields.persons`: the fewest persons that fit.'
max:
type: integer
description: 'Present with `fields.persons`: the most persons that fit.'
type:
type: string
description: Ticket type id for `sold_out`.
versions:
type: array
description: Present for `bad_request` when `X-Api-Version` is unknown; the supported versions.
items:
type: string
example: '2026-10-13'
retryAfter:
type: integer
description: Present for `rate_limited` (429), same value as the `Retry-After` header.
headers:
X-RateLimit-Remaining:
description: Requests left in the current minute.
schema:
type: integer
X-RateLimit-Reset:
description: Epoch seconds when the current window resets.
schema:
type: integer
X-RateLimit-Limit:
description: Requests allowed per minute for this identity (client IP).
schema:
type: integer
Retry-After:
description: Seconds until the rate-limit window resets. Sent on 429 only.
schema:
type: integer
parameters:
ApiVersion:
name: X-Api-Version
in: header
required: false
description: Defaults to the latest version when omitted.
schema:
type: string
enum:
- '2026-10-13'
Key:
name: key
in: path
required: true
description: The account's public key, 1–64 chars of `[A-Za-z0-9_-]`.
schema:
type: string
pattern: ^[A-Za-z0-9_-]{1,64}$