Publish a page in one request
Updated 2026-10-06
In short
Upload HTML, set a title, choose a slug. Your page is live in seconds.
Before you start
You need an API key. Generate one from your dashboard settings; full API access is available on the Pro plan.
The request
curl -X POST https://api.leadpages.com/api/pages \
-H "Authorization: Bearer lp_your_api_key" \
-H "Content-Type: multipart/form-data" \
-F "[email protected]" \
-F "title=Spring Sale Landing Page" \
-F "slug=spring-sale"The response
{
"id": "pg_a1b2c3d4e5",
"slug": "spring-sale",
"title": "Spring Sale Landing Page",
"url": "https://leadpages.com/p/spring-sale",
"status": "published",
"createdAt": "2026-03-25T12:00:00Z"
}