Share Site Access
share_site_accessCreate an approval link so another person and their AI agent can run one domain's website without account access; the owner approves it on Porkbun, then shares a site-only link or QR code.
Instructions
Ask to let someone else, and the AI agent they use, run ONE domain's website (Cloud for WordPress, static hosting or Link in Bio) without giving them the account. Nothing is shared by this call: it returns an approveUrl that the account holder must open on porkbun.com and approve. Give them that link and say so plainly. After they approve, that page shows a share link and QR code to send to the other person (it opens a page with a handoff prompt for their AI assistant), and list_site_shares returns the link for this share. What the other person gets: the site permission on that domain only. They can run the site (WordPress via create_wp_credentials, files, Link in Bio, backups and restores, staging, PHP/WordPress versions, SSL), but cannot buy, cancel the hosting, change DNS, or see the rest of the account. The link works once, within claim_hours of approval; with access_hours the access then ends on its own that long after they connect (otherwise it lasts until revoked). The account holder is emailed when it is claimed and can end it with revoke_site_share or by deleting the key at https://porkbun.com/account/api.
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": {
"domain": "<domain>",
"shared_with": "<shared_with>"
},
"name": "share_site_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The domain whose website to share, e.g. `example.com`. It must have hosting or a Link in Bio page. | |
| dry_run | No | Check the domain can be shared without creating anything. | |
| claim_hours | No | How long the link works once approved, 1-168 hours (default 24). | |
| shared_with | Yes | Who it is for, e.g. `Sarah`. Shown to the account holder when approving and to the other person on the share page. | |
| access_hours | No | How long the access itself lasts once they connect, in hours (e.g. 48 for two days). Leave out for access until it is revoked. Ask the user if they mention a time limit. |