{"id":25630,"date":"2026-11-23T06:57:54","date_gmt":"2026-11-23T06:57:54","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=25630"},"modified":"2026-11-23T06:57:54","modified_gmt":"2026-11-23T06:57:54","slug":"how-to-add-a-pocketbase-backend-to-a-website-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-add-a-pocketbase-backend-to-a-website-at-hostinger\/","title":{"rendered":"How to add a PocketBase backend to a website at Hostinger"},"content":{"rendered":"<p>A PocketBase backend on Hostinger Web and Cloud hosting gives your website its own database, user accounts, file storage, and realtime updates, served from your website&#8217;s own domain. To add one, ask your AI assistant connected through Hostinger Connector, save the superuser login details it returns, and manage your data in the PocketBase dashboard at <code>\/_\/<\/code> on your domain. This is separate from the PocketBase VPS template, which runs PocketBase on a Hostinger VPS.<\/p>\n<h3><b>Before you start<\/b><\/h3>\n<ul>\n<li>You need a website on a Web or Cloud hosting plan.<\/li>\n<li>You need an AI assistant connected to your Hostinger account through Hostinger Connector, as explained in <a data-click-id=\"hgr-post-content-link-how-to-set-up-web-hosting-mcp-on-local-ides\" href=\"https:\/\/www.hostinger.com\/support\/how-to-set-up-web-hosting-mcp-on-local-ides\/\">how to set up web hosting MCP on local IDEs<\/a>.<\/li>\n<li>PocketBase backends are rolling out gradually. If your account doesn&#8217;t have access yet, creating a backend fails with a <code>422<\/code> error.<\/li>\n<li>There&#8217;s no Hostinger dashboard screen for PocketBase backends yet, so you add and manage them through your AI assistant.<\/li>\n<\/ul>\n<h2 id=\"h-what-a-pocketbase-backend-adds-to-a-hostinger-website\">What a PocketBase backend adds to a Hostinger website<\/h2>\n<p>A PocketBase backend stores what visitors enter on your website, such as form submissions, sign-ups, comments, votes, bookings, or orders. It suits static, JavaScript, and Node.js websites that need to keep data without a separate server or a third-party database account. PocketBase is an open-source backend, and Hostinger runs it on your hosting plan.<\/p>\n<p>Two paths on your website&#8217;s domain belong to PocketBase once you add a backend:<\/p>\n<ul>\n<li><code>https:\/\/domain.tld\/api\/<\/code> serves the PocketBase REST and realtime API.<\/li>\n<li><code>https:\/\/domain.tld\/_\/<\/code> serves the PocketBase dashboard, where you manage data, users, and settings.<\/li>\n<\/ul>\n<p>Every other path keeps serving your website. Because your website and its PocketBase backend share one domain, you don&#8217;t need to set up Cross-Origin Resource Sharing (CORS) or put keys in your frontend code.<\/p>\n<p>PocketBase backend data is stored outside your website&#8217;s files, so deploying your website or uploading files never changes it. <a data-click-id=\"hgr-post-content-link-hostingers-automatic-account-backups\" href=\"https:\/\/www.hostinger.com\/support\/4283700-how-to-restore-a-site-from-backup-at-hostinger\/\">Hostinger&#8217;s automatic account backups<\/a> include the database of every PocketBase backend in your account.<\/p>\n<p>A PocketBase backend sleeps when nobody uses it and wakes on the next request. The first request after a quiet period takes a few seconds.<\/p>\n<p>To compare PocketBase with MySQL and the other databases each hosting plan supports, see <a data-click-id=\"hgr-post-content-link-which-databases-and-data-tools-are-supported-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/which-databases-and-data-tools-are-supported-at-hostinger\/\">which databases and data tools are supported at Hostinger<\/a>. To run PocketBase on a VPS instead, follow <a data-click-id=\"hgr-post-content-link-how-to-use-the-pocketbase-vps-template-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/10490129-how-to-use-the-pocketbase-vps-template-at-hostinger\/\">how to use the PocketBase VPS template at Hostinger<\/a>.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #feedaf80;border-color: #fbc91633\">\n<p>Pages or routes your website already serves under <code>\/api<\/code> or <code>\/_<\/code> stop working when you add a PocketBase backend. Move them to another path first.<\/p>\n<\/div>\n<h2 id=\"h-add-a-pocketbase-backend-to-a-hostinger-website-with-hostinger-connector\">Add a PocketBase backend to a Hostinger website with Hostinger Connector<\/h2>\n<ol>\n<li>In Hostinger Connector, make sure <b>Websites<\/b> is enabled.<\/li>\n<li>Ask your AI assistant to add a PocketBase backend to your website, for example: &#8220;Add a PocketBase backend to domain.tld.&#8221;<\/li>\n<li>Confirm the backend creation once your AI assistant has checked your website&#8217;s <code>\/api<\/code> and <code>\/_<\/code> paths with you.<\/li>\n<li>Save the superuser email and password from your AI assistant&#8217;s response.<\/li>\n<\/ol>\n<p>You can also describe what you need instead of naming PocketBase, for example:<\/p>\n<ul>\n<li>&#8220;Save the contact form submissions on my Hostinger site so I can read them later.&#8221;<\/li>\n<li>&#8220;Let visitors sign up and log in on my app hosted on Hostinger.&#8221;<\/li>\n<\/ul>\n<p>Creating a PocketBase backend usually takes a few seconds. Your AI assistant returns the API address, the dashboard address, the superuser email, and the superuser password. The superuser email defaults to your Hostinger account&#8217;s email.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #feedaf80;border-color: #fbc91633\">\n<p>Hostinger shows the PocketBase superuser password only once and doesn&#8217;t store it. Save it in your password manager right away.<\/p>\n<\/div>\n<h2 id=\"h-sign-in-to-the-pocketbase-dashboard-of-a-hostinger-website\">Sign in to the PocketBase dashboard of a Hostinger website<\/h2>\n<ol>\n<li>Open <code>https:\/\/domain.tld\/_\/<\/code> in your browser.<\/li>\n<li>Sign in with your PocketBase superuser email and password.<\/li>\n<\/ol>\n<p>In the PocketBase dashboard, you create collections (tables), set their access rules, browse and edit records, manage your website&#8217;s users, and change PocketBase settings. Set API rules for every collection, because a rule left empty lets anyone perform that action.<\/p>\n<h2 id=\"h-check-reset-or-delete-a-pocketbase-backend-with-hostinger-connector\">Check, reset, or delete a PocketBase backend with Hostinger Connector<\/h2>\n<p>Manage an existing PocketBase backend by asking your AI assistant:<\/p>\n<ul>\n<li>To check its status and disk usage, ask &#8220;How is the PocketBase backend of domain.tld doing?&#8221;<\/li>\n<li>To set a new superuser password, ask &#8220;Reset the PocketBase superuser password for domain.tld.&#8221; The new password is shown only once, and the old one stops working immediately.<\/li>\n<li>To remove the backend, ask &#8220;Delete the PocketBase backend of domain.tld.&#8221; Your website gets the <code>\/api<\/code> and <code>\/_<\/code> paths back.<\/li>\n<\/ul>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #fed9db80;border-color: #fd3a5733\">\n<p>Deleting a PocketBase backend permanently removes all its collections, records, users, and uploaded files. Download a backup from the PocketBase dashboard under <b>Settings<\/b> \u2192 <b>Backups<\/b> first.<\/p>\n<\/div>\n<p>Your website now has its own PocketBase backend for storing visitor data, served from the same domain as your website.<\/p>\n<p><strong>Additional resources<\/strong><\/p>\n<ul>\n<li><a data-click-id=\"hgr-post-content-link-hostinger-developer-documentation-pocketbase-backend\" href=\"https:\/\/docs.hostinger.com\/websites\/pocketbase\" target=\"_blank\" rel=\"noopener\">Hostinger developer documentation: PocketBase Backend<\/a><\/li>\n<li><a data-click-id=\"hgr-post-content-link-pocketbase-documentation-collections-api-rules-authenticatio\" href=\"https:\/\/pocketbase.io\/docs\/\" target=\"_blank\" rel=\"noopener\">PocketBase documentation: collections, API rules, authentication, and SDKs<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Add a PocketBase database, user sign-in and file storage to your Hostinger website through your AI assistant.<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[216],"tags":[],"class_list":["post-25630","post","type-post","status-publish","format-standard","hentry","category-general-information-features"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/25630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=25630"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/25630\/revisions"}],"predecessor-version":[{"id":25631,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/25630\/revisions\/25631"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=25630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=25630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=25630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}