Need help? You’ve come to the right place

What’s New Getting Started Building Integrating Publishing Glorify HTMLPub New Leadpages

[HTMLPub] Using API Keys

Last Updated

What are API keys?

API keys let you publish, update, and manage pages programmatically — without logging in through a browser. Use them in scripts, CI/CD pipelines, custom integrations, or AI agents.

Pro plan required. API keys are available on the Pro plan. If you're on a Free or Starter plan, upgrade to unlock this feature.

Finding your API keys

Go to Dashboard → Settings → API Keys, or navigate directly to /dashboard/api-keys.

API Keys page showing the Create Key form and empty state

Creating an API key

  1. Enter a descriptive name for the key (up to 64 characters). For example: GitHub Actions, Local Dev, Zapier Bot.
  2. Click Create Key.
  3. Your new key appears in a green confirmation card. Copy it now — it will never be shown again after you dismiss this dialog.
  4. Click Dismiss to close the card.

Limit: Each account can have up to 5 API keys at a time.

Using your API key

Pass the key as a Bearer token in the Authorization header of every request.

Publish or update a page

Use PUT /api/pages/{slug} to create or update a page. This endpoint is idempotent — calling it with the same slug will update an existing page rather than creating a duplicate.

curl -X PUT \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html":"<h1>Hello World</h1>"}' \
  https://htmlpub.com/api/pages/my-page

List your pages

curl -H "Authorization: Bearer YOUR_KEY" \
  https://htmlpub.com/api/pages

Delete a page

curl -X DELETE \
  -H "Authorization: Bearer YOUR_KEY" \
  https://htmlpub.com/api/pages/my-page

Managing your keys

The keys table shows each key's name, a short prefix (e.g. lp_abc1...), when it was last used, and when it was created.

To revoke a key, click the trash icon next to it. This action is permanent — any integrations using that key will immediately stop working.

Resources


Need more help?

You can always get in touch with our support team—just click Support in your Leadpages navigation menu, or submit a ticket ↗

Was this article helpful?
Powered by Zendesk