{"openapi":"3.1.0","info":{"title":"VPSLY Hosting API","version":"1.0.1","description":"Manage websites, domains, DNS, email administration, databases and hosting services. API tokens are scoped to the authenticated account."},"servers":[{"url":"\/api","description":"Current VPSLY panel"}],"security":[{"bearerAuth":[]}],"paths":{"\/dashboard":{"get":{"summary":"Control-plane summary","responses":{"200":{"description":"Statistics, health, websites, domains, and activity"}}}},"\/github":{"get":{"summary":"Read the current account's GitHub connection status","responses":{"200":{"description":"Connection status and OAuth callback URL"}}}},"\/github\/connect-url":{"get":{"summary":"Begin GitHub OAuth authorization","responses":{"200":{"description":"GitHub authorization URL"},"422":{"description":"GitHub OAuth app is not configured"}}}},"\/github\/token":{"post":{"summary":"Connect GitHub using a personal access token","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["access_token"],"properties":{"access_token":{"type":"string","format":"password"}}}}}},"responses":{"200":{"description":"GitHub account connected; token is never returned"}}}},"\/github\/repositories":{"get":{"summary":"List repositories available to the connected GitHub account","responses":{"200":{"description":"Up to 100 recently updated repositories"}}}},"\/github\/branches":{"get":{"summary":"List branches for a connected GitHub repository","parameters":[{"in":"query","name":"repository","required":true,"schema":{"type":"string","example":"owner\/repository"}}],"responses":{"200":{"description":"Repository branches"}}}},"\/github\/connection":{"delete":{"summary":"Disconnect the current account's GitHub connection","responses":{"200":{"description":"GitHub connection removed"}}}},"\/domains\/{domain}\/mail-api":{"parameters":[{"$ref":"#\/components\/parameters\/DomainId"}],"get":{"summary":"List domain mailbox API keys, agent links and available mailboxes","responses":{"200":{"description":"Mail API access configuration for this domain"},"403":{"description":"The domain is outside the current account"}}}},"\/domains\/{domain}\/mail-api\/keys":{"parameters":[{"$ref":"#\/components\/parameters\/DomainId"}],"post":{"summary":"Issue a mailbox-scoped or domain-wide Mail API key","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MailApiKeyInput"}}}},"responses":{"201":{"description":"Mail API key and its one-time plain-text value"},"422":{"description":"The mailbox or ability scope is invalid"}}}},"\/domains\/{domain}\/mail-api\/agents":{"parameters":[{"$ref":"#\/components\/parameters\/DomainId"}],"post":{"summary":"Create a scoped MCP agent URL for one mailbox or the complete domain","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MailAgentInput"}}}},"responses":{"201":{"description":"Agent credential and copy-ready MCP URL"},"422":{"description":"Agent provider, mailbox or ability scope is invalid"}}}},"\/mail-api\/keys":{"get":{"summary":"List every Mail API key and agent URL credential visible to this account","responses":{"200":{"description":"Mail API credentials across owned domains"}}}},"\/mail-api\/keys\/{mailApiKey}\/reveal":{"parameters":[{"in":"path","name":"mailApiKey","required":true,"schema":{"type":"integer"}}],"post":{"summary":"Reveal a Mail API key or agent URL after password confirmation","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["password"],"properties":{"password":{"type":"string","format":"password"}}}}}},"responses":{"200":{"description":"Plain Mail API key and, for agents, the MCP URL"},"422":{"description":"The account password is incorrect"}}}},"\/mail-api\/keys\/{mailApiKey}":{"parameters":[{"in":"path","name":"mailApiKey","required":true,"schema":{"type":"integer"}}],"delete":{"summary":"Revoke a Mail API key or agent URL immediately","responses":{"200":{"description":"Credential revoked"}}}},"\/wordpress\/plugins":{"get":{"summary":"Browse or search the WordPress.org plugin library","description":"Returns the 30 most popular plugins when no search term is supplied. Results are cached server-side.","parameters":[{"in":"query","name":"search","required":false,"schema":{"type":"string","maxLength":80},"description":"Plugin name, author, feature, or other WordPress.org search term."}],"responses":{"200":{"description":"Up to 30 matching WordPress plugins"},"503":{"description":"The WordPress.org plugin library is temporarily unavailable"}}}},"\/wordpress\/themes":{"get":{"summary":"Browse or search the WordPress.org theme library","description":"Returns the 30 most popular themes when no search term is supplied.","parameters":[{"in":"query","name":"search","schema":{"type":"string","maxLength":80}}],"responses":{"200":{"description":"Up to 30 matching WordPress themes"},"503":{"description":"The WordPress.org theme library is temporarily unavailable"}}}},"\/wordpress\/themes\/package":{"post":{"summary":"Validate and stage a custom WordPress theme ZIP","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","required":["theme"],"properties":{"theme":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"Theme ZIP validated and staged with a 48-character token"},"422":{"description":"The ZIP is not a valid WordPress theme"}}}},"\/websites":{"get":{"summary":"List websites","responses":{"200":{"description":"Website list"}}},"post":{"summary":"Create a website with a temporary preview while apex DNS is pending","description":"Website responses include a generated preview.host and preview.url until the primary domain's apex A record is verified. Preview DNS and TLS require a wildcard A record for the configured preview domain.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebsiteInput"}}}},"responses":{"201":{"description":"Website created"},"422":{"description":"Validation error"}}}},"\/websites\/{website}":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Get website and deployment history","responses":{"200":{"description":"Website details"}}},"patch":{"summary":"Update a website","requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"runtime":{"type":"string","enum":["static","php"]},"php_version":{"type":"string","enum":["8.3"]},"aliases":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","suspended"]},"ssl_enabled":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated website"},"422":{"description":"Validation error, including activating a website without a verified apex A record"}}},"delete":{"summary":"Delete website and files","responses":{"200":{"description":"Website removed"}}}},"\/websites\/{website}\/analytics":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Read website visitor analytics","description":"Returns access-log analytics for a website owned by the authenticated account. New entries are collected once per minute and retained for 365 days. Visitor IP addresses are stored as requested; unique visitors use a keyed hash of website, IP and user agent. GeoIP results use the local DB-IP City Lite database.","parameters":[{"in":"query","name":"days","schema":{"type":"integer","minimum":1,"maximum":365,"default":30},"description":"Number of calendar days to include."},{"in":"query","name":"path_filter","schema":{"type":"string","enum":["all","pages","files"],"default":"pages"}},{"in":"query","name":"path_page","schema":{"type":"integer","minimum":1,"default":1}},{"in":"query","name":"path_per_page","schema":{"type":"integer","enum":[10,15,25,50],"default":10}},{"in":"query","name":"visitors_page","schema":{"type":"integer","minimum":1,"default":1}},{"in":"query","name":"visitors_per_page","schema":{"type":"integer","enum":[10,25,50,100],"default":10}},{"in":"query","name":"visitors_search","schema":{"type":"string","maxLength":200},"description":"Search IP, path, location, browser or operating system."},{"in":"query","name":"visitors_sort","schema":{"type":"string","enum":["visited_at","ip_address","path","status"],"default":"visited_at"}},{"in":"query","name":"visitors_direction","schema":{"type":"string","enum":["asc","desc"],"default":"desc"}}],"responses":{"200":{"description":"Traffic summary, trends, locations, devices, pages, referrers and recent visitors","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebsiteAnalytics"}}}},"403":{"description":"The website belongs to another account"}}}},"\/websites\/{website}\/analytics\/live":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Read the current live visitor count","description":"Counts distinct non-bot visitors with a non-blocked request during the last five minutes. Analytics collection runs once per minute.","responses":{"200":{"description":"Current live visitor count","content":{"application\/json":{"schema":{"type":"object","required":["active_visitors","window_minutes","updated_at"],"properties":{"active_visitors":{"type":"integer","minimum":0},"window_minutes":{"type":"integer","example":5},"updated_at":{"type":"string","format":"date-time"}}}}}},"403":{"description":"The website belongs to another account"}}}},"\/firewall\/countries":{"get":{"summary":"List countries available for firewall rules","responses":{"200":{"description":"ISO country codes and English country names","content":{"application\/json":{"schema":{"type":"object","required":["countries"],"properties":{"countries":{"type":"array","items":{"type":"object","required":["code","name"],"properties":{"code":{"type":"string","pattern":"^[A-Z]{2}$","example":"NL"},"name":{"type":"string","example":"Netherlands"}}}}}}}}}}}},"\/websites\/{website}\/firewall":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Read firewall rules and recent blocked requests","description":"Synchronizes the generated Nginx firewall maps before returning the website's rules and the latest 50 HTTP 403 requests.","responses":{"200":{"description":"Firewall configuration and recent blocks","content":{"application\/json":{"schema":{"type":"object","required":["rules","blocked_requests"],"properties":{"rules":{"type":"array","items":{"$ref":"#\/components\/schemas\/FirewallRule"}},"blocked_requests":{"type":"array","items":{"$ref":"#\/components\/schemas\/FirewallBlockedRequest"}}}}}}},"403":{"description":"The website belongs to another account"}}},"post":{"summary":"Create or re-enable a website firewall rule","description":"Blocks individual IPv4\/IPv6 addresses, IPv4\/IPv6 CIDR ranges, or all IPv4 and IPv6 ranges assigned to a country. Rules are compiled into Nginx geo maps and applied by the website runtime.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/FirewallRuleInput"}}}},"responses":{"201":{"description":"Firewall rule active","content":{"application\/json":{"schema":{"type":"object","required":["rule"],"properties":{"rule":{"$ref":"#\/components\/schemas\/FirewallRule"}}}}}},"403":{"description":"The website belongs to another account"},"422":{"description":"Invalid IP, CIDR range or country code"}}}},"\/websites\/{website}\/firewall\/{rule}":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"},{"$ref":"#\/components\/parameters\/FirewallRuleId"}],"patch":{"summary":"Enable or disable a firewall rule","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["active"],"properties":{"active":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Firewall rule updated","content":{"application\/json":{"schema":{"type":"object","required":["rule"],"properties":{"rule":{"$ref":"#\/components\/schemas\/FirewallRule"}}}}}},"403":{"description":"The website belongs to another account"},"404":{"description":"The rule is not part of this website"}}},"delete":{"summary":"Delete a firewall rule","responses":{"200":{"description":"Firewall rule deleted"},"403":{"description":"The website belongs to another account"},"404":{"description":"The rule is not part of this website"}}}},"\/websites\/{website}\/malware":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Read malware scanner status and latest findings","description":"Returns ClamAV readiness, live scan progress, exact flagged paths and signatures, decision status, and recent scan history. Customers can only access websites they own.","responses":{"200":{"description":"Malware scanner status and latest scan results"},"403":{"description":"The website belongs to another account"}}}},"\/websites\/{website}\/malware\/scan":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Start a live malware scan of the complete website directory","description":"Queues a ClamAV scan on the isolated security queue. Progress and findings are available from GET \/websites\/{website}\/malware. Symlinks are skipped and files are not deleted automatically.","responses":{"202":{"description":"Malware scan queued"},"409":{"description":"A scan is already queued or running"},"503":{"description":"ClamAV is starting or updating its signatures"}}}},"\/websites\/{website}\/malware\/scans\/{scan}":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"},{"$ref":"#\/components\/parameters\/MalwareScanId"}],"get":{"summary":"Read one malware scan with live progress and findings","responses":{"200":{"description":"Malware scan details"},"403":{"description":"The website belongs to another account"},"404":{"description":"The scan is not part of this website"}}}},"\/websites\/{website}\/malware\/findings\/{finding}\/decision":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"},{"$ref":"#\/components\/parameters\/MalwareFindingId"}],"post":{"summary":"Confirm or deny removal of a flagged file","description":"Use decision=keep to retain the file and record the review, or decision=remove with confirmed=true to delete the exact scanned file. Removal is rejected if its SHA-256 hash changed after the scan.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["decision"],"properties":{"decision":{"type":"string","enum":["remove","keep"]},"confirmed":{"type":"boolean","description":"Required and must be true when decision is remove."}}}}}},"responses":{"200":{"description":"Finding reviewed and file retained or removed"},"403":{"description":"The website belongs to another account"},"404":{"description":"The finding is not part of this website"},"409":{"description":"The finding was already reviewed, the file is missing, or its hash changed"},"422":{"description":"Validation failed or removal was not confirmed"}}}},"\/websites\/{website}\/screenshot":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Download the latest website screenshot","description":"Returns the cached browser capture generated in the isolated website runtime.","responses":{"200":{"description":"Website screenshot","content":{"image\/jpeg":{"schema":{"type":"string","format":"binary"}},"image\/png":{"schema":{"type":"string","format":"binary"}}}},"404":{"description":"Screenshot is not available yet"}}}},"\/websites\/{website}\/deploy":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Deploy a static site or Node.js project from a ZIP archive","description":"Archives containing a recognized React, Vue, Vite, Next.js or Node.js package.json are built in staging, activated atomically and connected to the Node.js runtime automatically.","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","required":["archive"],"properties":{"archive":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Static website files activated immediately"},"202":{"description":"Node.js dependencies and production build queued; runtime starts after a successful build"},"422":{"description":"Deployment rejected; previous files remain live"}}}},"\/websites\/{website}\/docker\/deploy":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Deploy a Docker image or Docker project ZIP","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","required":["internal_port"],"properties":{"image":{"type":"string","nullable":true,"example":"nginx:alpine"},"internal_port":{"type":"integer","minimum":1,"maximum":65535},"archive":{"type":"string","format":"binary","nullable":true}}}}}},"responses":{"200":{"description":"Docker container built, started and connected to the domain route"},"422":{"description":"Image, archive, Compose configuration or container startup failed"}}}},"\/websites\/{website}\/github":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Get the website's GitHub deployment integration","responses":{"200":{"description":"GitHub repository and branch tracking settings, without the token"}}},"put":{"summary":"Connect or update a GitHub repository and branch","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["repository","branch"],"properties":{"repository":{"type":"string","example":"owner\/repository"},"branch":{"type":"string","example":"main"},"document_root":{"type":"string","example":"public"},"token":{"type":"string","format":"password","nullable":true},"clear_token":{"type":"boolean"},"auto_deploy":{"type":"boolean"},"post_deploy_steps":{"type":"array","items":{"type":"string","enum":["composer_install","artisan_migrate","npm_install","npm_build","node_restart"]}}}}}}},"responses":{"200":{"description":"GitHub integration saved"},"422":{"description":"Repository, branch, or token validation failed"}}},"patch":{"summary":"Enable or disable automatic branch deployment","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["auto_deploy"],"properties":{"auto_deploy":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Branch tracking setting updated"}}},"delete":{"summary":"Disconnect GitHub and stop automatic deployment","responses":{"200":{"description":"GitHub integration removed"}}}},"\/websites\/{website}\/github\/deploy":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Deploy the latest commit from the configured GitHub branch","responses":{"200":{"description":"Repository snapshot deployed atomically"},"422":{"description":"GitHub access, archive validation, or deployment failed"}}}},"\/domains":{"get":{"summary":"List domains","responses":{"200":{"description":"Domain list"}}},"post":{"summary":"Add a domain","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","example":"example.com"},"description":{"type":"string","nullable":true}}}}}},"responses":{"201":{"description":"Domain and DKIM key created"}}}},"\/domains\/{domain}":{"parameters":[{"$ref":"#\/components\/parameters\/DomainId"}],"get":{"summary":"Get a domain workspace with owner, website, mailbox and routing counts","responses":{"200":{"description":"Domain profile and related service summary"},"403":{"description":"The domain is not accessible to the current account"}}},"patch":{"summary":"Update domain metadata","requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"description":{"type":"string","nullable":true},"active":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Updated domain"}}},"delete":{"summary":"Delete an unused domain","responses":{"200":{"description":"Domain and zone removed"},"422":{"description":"Domain still has mailboxes or a website"}}}},"\/domains\/{domain}\/dns":{"parameters":[{"$ref":"#\/components\/parameters\/DomainId"}],"get":{"summary":"Get DNS records and mail client settings","responses":{"200":{"description":"DNS zone"}}},"post":{"summary":"Add a DNS record","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DnsRecordInput"}}}},"responses":{"201":{"description":"DNS record created and zone serial incremented"}}}},"\/domains\/{domain}\/dns\/{record}":{"parameters":[{"$ref":"#\/components\/parameters\/DomainId"},{"$ref":"#\/components\/parameters\/RecordId"}],"patch":{"summary":"Update a DNS record","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DnsRecordInput"}}}},"responses":{"200":{"description":"DNS record updated"}}},"delete":{"summary":"Delete a custom DNS record","responses":{"200":{"description":"DNS record deleted"},"422":{"description":"SOA and NS records are protected"}}}},"\/domains\/{domain}\/verify":{"parameters":[{"$ref":"#\/components\/parameters\/DomainId"}],"post":{"summary":"Verify each live mail and website DNS record","responses":{"200":{"description":"Per-record status plus the persisted aggregate result","content":{"application\/json":{"schema":{"type":"object","required":["verified","checks","record_checks","summary","checked_at"],"properties":{"verified":{"type":"boolean"},"website_suspended":{"type":"boolean","description":"True when a failed check caused an active website to be suspended."},"website_activated":{"type":"boolean","description":"True when a successful website A-record check activated the previously DNS-suspended website."},"checks":{"type":"object","additionalProperties":{"type":"boolean"}},"record_checks":{"type":"array","items":{"type":"object","required":["key","label","record_type","host","expected","observed","status","requirement","category"],"properties":{"key":{"type":"string"},"label":{"type":"string"},"record_type":{"type":"string"},"host":{"type":"string"},"expected":{"type":"string"},"observed":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["verified","missing","mismatch","optional"]},"requirement":{"type":"string","enum":["required","recommended","optional","prerequisite","provider_managed"]},"category":{"type":"string","enum":["routing","authentication","website","discovery","authoritative","other"]}}}},"summary":{"type":"object","properties":{"verified":{"type":"integer"},"total":{"type":"integer"},"required":{"type":"integer"},"recommended":{"type":"integer"}}},"checked_at":{"type":"string","format":"date-time"}}}}}}}}},"\/domains\/{domain}\/mail-imports":{"parameters":[{"$ref":"#\/components\/parameters\/DomainId"}],"get":{"summary":"List mailbox import jobs and live progress for a domain","responses":{"200":{"description":"Recent imports with counters, status and duration"}}},"post":{"summary":"Start a background IMAP mailbox import","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["mailbox_id","source_host","source_port","source_encryption","source_username","source_password"],"properties":{"mailbox_id":{"type":"integer"},"source_host":{"type":"string","example":"imap.provider.com"},"source_port":{"type":"integer","example":993},"source_encryption":{"type":"string","enum":["ssl","tls","none"]},"source_username":{"type":"string","example":"user@old-provider.com"},"source_password":{"type":"string","format":"password"},"validate_cert":{"type":"boolean","default":true}}}}}},"responses":{"201":{"description":"Import queued"},"422":{"description":"Destination mailbox is invalid or already importing"}}}},"\/mailboxes":{"get":{"summary":"List mailboxes","parameters":[{"in":"query","name":"search","schema":{"type":"string"}},{"in":"query","name":"domain","schema":{"type":"string"}}],"responses":{"200":{"description":"Mailbox list"}}},"post":{"summary":"Create a mailbox","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MailboxInput"}}}},"responses":{"201":{"description":"Mailbox and webmail user created"}}}},"\/mailboxes\/{mailbox}":{"parameters":[{"$ref":"#\/components\/parameters\/MailboxId"}],"patch":{"summary":"Update mailbox","responses":{"200":{"description":"Mailbox updated"}}},"delete":{"summary":"Delete mailbox","responses":{"200":{"description":"Mailbox removed"}}}},"\/mailboxes\/{mailbox}\/password":{"parameters":[{"$ref":"#\/components\/parameters\/MailboxId"}],"post":{"summary":"Reset mailbox password","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["password"],"properties":{"password":{"type":"string","minLength":10}}}}}},"responses":{"200":{"description":"Mailbox password updated"}}}},"\/mailboxes\/{mailbox}\/open":{"parameters":[{"$ref":"#\/components\/parameters\/MailboxId"}],"post":{"summary":"Open administrator mailbox preview","responses":{"200":{"description":"Preview session opened"}}}},"\/mailboxes\/close-preview":{"post":{"summary":"Close administrator mailbox preview","responses":{"200":{"description":"Preview session closed"}}}},"\/aliases":{"get":{"summary":"List aliases","responses":{"200":{"description":"Alias list"}}},"post":{"summary":"Create an alias","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AliasInput"}}}},"responses":{"201":{"description":"Alias created"}}}},"\/aliases\/{alias}":{"parameters":[{"in":"path","name":"alias","required":true,"schema":{"type":"integer"}}],"patch":{"summary":"Update alias","responses":{"200":{"description":"Alias updated"}}},"delete":{"summary":"Delete alias","responses":{"200":{"description":"Alias deleted"}}}},"\/databases":{"get":{"summary":"List managed databases and engine availability","parameters":[{"in":"query","name":"website_id","required":false,"schema":{"type":"integer"},"description":"Return only databases attached to this website."}],"responses":{"200":{"description":"Database list"}}},"post":{"summary":"Provision a MariaDB or MySQL database and user","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["name","username","engine"],"properties":{"name":{"type":"string","pattern":"^[a-zA-Z0-9_]{3,48}$"},"username":{"type":"string","pattern":"^[a-zA-Z0-9_]{3,48}$"},"password":{"type":"string","minLength":12,"nullable":true},"engine":{"type":"string","enum":["mariadb","mysql"]},"website_id":{"type":"integer","nullable":true}}}}}},"responses":{"201":{"description":"Database and credentials created"}}}},"\/databases\/{database}":{"parameters":[{"in":"path","name":"database","required":true,"schema":{"type":"integer"}}],"get":{"summary":"Inspect database size, tables, connections, version, and ownership","responses":{"200":{"description":"Database metadata and live engine metrics","content":{"application\/json":{"schema":{"type":"object","properties":{"database":{"type":"object"},"details":{"type":"object","nullable":true,"properties":{"size_bytes":{"type":"integer"},"tables_count":{"type":"integer"},"active_connections":{"type":"integer"},"version":{"type":"string"},"uptime_seconds":{"type":"integer"}}},"manager_available":{"type":"boolean"},"manager_error":{"type":"string","nullable":true}}}}}}}},"patch":{"summary":"Attach a database to a website, move it, or detach it","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["website_id"],"properties":{"website_id":{"type":"integer","nullable":true,"description":"Set to null to detach the database without deleting it."}}}}}},"responses":{"200":{"description":"Database website attachment updated"},"403":{"description":"The database or target website is not accessible"},"422":{"description":"The target website does not exist or its owner reached the database plan limit"}}},"delete":{"summary":"Drop database and dedicated user","responses":{"200":{"description":"Database removed"}}}},"\/databases\/{database}\/password":{"parameters":[{"in":"path","name":"database","required":true,"schema":{"type":"integer"}}],"post":{"summary":"Rotate the dedicated database user's password","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":12,"nullable":true,"description":"Omit to generate a strong password."}}}}}},"responses":{"200":{"description":"Password rotated; new credentials returned once"}}}},"\/databases\/{database}\/pma":{"parameters":[{"in":"path","name":"database","required":true,"schema":{"type":"integer"}}],"post":{"summary":"Create a one-time phpMyAdmin sign-on URL for this database","responses":{"200":{"description":"One-time phpMyAdmin URL and its 60-second validity window","content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri-reference"},"expires_in":{"type":"integer","example":60}}}}}},"403":{"description":"The database is not owned by the current account"}}}},"\/tokens":{"get":{"summary":"List the current account's API tokens and effective access scope","responses":{"200":{"description":"Token metadata list"}}},"post":{"summary":"Issue an API token","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"abilities":{"type":"array","items":{"type":"string"}},"expires_in_days":{"type":"integer","minimum":1,"maximum":3650}}}}}},"responses":{"201":{"description":"Token metadata and initial plain token"}}}},"\/tokens\/{token}":{"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"integer"}}],"delete":{"summary":"Revoke token","responses":{"200":{"description":"Token revoked"}}}},"\/tokens\/{token}\/reveal":{"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"integer"}}],"post":{"summary":"Reveal an encrypted token after account-password confirmation","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["password"],"properties":{"password":{"type":"string","format":"password"}}}}}},"responses":{"200":{"description":"Decrypted token value"},"409":{"description":"Legacy token has no recoverable encrypted value"}}}},"\/tokens\/{token}\/rotate":{"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"integer"}}],"post":{"summary":"Replace a token key after account-password confirmation","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["password"],"properties":{"password":{"type":"string","format":"password"}}}}}},"responses":{"200":{"description":"New token value; previous key is invalidated"}}}},"\/websites\/{website}\/files":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"List website files","parameters":[{"in":"query","name":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Directory entries"}}},"delete":{"summary":"Delete a website file or directory","parameters":[{"in":"query","name":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"File removed"}}}},"\/websites\/{website}\/files\/content":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Read a website file","parameters":[{"in":"query","name":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"File contents"}}},"put":{"summary":"Create or write a website file","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["path","content"],"properties":{"path":{"type":"string"},"content":{"type":"string","maxLength":2000000}}}}}},"responses":{"200":{"description":"File saved"}}}},"\/websites\/{website}\/files\/directory":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Create a website directory","responses":{"201":{"description":"Directory created"}}}},"\/websites\/{website}\/files\/upload":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Upload a file into a website directory","requestBody":{"content":{"multipart\/form-data":{"schema":{"type":"object","required":["file"],"properties":{"path":{"type":"string"},"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"File uploaded"}}}},"\/websites\/{website}\/files\/rename":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Rename or move a file","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["from","to"],"properties":{"from":{"type":"string"},"to":{"type":"string"}}}}}},"responses":{"200":{"description":"File renamed"}}}},"\/websites\/{website}\/files\/bulk-delete":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Permanently delete multiple website files or directories","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["paths"],"properties":{"paths":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string"}}}}}}},"responses":{"200":{"description":"Selected paths deleted"},"422":{"description":"A path is invalid, protected, or does not exist"}}}},"\/websites\/{website}\/files\/move":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Move multiple website files or directories into an existing directory","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["paths","destination"],"properties":{"paths":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string"}},"destination":{"type":"string","description":"Existing directory relative to the website root; an empty string targets the root."}}}}}},"responses":{"200":{"description":"Selected paths moved"},"422":{"description":"The move is unsafe, a destination exists, or a path is invalid"}}}},"\/websites\/{website}\/files\/archive":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Create a ZIP archive from selected website files or directories","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["archive_name","paths"],"properties":{"directory":{"type":"string","description":"Directory in which to create the archive, relative to the website root."},"archive_name":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._ -]*\\.zip$"},"paths":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string"}}}}}}},"responses":{"201":{"description":"ZIP archive created"},"422":{"description":"The selection or archive name is invalid"}}}},"\/websites\/{website}\/files\/extract":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Safely extract an uploaded ZIP archive into a website directory","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["path"],"properties":{"path":{"type":"string","description":"ZIP path relative to the website root."},"destination":{"type":"string","description":"Destination directory relative to the website root."},"strip_root":{"type":"boolean","default":true,"description":"Remove one shared top-level directory from the archive entries."}}}}}},"responses":{"201":{"description":"ZIP archive extracted"},"422":{"description":"The archive is unsafe, too large, has collisions, or exceeds hosting limits"}}}},"\/websites\/{website}\/files\/download":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Download a website file","parameters":[{"in":"query","name":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"File download"}}}},"\/websites\/{website}\/php":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"patch":{"summary":"Update per-site PHP settings","responses":{"200":{"description":"PHP settings saved"}}}},"\/websites\/{website}\/jobs":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"List website maintenance jobs","responses":{"200":{"description":"Job history, live output, and tools detected from the website files","content":{"application\/json":{"schema":{"type":"object","required":["jobs","tools"],"properties":{"jobs":{"type":"array","items":{"type":"object"}},"tools":{"type":"object","description":"Availability is recalculated from files in the website root on every request.","properties":{"composer":{"type":"boolean","description":"composer.json or composer.lock is present."},"laravel":{"type":"boolean","description":"Artisan and Laravel application markers are present."},"npm":{"type":"boolean","description":"package.json is present."},"node":{"type":"boolean","description":"This is a Node.js website and package.json is present."},"wordpress":{"type":"boolean","description":"WordPress core files are installed in the configured document root."},"document_root_exists":{"type":"boolean"},"detected_at":{"type":"string","format":"date-time"}}}}}}}}}},"post":{"summary":"Queue a maintenance job","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["composer_install","composer_update","composer_dump_autoload","artisan_optimize","artisan_optimize_clear","artisan_cache_clear","artisan_config_clear","artisan_route_clear","artisan_view_clear","artisan_migrate","artisan_storage_link","npm_install","npm_build","node_restart","wp_core_verify","wp_core_update","wp_core_update_db","wp_plugin_update","wp_plugin_verify","wp_theme_update","wp_theme_verify","wp_cache_flush","wp_transient_clear","wp_cron_run_due","custom"]},"command":{"type":"string","maxLength":500,"description":"Required for custom jobs. Supports composer, named PHP scripts, and allowlisted npm commands without a shell."},"working_directory":{"type":"string","maxLength":512,"description":"Optional directory relative to the website root."}}}}}},"responses":{"202":{"description":"Job queued"},"422":{"description":"The command, working directory, or job type is not allowed, or its required dependency files are absent"}}}},"\/websites\/{website}\/wordpress":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Get WordPress installation, database, and administrator status","responses":{"200":{"description":"WordPress installation status and latest installer output"}}}},"\/websites\/{website}\/wordpress\/install":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Provision a database and queue a fresh WordPress installation","requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"wordpress_plugins":{"type":"array","maxItems":20,"items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,99}$"}},"wordpress_migration":{"type":"object","required":["source_url","admin_username","admin_password"],"properties":{"source_url":{"type":"string","format":"uri"},"admin_username":{"type":"string"},"admin_password":{"type":"string","format":"password"}}},"wordpress_theme":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["library","custom"]},"slug":{"type":"string"},"upload_token":{"type":"string"}}}}}}}},"responses":{"202":{"description":"WordPress installation queued"},"422":{"description":"Website is not WordPress, database provisioning failed, or plan limit reached"}}}},"\/websites\/{website}\/wordpress\/login":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Create a signed 90-second one-time WordPress administrator sign-on URL","responses":{"200":{"description":"One-time WordPress sign-on URL","content":{"application\/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"expires_in":{"type":"integer","example":90}}}}}},"422":{"description":"WordPress is not installed and ready"}}}},"\/websites\/{website}\/ssl":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Inspect website TLS","responses":{"200":{"description":"TLS mode and certificate details"}}}},"\/websites\/{website}\/ssl\/request":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Request or check automatic TLS","responses":{"200":{"description":"TLS check result"}}}},"\/websites\/{website}\/ssl\/custom":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Install a custom PEM certificate","requestBody":{"content":{"multipart\/form-data":{"schema":{"type":"object","required":["certificate","private_key"],"properties":{"certificate":{"type":"string","format":"binary"},"private_key":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Certificate installed"}}}},"\/websites\/{website}\/ssl\/automatic":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Return the website to automatic TLS","responses":{"200":{"description":"Automatic TLS enabled"}}}},"\/websites\/{website}\/logs":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"List website logs","responses":{"200":{"description":"Available logs"}}}},"\/websites\/{website}\/logs\/content":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"Read a website log","parameters":[{"in":"query","name":"type","required":true,"schema":{"type":"string","enum":["access","php-error","node"]}}],"responses":{"200":{"description":"Latest log content"}}}},"\/websites\/{website}\/logs\/clear":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"post":{"summary":"Truncate a website log","description":"Clears the selected Nginx access, PHP error or Node.js log while preserving the file used by the runtime.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["access","php-error","node"]}}}}}},"responses":{"200":{"description":"Selected log cleared"},"422":{"description":"Log type is invalid or the file is not writable"}}}},"\/websites\/{website}\/cron-jobs":{"parameters":[{"$ref":"#\/components\/parameters\/WebsiteId"}],"get":{"summary":"List cron jobs","responses":{"200":{"description":"Cron jobs"}}},"post":{"summary":"Create a cron job","responses":{"201":{"description":"Cron job created"}}}},"\/cron-jobs\/{cronJob}":{"parameters":[{"in":"path","name":"cronJob","required":true,"schema":{"type":"integer"}}],"patch":{"summary":"Update a cron job","responses":{"200":{"description":"Cron job updated"}}},"delete":{"summary":"Delete a cron job","responses":{"200":{"description":"Cron job removed"}}}},"\/ftp-accounts":{"get":{"summary":"List FTP accounts","parameters":[{"in":"query","name":"website_id","schema":{"type":"integer"}}],"responses":{"200":{"description":"FTP accounts"}}},"post":{"summary":"Create an FTP account","responses":{"201":{"description":"FTP account created"}}}},"\/ftp-accounts\/{ftpAccount}":{"parameters":[{"in":"path","name":"ftpAccount","required":true,"schema":{"type":"integer"}}],"patch":{"summary":"Update an FTP account","responses":{"200":{"description":"FTP account updated"}}},"delete":{"summary":"Delete an FTP account","responses":{"200":{"description":"FTP account removed"}}}},"\/ftp-accounts\/{ftpAccount}\/password":{"parameters":[{"in":"path","name":"ftpAccount","required":true,"schema":{"type":"integer"}}],"post":{"summary":"Reset an FTP password","responses":{"200":{"description":"Password reset"}}}},"\/public\/knowledge":{"get":{"security":[],"summary":"List active knowledge categories and published articles","responses":{"200":{"description":"Public knowledge base content"}}}},"\/public\/knowledge\/{slug}":{"get":{"security":[],"summary":"Read a published knowledge article","parameters":[{"in":"path","name":"slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Published article"},"404":{"description":"Article does not exist or is not published"}}}},"\/public\/tickets":{"post":{"security":[],"summary":"Submit a public support ticket","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["name","email","subject","message"],"properties":{"name":{"type":"string","maxLength":120},"email":{"type":"string","format":"email"},"subject":{"type":"string","maxLength":180},"knowledge_category_id":{"type":"integer","nullable":true},"message":{"type":"string","minLength":20,"maxLength":5000},"website":{"type":"string","description":"Hidden honeypot field"}}}}}},"responses":{"201":{"description":"Ticket accepted with a public reference"},"422":{"description":"Validation error"},"429":{"description":"Submission rate limit reached"}}}},"\/monitoring":{"get":{"summary":"List downtime monitors, uptime statistics, incidents, and public status-page settings","description":"Administrators see all monitors. Customers see only monitors owned by their account.","responses":{"200":{"description":"Monitoring dashboard data"}}},"post":{"summary":"Start monitoring a website","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MonitorInput"}}}},"responses":{"201":{"description":"Monitor created and queued for its first check"},"403":{"description":"Website is outside the current account or token scope"},"422":{"description":"Validation error or duplicate monitor"}}}},"\/monitoring\/{monitor}":{"parameters":[{"in":"path","name":"monitor","required":true,"schema":{"type":"integer"}}],"patch":{"summary":"Update monitoring, alert, interval, path, or public visibility settings","requestBody":{"content":{"application\/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"public_visible":{"type":"boolean"},"path":{"type":"string","example":"\/"},"interval_minutes":{"type":"integer","enum":[1,5,10,15,30,60]},"alert_email":{"type":"string","format":"email"},"alert_after_failures":{"type":"integer","minimum":1,"maximum":10}}}}}},"responses":{"200":{"description":"Monitor updated"},"403":{"description":"Monitor belongs to another customer"}}},"delete":{"summary":"Remove a monitor and its check and incident history","responses":{"200":{"description":"Monitor removed"}}}},"\/monitoring\/{monitor}\/check":{"parameters":[{"in":"path","name":"monitor","required":true,"schema":{"type":"integer"}}],"post":{"summary":"Run a health check immediately","description":"Alerts are generated when the configured consecutive-failure threshold is reached.","responses":{"200":{"description":"Health check completed; status and response time returned"},"422":{"description":"Another check is already running"}}}},"\/monitoring\/status-page":{"post":{"summary":"Create a cryptographically random public status-page URL","responses":{"201":{"description":"Status page token created and returned to the owner"}}},"patch":{"summary":"Enable, disable, or rename the current account's public status page","responses":{"200":{"description":"Status page settings updated"}}}},"\/monitoring\/status-page\/rotate":{"post":{"summary":"Replace the public status-page token and invalidate the previous URL","responses":{"200":{"description":"Status page token rotated"}}}},"\/public\/status\/{token}":{"security":[],"parameters":[{"in":"path","name":"token","required":true,"schema":{"type":"string"}}],"get":{"summary":"Public live status data for a tokenized status page","responses":{"200":{"description":"Public service states, response times, uptime, and incidents"},"404":{"description":"Invalid, disabled, or rotated status token"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"parameters":{"WebsiteId":{"in":"path","name":"website","required":true,"schema":{"type":"integer"}},"FirewallRuleId":{"in":"path","name":"rule","required":true,"schema":{"type":"integer"}},"MalwareScanId":{"in":"path","name":"scan","required":true,"schema":{"type":"integer"}},"MalwareFindingId":{"in":"path","name":"finding","required":true,"schema":{"type":"integer"}},"DomainId":{"in":"path","name":"domain","required":true,"schema":{"type":"integer"}},"RecordId":{"in":"path","name":"record","required":true,"schema":{"type":"integer"}},"MailboxId":{"in":"path","name":"mailbox","required":true,"schema":{"type":"integer"}}},"schemas":{"WebsiteInput":{"type":"object","required":["domain_id","name"],"properties":{"domain_id":{"type":"integer"},"name":{"type":"string","maxLength":100},"application_type":{"type":"string","enum":["static","php","laravel","wordpress","node","docker"]},"runtime":{"type":"string","enum":["static","php","node"]},"php_version":{"type":"string","enum":["8.3"]},"document_root":{"type":"string","default":"public"},"node_start_command":{"type":"string","default":"npm start"},"php_settings":{"type":"object","additionalProperties":true},"wordpress_plugins":{"type":"array","maxItems":20,"description":"WordPress.org plugin slugs installed and activated immediately after core WordPress setup.","items":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,99}$"}},"wordpress_migration":{"type":"object","description":"Import a complete existing WordPress site. Credentials are used only for the migration and are not returned by the API.","required":["source_url","admin_username","admin_password"],"properties":{"source_url":{"type":"string","format":"uri","maxLength":2048,"example":"https:\/\/old-website.example"},"admin_username":{"type":"string","maxLength":100},"admin_password":{"type":"string","format":"password","maxLength":255}}},"wordpress_theme":{"type":"object","description":"Installed and activated after fresh WordPress core setup.","required":["type"],"properties":{"type":{"type":"string","enum":["library","custom"]},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,99}$"},"upload_token":{"type":"string","pattern":"^[a-z0-9]{48}$"}}},"github_deployment":{"type":"object","description":"Optionally configure and immediately deploy a GitHub branch after the website is created.","required":["repository","branch"],"properties":{"repository":{"type":"string","example":"owner\/repository"},"branch":{"type":"string","example":"main"},"token":{"type":"string","format":"password","nullable":true},"auto_deploy":{"type":"boolean","default":false},"document_root":{"type":"string","example":"public"},"docker_internal_port":{"type":"integer","minimum":1,"maximum":65535},"post_deploy_steps":{"type":"array","maxItems":5,"items":{"type":"string","enum":["composer_install","artisan_migrate","npm_install","npm_build","node_restart"]}}}},"git_deployment":{"type":"object","description":"Clone a public HTTP(S) Git repository and detect the application type, document root and required dependency steps from the checkout. This does not require a connected GitHub account.","required":["url"],"properties":{"url":{"type":"string","format":"uri","maxLength":2048,"example":"https:\/\/github.com\/owner\/repository.git","description":"Public clone URL without embedded credentials."},"branch":{"type":"string","maxLength":100,"example":"main","description":"Optional branch. The remote default branch is used when omitted."}}},"aliases":{"type":"array","maxItems":10,"items":{"type":"string"}},"ssl_enabled":{"type":"boolean","default":true}}},"MailApiKeyInput":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":100,"example":"Application mail sender"},"mailbox_id":{"type":"integer","nullable":true,"description":"Restrict the key to one mailbox. Omit to allow every active mailbox in the domain."},"abilities":{"type":"array","minItems":1,"items":{"type":"string","enum":["mail:read","mail:send"]}},"expires_in_days":{"type":"integer","minimum":1,"maximum":3650,"nullable":true}}},"MailAgentInput":{"allOf":[{"$ref":"#\/components\/schemas\/MailApiKeyInput"},{"type":"object","required":["provider"],"properties":{"provider":{"type":"string","enum":["chatgpt","claude","deepseek","custom"]},"instructions":{"type":"string","maxLength":2000}}}]},"WebsiteAnalytics":{"type":"object","required":["days","from","summary","daily","countries","cities","pages","pages_meta","referrers","devices","browsers","recent","recent_meta","geoip_ready","attribution"],"properties":{"days":{"type":"integer","minimum":1,"maximum":365},"from":{"type":"string","format":"date-time"},"summary":{"type":"object","required":["pageviews","visitors","bandwidth","blocked"],"properties":{"pageviews":{"type":"integer"},"visitors":{"type":"integer","description":"Unique keyed visitor hashes"},"bandwidth":{"type":"integer","description":"Response bytes"},"blocked":{"type":"integer","description":"Requests returning HTTP 403"}}},"daily":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","format":"date"},"pageviews":{"type":"integer"},"visitors":{"type":"integer"}}}},"countries":{"type":"array","items":{"type":"object","properties":{"country_code":{"type":"string","nullable":true},"country_name":{"type":"string","nullable":true},"visits":{"type":"integer"}}}},"cities":{"type":"array","items":{"type":"object","properties":{"city":{"type":"string"},"region":{"type":"string","nullable":true},"country_code":{"type":"string","nullable":true},"visits":{"type":"integer"}}}},"pages":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"visits":{"type":"integer"}}}},"pages_meta":{"type":"object","required":["current_page","last_page","per_page","total","filter"],"properties":{"current_page":{"type":"integer"},"last_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"filter":{"type":"string","enum":["all","pages","files"]}}},"referrers":{"type":"array","items":{"type":"object","properties":{"referrer":{"type":"string"},"visits":{"type":"integer"}}}},"devices":{"type":"array","items":{"type":"object","properties":{"device_type":{"type":"string","nullable":true},"visits":{"type":"integer"}}}},"browsers":{"type":"array","items":{"type":"object","properties":{"browser":{"type":"string","nullable":true},"visits":{"type":"integer"}}}},"recent":{"type":"array","maxItems":100,"items":{"type":"object","properties":{"id":{"type":"integer"},"ip_address":{"type":"string"},"country_code":{"type":"string","nullable":true},"country_name":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"path":{"type":"string"},"status":{"type":"integer"},"device_type":{"type":"string","nullable":true},"browser":{"type":"string","nullable":true},"operating_system":{"type":"string","nullable":true},"visited_at":{"type":"string","format":"date-time"}}}},"recent_meta":{"type":"object","required":["current_page","last_page","per_page","total","sort","direction","search"],"properties":{"current_page":{"type":"integer"},"last_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"sort":{"type":"string","enum":["visited_at","ip_address","path","status"]},"direction":{"type":"string","enum":["asc","desc"]},"search":{"type":"string"}}},"geoip_ready":{"type":"boolean"},"attribution":{"type":"string","example":"IP geolocation by DB-IP (CC BY 4.0)"}}},"FirewallRuleInput":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","enum":["ip","cidr","country"]},"value":{"type":"string","maxLength":100,"description":"IPv4\/IPv6 address, CIDR range, or two-letter ISO country code, depending on type.","examples":["192.0.2.44","203.0.113.0\/24","2001:db8::\/32","NL"]},"label":{"type":"string","maxLength":255,"nullable":true}}},"FirewallRule":{"type":"object","required":["id","type","value","active"],"properties":{"id":{"type":"integer"},"type":{"type":"string","enum":["ip","cidr","country"]},"value":{"type":"string"},"label":{"type":"string","nullable":true},"active":{"type":"boolean"},"created_by":{"type":"integer","nullable":true},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"FirewallBlockedRequest":{"type":"object","required":["ip_address","path","visited_at"],"properties":{"ip_address":{"type":"string"},"country_code":{"type":"string","nullable":true},"country_name":{"type":"string","nullable":true},"path":{"type":"string"},"visited_at":{"type":"string","format":"date-time"}}},"MonitorInput":{"type":"object","required":["website_id","alert_email"],"properties":{"website_id":{"type":"integer"},"alert_email":{"type":"string","format":"email"},"path":{"type":"string","default":"\/"},"interval_minutes":{"type":"integer","enum":[1,5,10,15,30,60],"default":5},"alert_after_failures":{"type":"integer","minimum":1,"maximum":10,"default":2},"enabled":{"type":"boolean","default":true},"public_visible":{"type":"boolean","default":true}}},"DnsRecordInput":{"type":"object","required":["type","host","value"],"properties":{"type":{"type":"string","enum":["A","AAAA","CAA","CNAME","MX","NS","SRV","TXT"]},"host":{"type":"string"},"value":{"type":"string"},"priority":{"type":"integer","nullable":true},"ttl":{"type":"integer","minimum":60,"maximum":604800},"description":{"type":"string","nullable":true}}},"MailboxInput":{"type":"object","required":["domain_id","local_part","display_name","password","quota_mb"],"properties":{"domain_id":{"type":"integer"},"local_part":{"type":"string"},"display_name":{"type":"string"},"password":{"type":"string","minLength":10},"quota_mb":{"type":"integer","minimum":100,"maximum":102400}}},"AliasInput":{"type":"object","required":["domain_id","source","destination"],"properties":{"domain_id":{"type":"integer"},"source":{"type":"string"},"destination":{"type":"string","format":"email"},"description":{"type":"string","nullable":true}}}}},"x-vpsly-access-scope":"general","x-vpsly-public-docs":true,"x-vpsly-live-testing":false}