The REST API
Every table in your website is a REST endpoint at your website's address. Where the API lives, how to authenticate, the machine-readable description, and where calls are logged.
On this page
Every website has an API. The moment a table exists it is a full set of endpoints at your website's address, and every backend function you allow can be called the same way. Use it to connect your other tools or feed data in from elsewhere.
Where it lives
Every endpoint lives under /api at your website's own address, for example https://<your app address>/api/entities/Booking. It answers on a custom domain you connect, too. The API tab shows your website's address as the Base URL and lists every endpoint under What your API answers. The API answers once the website is published; keys you make beforehand keep working.
Authentication
Send your key in an X-Api-Key header on every request. Authorization: Bearer <key> works too.
curl https://<your app address>/api/entities/Booking \
-H "X-Api-Key: pxa_sk_..."There are two kinds of key. A secret key (pxa_sk_) belongs on a server and reads and writes everything. A publishable key (pxa_pk_) is safe in a page and reads public tables only. See API keys.
Check a key
GET /api/whoami describes the key you sent without touching data: its key_id, kind, name, scope and expires_at, the tables it may reach (entities, each with name, read and write), and the app it belongs to (name and base_url).
The machine-readable description
GET /api/openapi.json returns an OpenAPI 3.1 document for your website as your key sees it: every entity, every field with its type, every endpoint and every error. Import it into an API client or hand it to a code generator. On the API tab, Copy for AI copies a description you can paste into an AI assistant so it can write the integration for you.
What the API covers
What every answer carries
Answers to a request with a valid key carry these headers:
X-Request-Id: quote it when asking about a call. It is the id in the website's call log.X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset: your allowance in the current window.X-RateLimit-Resetis a Unix time in seconds.- An
ETagon single records, for conditional reads and safe updates.
What went wrong? Pick any that apply.
That didn't send. Try again in a moment.