Password protect a site, or show, change or remove its password
protect_siteMakes a site private behind a password (flypod Pro), or shows its password again. With enabled true and no password, flypod makes a strong one (four words and a number) if the site has none, and otherwise keeps it. The result has the password, a share_url that opens the site without typing, and a curl line for scripts. Give the person the share_url (or the password). rotate makes a new password, which signs every device and link out. enabled false makes the site public again. Without Pro it fails with an upgrade link to show the person.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>"
},
"name": "protect_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rotate | No | True for a new generated password. | |
| enabled | No | True (default) to protect the site or show its password; false to make it public. | |
| site_id | Yes | The site_id returned by deploy_site, or listed by list_sites. | |
| password | No | A password of the person's own choosing, 8 characters or more. Omit to have flypod make one. | |
| manage_token | No | The manage_token returned by deploy_site for this site. Needed while the site is temporary; not needed for a site that belongs to the signed-in account. |