Connect your application to LPData
The workflow has two parts: you manage content with an authenticated account, and your consumer application fetches published content using the Landing Page’s Public ID.API URL
The LPData API is available athttps://api.lpdata.io. Every endpoint in this documentation starts from this base URL.
Sign in and get a token
Create an account withPOST /auth/sign_up or sign in with POST /auth/sign_in. The response contains an access token and a refresh token. See Authentication for the full token lifecycle.
access_token in the Authorization: Bearer <access_token> header of authenticated operations.
Do not put credentials or tokens in public source code or share them. Management operations can only change resources owned by the authenticated user.
Create a Landing Page
Send the Content Document expected by your application. LPData preserves its JSON structure; your application defines how to present that content.id for management and a stable public_id for reads by the consumer application. Use public_id in the public URL; the two identifiers are not interchangeable.
Read published content
The consumer application reads the Content Document without authentication. The response is the document JSON itself, without a wrappinglanding_page object: