Skip to main content

API reference

This manual reference describes the endpoints used by consumer-application owners. LPData does not publish an OpenAPI specification in this version. The API base URL is https://api.lpdata.io; the examples use it through the LPDATA_API_URL variable. Detailed examples are available in the Authentication, Landing Pages, and Assets guides.

Authentication

Endpoints marked as authenticated require Authorization: Bearer <access_token>. Sign-up and sign-in do not require a token. POST /auth/refresh accepts the refresh token in the body. DELETE /auth/sign_out requires the access token in the header and the refresh token in the body.

Landing Pages

current_data contains the Content Document defined by the application. When you send this field in a PATCH, the entire document is replaced. Use id in authenticated routes and public_id for public reads. Public reads return the JSON directly, without a wrapper.

Assets

All Asset routes require a Bearer token. Uploads use multipart form data in the asset[file] field.

Error responses