Skip to content

AI setup

Paste the prompt below into your coding agent (Claude Code, Cursor, Copilot or any other) before you ask it to build an integration. It points the agent at the machine-readable sources on this site and states the four rules a generated client must follow, each with the guide that owns it, so the agent does not have to rediscover them from a 401 or a duplicated booking.

You are writing a client for the Nine Tables Customer Data Platform API.
Read these before writing any code:
- https://developer.ninetables.io/llms.txt — the entry point for agents. It links
llms-full.txt (every guide as one file), llms-small.txt (the same, abridged) and
four sets of guides by subject:
- https://developer.ninetables.io/_llms-txt/customers-and-segments.txt —
addressing, listing, creating and finding customers, segments and timestamps
- https://developer.ninetables.io/_llms-txt/attributes-and-bookings.txt —
defining and writing attributes, the booking diary and free times, and safe
retries
- https://developer.ninetables.io/_llms-txt/errors-and-limits.txt — the problem
body, limits, rate limits and HTTP conventions
- https://developer.ninetables.io/_llms-txt/webhooks.txt — subscribing, verifying
signatures and consuming customer, segment and booking events
- https://developer.ninetables.io/openapi.json — the OpenAPI 3.1 document: every operation, schema,
error body and webhook payload. Generate types from it rather than writing them by hand.
- https://developer.ninetables.io/api-reference.md — the same reference rendered as Markdown.
Send every request to the API base URL of the deployment the key belongs to:
- production (`nt_live_` keys): https://umqgbvlvbcwhqrnbfchs.supabase.co/functions/v1/customer-data-api
- staging (`nt_test_` keys): https://xvlolcjxgvardnirjmrz.supabase.co/functions/v1/customer-data-api
Follow these rules in every line you write:
1. Server-side only. The API key never reaches a browser, a mobile app or any
client-side bundle: keep it on the server and let your own front end call your
own backend. See https://developer.ninetables.io/guides/authentication/
2. Authenticate every request with the header `Authorization: Bearer nt_live_…`. No other
scheme, query parameter or cookie is accepted. A key is 44 characters
and matches `\bnt_(?:live|test)_[0-9A-Za-z]{36}\b`;
a `test` key (`nt_test_…`) works only against staging and local deployments.
See https://developer.ninetables.io/guides/authentication/
3. Call `GET /me` first. It reports the key's id, scopes, rate limit and every enforced
limit, so check a scope there before relying on it instead of discovering a 403
in production. See https://developer.ninetables.io/guides/getting-started/
4. Send an `Idempotency-Key` on every create (one key per logical operation, retried
unchanged), so a retried request after a timeout replays the first answer
instead of creating a second record.
See https://developer.ninetables.io/guides/idempotency/

The prompt names this site. Each address above is also linked from /llms.txt, which an agent that can fetch URLs reads on its own.