AlxixDocs

DocumentationDevelopers

REST API

Read and write your app’s data from anywhere, with your app’s own rules.

Every app has a REST API under /api/v1/apps/<app-id>. The same table access rules and roles that protect your pages protect the API.

Records

GET    /api/v1/apps/<app-id>/data/<table>          list
GET    /api/v1/apps/<app-id>/data/<table>/<id>     one record
POST   /api/v1/apps/<app-id>/data/<table>          create
PATCH  /api/v1/apps/<app-id>/data/<table>/<id>     update
DELETE /api/v1/apps/<app-id>/data/<table>/<id>     delete

Signing in

For data that needs a signed-in user, sign in with POST /api/v1/apps/<app-id>/auth/login (email and password) and send the returned token as Authorization: Bearer <token>.

Your own endpoints

In Professional mode, the API workspace lets you design endpoints with validated input and shaped responses, and shows the OpenAPI description of the whole API.