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.Set the API URL
The LPData API is available athttps://api.lpdata.io. The examples use this base URL, without a trailing slash:
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 for authenticated operations:
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: