From 3168b9a9065009a2a0737e4966dc753a1ed99d7a Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 5 Nov 2026 01:23:25 +0200 Subject: [PATCH] docs: how to talk to the live PocketBase directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Records live under /api/collections//records, and the admin client authenticates with PB_ADMIN_EMAIL/PB_ADMIN_PASSWORD — the PB_ADMIN_TOKEN in .env is not always current. --- AGENTS.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 2dea944..f32f35c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -148,6 +148,14 @@ a VPS cron syncs the files listed in `DEPLOY` into the live PB hooks volume (see `scripts/pb-hooks/README.md`). The audit hooks went live on 2026-10-17; `audit_log` has no history from before that date. +Talking to the live PB directly: authenticate as superuser with +`PB_ADMIN_EMAIL`/`PB_ADMIN_PASSWORD` via +`POST /api/collections/_superusers/auth-with-password` — that is what the +server does too (`getAdminPocketBase()`), and the `PB_ADMIN_TOKEN` in `.env` +is not always current (a 401 means re-auth, not a wrong URL). Records live +under `/api/collections//records`; the path without `/records` returns +the collection definition, not the rows. + # Giellie agent (`/giellie`) — tools come from the MCP, policy lives in one file The sidebar "Giellie Agent" is a MiniMax chat agent (`src/lib/server/giellie-*.ts`,