Documentation
Documentation menu

Password protection

Require visitors to enter a shared password before opening the project.

Set or change a password

Choose accessMode: "password" and send a nonempty password without a colon. Enabling this mode is supported on Solo, Pro, and Pro Max plans.

curl --fail-with-body -X PUT https://ext.tiiny.host/v1/upload \
  -H "x-api-key: $TIINY_API_KEY" \
  -F 'domain=example.tiiny.site' \
  --form-string 'settings={"accessMode":"password","password":"replace-with-a-strong-password"}'

Send the hostname of an owned project. This settings-only request keeps its hosted files. See Project settings for the full request and validation rules. Open the link in a private browser session to check the gate. Share the password separately from the link.

Remove protection

Send {"accessMode":"public"} in settings. This makes the project accessible to anyone with the link. Errors can include PASSWORD_REQUIRED, INVALID_PASSWORD, and FEATURE_NOT_IN_PLAN.

Search documentation