Settings API
Password protection and expiring links via /api/v1/pages/[slug]/settings.
Last updated June 2, 2026
Manage per-page settings without opening the dashboard UI.
Get settings
GET /api/v1/pages/[slug]/settings
{
"passwordProtected": false,
"expiresAt": null,
"isPublic": true
}
Update settings
PATCH /api/v1/pages/[slug]/settings
| Field | Type | Description |
|---|---|---|
password | string | Set a view password (min 4 chars) |
clearPassword | boolean | Remove password protection |
expiresAt | string | null | ISO expiry or null to clear |
Example
curl -X PATCH https://htmldrop.in/api/v1/pages/my-page/settings \
-H "Authorization: Bearer hd_live_…" \
-H "Content-Type: application/json" \
-d '{"password": "preview2026"}'
When plan enforcement is enabled, password and expiring links require Pro.