Nine Tables Customer Data Platform API
What this document covers
Section titled “What this document covers”Each guide owns one subject, and every rule is stated on the guide that owns it. Read Getting a key and Getting started first; come back to the others by subject.
- Getting a key · who issues a key, what the Owner is asked for, which deployment it works against, and the base URL to send requests to.
- Getting started — the 7-step happy path · the shortest route from a key to a working integration. Start here.
- AI setup · a prompt to paste into the coding agent that writes your client.
- Authentication · what to send on every request, and who can mint a key.
- How the header is parsed — the two case rules behind an opaque 401
- Key lifecycle: issuance is deliberately outside this API
- CORS, and why keys still must not reach a browser
- Addressing, listing and creating customers · the ways to name a customer
or booking, listing, creating and finding customers, and attaching your own ids to ours.
resolvefinds a guest, and never creates one- One key per system per record
- Names you can discover, and what that means for yours
- Attributes: defining, archiving and writing them · the
definitions and categories values are written against, archiving rather than deleting them, and
the write form for each data type.
- Increment a counter rather than replace it
- Which
optionsconstrain a write, and which do not - Which characters a string may contain
- Archive, never delete
- Bookings, free times and restaurants · reading the diary, finding free
times, creating and changing bookings, and the restaurants they belong to.
- The guest comes first, and you will not create a second one
- A reservation does not need a table
- What this API does not check, and tells you about
- Loyalty club members · reading a guest’s membership, enrolling a
guest, and transferring members from another loyalty system, quietly.
- Dry run first
- Batches, rate limits and large transfers
- Segments & freshness · what a segment’s membership is, and when it moves.
- Webhooks · the events and their delivery bodies, when they arrive, managing subscriptions, retries and redelivery, and how to verify a signature.
- Timestamps · the one format emitted, what is accepted on the way in, and dates.
- Errors · the problem+json body, the per-field shape behind a 400, and which errors to retry.
- Limits and rate limits · the pinned limits, the two rate limits, and
Retry-After. - Idempotency · which operations take a key, and what a replay answers.
- HTTP conventions · the OpenAPI document and the
Linkheader, strict bodies, the JSON media type, exact paths,OPTIONS,HEADand versioning.
Glossary
Section titled “Glossary”- Tenant · the Nine Tables account your key belongs to; a restaurant is one venue inside it,
and one tenant can run several, each named by a
restaurant_id. - Guest record · one guest as Nine Tables stores them, the customer a
{customerRef}names; the venue’s staff call it a card. - Provisional guest · a guest record created because the details sent reached a profile whose
name disagreed, flagged for the venue to merge or keep apart (the
conflictverdict in Which guest, and why). - Records this API does not acknowledge · trashed, anonymised and demo customers and bookings, which answer 404 and are left out of every listing; see Records this API does not acknowledge.
- Reference deployment · the deployments Nine Tables hosts, at the base URLs in Getting a key; the guides name it where a behaviour belongs to the gateway in front of them rather than to this API.
- Watched member · a record field whose change raises an update event; the lists are under Webhooks.