publish_page
Publish a page
Publish a new web page and get its public URL. Content is Markdown (GFM: tables, task lists, code fences) or HTML (sanitized: no scripts, forms or iframes; inline styles and <style> allowed). Returns the URL to show the user, plus live_url on Pro: a private live view that shows each update the moment it's made, for people the owner invites from the dashboard. Pages are public to anyone with the link. Publish only content the user asked for; to test the connection, call get_account instead of publishing.
Parametersslugthemetitlerequiredbylineformatcontentrequiredexpires_in_hours
Replace the title, content, theme, byline, slug or expiry of a page you own. Omitted fields are kept. A new slug (Pro, or a minted page) changes the URL: the old link then shows 'revoked' and can't be reused. Minted pages stay permanent (expires_in_hours is ignored). Requires an API key (guest pages can't be edited).
Parametersslugthemetitlebylineformatcontentpage_idrequiredexpires_in_hours
mint_page
Make a page permanent (spends a mint)
Make one page permanent with one mint: it never expires, loses the MintPage badge, gets Pro limits (2 MB, custom slug via update_page, indexable) and stops counting toward the live-page limit. Costs 1 mint from the account's balance, once per page; no charge if the page is already minted or the account is on Pro (already permanent). Mints come in a Peppermint pack (10 for $5, one-time, never expire) at https://mintpage.ai/billing. It spends a paid credit, so only call it when the user asked for the page to stay up. Requires an API key.
Parameterspage_idrequired
List the pages in this account (newest first) with URLs, view counts and expiry. Requires an API key.
Takes no parameters.
Permanently take a page offline. The URL will show 'This page was removed'. Irreversible — confirm with the user first. Requires an API key.
Parameterspage_idrequired
pause_page
Pause or resume a page
Temporarily hide a page (paused: true) or bring it back (paused: false). While paused, the URL shows 'This page is paused' to everyone except the signed-in owner; nothing is deleted and the URL doesn't change. Requires an API key.
Parameterspausedpage_idrequired
revoke_link
Revoke a page link
Turn off a page's current link and give it a new random one, e.g. when the link reached the wrong people. The old URL shows 'This link was revoked' forever; content, stats and page_id are kept. Share the new url only with the right people. Requires an API key.
Parameterspage_idrequired
View count, last viewed time and a 30-day daily breakdown for a page you own. Requires an API key.
Parameterspage_idrequired
get_account
Check account and limits
Show the current plan, usage against limits, and where to upgrade or get a key. Works for guests too.
Takes no parameters.