nisebookings Sandbox API
The sandbox API from nisebookings — 1 operation(s) for sandbox.
The sandbox API from nisebookings — 1 operation(s) for sandbox.
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-sandbox-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 Sandbox 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: Sandbox
paths:
/api/sandbox:
parameters:
- $ref: '#/components/parameters/ApiVersion'
post:
tags:
- Sandbox
summary: Create a 24-hour sandbox account (no auth)
description: 'Returns a complete test account with sample data (2 staff, 3 services incl. a group class, one event)
with its public key and a management-API key (`nk_…`) that has every scope. The key is shown
once. The sandbox never delivers mail (read it via `GET /api/v1/outbox`), sends Mollie payments
to a fake checkout page, and is deleted after 24 hours or by `DELETE /api/v1/sandbox`.
Body: none or `{}`. Limits: 5 creates per client IP per hour, and a global cap on live sandboxes.
Management API and MCP reference: https://guide.nisebookings.com/api/'
operationId: createSandbox
responses:
'201':
description: Sandbox created
content:
application/json:
schema:
type: object
required:
- tenantId
- name
- publicKey
- apiKey
- scopes
- expiresAt
- endpoints
properties:
tenantId:
type: string
format: uuid
name:
type: string
examples:
- Sandbox 3fa2
publicKey:
type: string
description: Public key for /api/public/{key} and the widget `data-key`
apiKey:
type: string
description: Management API / MCP key, all scopes, shown once
scopes:
type: array
items:
type: string
expiresAt:
type: string
format: date-time
endpoints:
type: object
properties:
publicApi:
type: string
format: uri
managementApi:
type: string
format: uri
mcp:
type: string
format: uri
widget:
type: string
format: uri
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/SandboxRateLimited'
components:
responses:
NotFound:
description: Unknown key, service, event, package, payment or booking token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
SandboxRateLimited:
description: Too many sandboxes created from this IP (`rate_limited`) or globally (`capacity`).
headers:
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
enum:
- rate_limited
- capacity
message:
type: string
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'
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'
schemas:
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:
Retry-After:
description: Seconds until the rate-limit window resets. Sent on 429 only.
schema:
type: integer