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 endpoints below are relative to it. 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 refresh token in the body; the access token in the header is optional but recommended.

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.

MCP server

The endpoint speaks the MCP Streamable HTTP transport and is meant for an MCP client, not for direct calls. Its tools cover the same operations as this reference; see MCP server. A missing or invalid credential returns 401 Unauthorized.

Error responses