402 lines
45 KiB
JSON
402 lines
45 KiB
JSON
{
|
|
"$comment": "Every public door of this site: REST routes, GraphQL operations, Next route files. One line per entry: who may use it and why it is open (or that it is closed and to whom). A new route fails `routes:check` until somebody judges it here. `--update` adds new routes with an empty reason and drops gone ones. docs/security.md \"Routes nobody has judged\".",
|
|
"routes": {
|
|
"DELETE /api/caseStudies": "delete: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"DELETE /api/caseStudies/:id": "deleteByID: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"DELETE /api/consent-records": "delete: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"DELETE /api/consent-records/:id": "deleteByID: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"DELETE /api/cookie-review": "delete: create/update: editor+; delete: admin",
|
|
"DELETE /api/cookie-review/:id": "deleteByID: create/update: editor+; delete: admin",
|
|
"DELETE /api/form-submissions": "delete: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"DELETE /api/form-submissions/:id": "deleteByID: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"DELETE /api/forms": "delete: editor+ (staffAccess)",
|
|
"DELETE /api/forms/:id": "deleteByID: editor+ (staffAccess)",
|
|
"DELETE /api/media": "delete: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"DELETE /api/media/:id": "deleteByID: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"DELETE /api/pages": "delete: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"DELETE /api/pages/:id": "deleteByID: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"DELETE /api/payload-kv": "delete: nobody (every rule false)",
|
|
"DELETE /api/payload-kv/:id": "deleteByID: nobody (every rule false)",
|
|
"DELETE /api/payload-locked-documents": "delete: Payload default: any signed-in account (owner Q3)",
|
|
"DELETE /api/payload-locked-documents/:id": "deleteByID: Payload default: any signed-in account (owner Q3)",
|
|
"DELETE /api/payload-preferences": "delete: own preferences only (Payload)",
|
|
"DELETE /api/payload-preferences/:id": "deleteByID: own preferences only (Payload)",
|
|
"DELETE /api/payload-preferences/:key": "deleteByID: own preferences only (Payload)",
|
|
"DELETE /api/posts": "delete: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"DELETE /api/posts/:id": "deleteByID: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"DELETE /api/users": "delete: create/delete/unlock: an admin with the second factor; update: admin or self; roles field: admin",
|
|
"DELETE /api/users/:id": "deleteByID: create/delete/unlock: an admin with the second factor; update: admin or self; roles field: admin",
|
|
"GET /api/access": "Payload: the signed-in account's permissions (what the panel may show); anonymous gets an empty map",
|
|
"GET /api/caseStudies": "find: anyone (published content, no drafts)",
|
|
"GET /api/caseStudies/:id": "findByID: anyone (published content, no drafts)",
|
|
"GET /api/caseStudies/count": "count: anyone (published content, no drafts)",
|
|
"GET /api/caseStudies/versions": "versions: readVersions = read (anyone (published content, no drafts)); no version history kept here",
|
|
"GET /api/caseStudies/versions/:id": "versionByID: readVersions = read (anyone (published content, no drafts)); no version history kept here",
|
|
"GET /api/consent-records": "find: admin",
|
|
"GET /api/consent-records/:id": "findByID: admin",
|
|
"GET /api/consent-records/count": "count: admin",
|
|
"GET /api/consent-records/versions": "versions: readVersions = read (admin); no version history kept here",
|
|
"GET /api/consent-records/versions/:id": "versionByID: readVersions = read (admin); no version history kept here",
|
|
"GET /api/cookie-review": "find: editor+",
|
|
"GET /api/cookie-review/:id": "findByID: editor+",
|
|
"GET /api/cookie-review/count": "count: editor+",
|
|
"GET /api/cookie-review/versions": "versions: readVersions = read (editor+); no version history kept here",
|
|
"GET /api/cookie-review/versions/:id": "versionByID: readVersions = read (editor+); no version history kept here",
|
|
"GET /api/form-submissions": "find: editor+ (visitors' personal data)",
|
|
"GET /api/form-submissions/:id": "findByID: editor+ (visitors' personal data)",
|
|
"GET /api/form-submissions/count": "count: editor+ (visitors' personal data)",
|
|
"GET /api/form-submissions/versions": "versions: readVersions = read (editor+ (visitors' personal data)); no version history kept here",
|
|
"GET /api/form-submissions/versions/:id": "versionByID: readVersions = read (editor+ (visitors' personal data)); no version history kept here",
|
|
"GET /api/forms": "find: anyone (the form renders from it; the Emails tab is staff-only by field access)",
|
|
"GET /api/forms/:id": "findByID: anyone (the form renders from it; the Emails tab is staff-only by field access)",
|
|
"GET /api/forms/count": "count: anyone (the form renders from it; the Emails tab is staff-only by field access)",
|
|
"GET /api/forms/versions": "versions: readVersions = read (anyone (the form renders from it; the Emails tab is staff-only by field access)); no version history kept here",
|
|
"GET /api/forms/versions/:id": "versionByID: readVersions = read (anyone (the form renders from it; the Emails tab is staff-only by field access)); no version history kept here",
|
|
"GET /api/globals/company": "find: anyone (company data for JSON-LD / contact)",
|
|
"GET /api/globals/company/versions": "versions: readVersions = read (anyone (company data for JSON-LD / contact)); no version history kept here",
|
|
"GET /api/globals/company/versions/:id": "versionByID: readVersions = read (anyone (company data for JSON-LD / contact)); no version history kept here",
|
|
"GET /api/globals/cookie-crawl": "find: editor+",
|
|
"GET /api/globals/cookie-crawl/versions": "versions: readVersions = read (editor+); no version history kept here",
|
|
"GET /api/globals/cookie-crawl/versions/:id": "versionByID: readVersions = read (editor+); no version history kept here",
|
|
"GET /api/globals/cookie-settings": "find: anyone (banner texts, policy version)",
|
|
"GET /api/globals/cookie-settings/versions": "versions: readVersions = read (anyone (banner texts, policy version)); no version history kept here",
|
|
"GET /api/globals/cookie-settings/versions/:id": "versionByID: readVersions = read (anyone (banner texts, policy version)); no version history kept here",
|
|
"GET /api/globals/footer": "find: anyone (site footer)",
|
|
"GET /api/globals/footer/versions": "versions: readVersions = read (anyone (site footer)); no version history kept here",
|
|
"GET /api/globals/footer/versions/:id": "versionByID: readVersions = read (anyone (site footer)); no version history kept here",
|
|
"GET /api/globals/header": "find: anyone (site navigation)",
|
|
"GET /api/globals/header/versions": "versions: readVersions = read (anyone (site navigation)); no version history kept here",
|
|
"GET /api/globals/header/versions/:id": "versionByID: readVersions = read (anyone (site navigation)); no version history kept here",
|
|
"GET /api/globals/notifications": "find: anyone (public-facing texts)",
|
|
"GET /api/globals/notifications/versions": "versions: readVersions = read (anyone (public-facing texts)); no version history kept here",
|
|
"GET /api/globals/notifications/versions/:id": "versionByID: readVersions = read (anyone (public-facing texts)); no version history kept here",
|
|
"GET /api/globals/site-integrations": "find: admin (SMTP, keys, integrations)",
|
|
"GET /api/globals/site-integrations/versions": "versions: readVersions = read (admin (SMTP, keys, integrations)); no version history kept here",
|
|
"GET /api/globals/site-integrations/versions/:id": "versionByID: readVersions = read (admin (SMTP, keys, integrations)); no version history kept here",
|
|
"GET /api/globals/site-settings": "find: anyone (brand, homepage, construction mode)",
|
|
"GET /api/globals/site-settings/versions": "versions: readVersions = read (anyone (brand, homepage, construction mode)); no version history kept here",
|
|
"GET /api/globals/site-settings/versions/:id": "versionByID: readVersions = read (anyone (brand, homepage, construction mode)); no version history kept here",
|
|
"GET /api/iapl/mail-relay/status": "mail service status in the panel: admin",
|
|
"GET /api/ipal/admin-icon": "public by design: the panel's favicon (white-label)",
|
|
"GET /api/ipal/admin-language": "public by design: the sign-in panel's language links (whiteLabel.signIn); writes Payload's payload-lng cookie for a supported language and 303s to a path inside the admin route; 400 otherwise",
|
|
"GET /api/ipal/admin-og": "public by design: the panel's link-preview image",
|
|
"GET /api/ipal/cookie-approval": "cookie approval list: editor+ with the second factor (cookieScanner.access)",
|
|
"GET /api/ipal/cookie-crawl": "crawl status: editor+ with the second factor",
|
|
"GET /api/ipal/cookie-scan": "what a scan covers: editor+ with the second factor",
|
|
"GET /api/ipal/doctor": "404 until IAPL_DOCTOR_TOKEN (32+ chars) is set; then that bearer token (or doctor.access); 10 per minute per address",
|
|
"GET /api/media": "find: anyone (public files)",
|
|
"GET /api/media/:id": "findByID: anyone (public files)",
|
|
"GET /api/media/count": "count: anyone (public files)",
|
|
"GET /api/media/file/:filename": "serve a file: anyone (public files)",
|
|
"GET /api/media/paste-url/:id?": "Payload: the server fetches a URL into an upload; signed-in AND media create/update rule AND upload.pasteURL on (off here: 400); safeFetch refuses private addresses",
|
|
"GET /api/media/versions": "versions: readVersions = read (anyone (public files)); no version history kept here",
|
|
"GET /api/media/versions/:id": "versionByID: readVersions = read (anyone (public files)); no version history kept here",
|
|
"GET /api/pages": "find: anyone (published content, no drafts)",
|
|
"GET /api/pages/:id": "findByID: anyone (published content, no drafts)",
|
|
"GET /api/pages/count": "count: anyone (published content, no drafts)",
|
|
"GET /api/pages/versions": "versions: readVersions = read (anyone (published content, no drafts)); no version history kept here",
|
|
"GET /api/pages/versions/:id": "versionByID: readVersions = read (anyone (published content, no drafts)); no version history kept here",
|
|
"GET /api/payload-kv": "find: nobody (Payload: every rule false; the plugin keeps 2FA counts and the mail-service token here)",
|
|
"GET /api/payload-kv/:id": "findByID: nobody (Payload: every rule false; the plugin keeps 2FA counts and the mail-service token here)",
|
|
"GET /api/payload-kv/count": "count: nobody (Payload: every rule false; the plugin keeps 2FA counts and the mail-service token here)",
|
|
"GET /api/payload-kv/versions": "versions: readVersions = read (nobody (Payload: every rule false; the plugin keeps 2FA counts and the mail-service token here)); no version history kept here",
|
|
"GET /api/payload-kv/versions/:id": "versionByID: readVersions = read (nobody (Payload: every rule false; the plugin keeps 2FA counts and the mail-service token here)); no version history kept here",
|
|
"GET /api/payload-locked-documents": "find: Payload default: any signed-in account (owner Q3)",
|
|
"GET /api/payload-locked-documents/:id": "findByID: Payload default: any signed-in account (owner Q3)",
|
|
"GET /api/payload-locked-documents/count": "count: Payload default: any signed-in account (owner Q3)",
|
|
"GET /api/payload-locked-documents/versions": "versions: readVersions = read (Payload default: any signed-in account (owner Q3)); no version history kept here",
|
|
"GET /api/payload-locked-documents/versions/:id": "versionByID: readVersions = read (Payload default: any signed-in account (owner Q3)); no version history kept here",
|
|
"GET /api/payload-preferences": "find: the signed-in account's own preferences only (Payload)",
|
|
"GET /api/payload-preferences/:id": "findByID: the signed-in account's own preferences only (Payload)",
|
|
"GET /api/payload-preferences/:key": "findByID: the signed-in account's own preferences only (Payload)",
|
|
"GET /api/payload-preferences/count": "count: the signed-in account's own preferences only (Payload)",
|
|
"GET /api/payload-preferences/versions": "versions: readVersions = read (the signed-in account's own preferences only (Payload)); no version history kept here",
|
|
"GET /api/payload-preferences/versions/:id": "versionByID: readVersions = read (the signed-in account's own preferences only (Payload)); no version history kept here",
|
|
"GET /api/posts": "find: anyone (published content, no drafts)",
|
|
"GET /api/posts/:id": "findByID: anyone (published content, no drafts)",
|
|
"GET /api/posts/count": "count: anyone (published content, no drafts)",
|
|
"GET /api/posts/versions": "versions: readVersions = read (anyone (published content, no drafts)); no version history kept here",
|
|
"GET /api/posts/versions/:id": "versionByID: readVersions = read (anyone (published content, no drafts)); no version history kept here",
|
|
"GET /api/users": "find: an admin, or the account itself (adminOrSelfIn users)",
|
|
"GET /api/users/:id": "findByID: an admin, or the account itself (adminOrSelfIn users)",
|
|
"GET /api/users/count": "count: an admin, or the account itself (adminOrSelfIn users)",
|
|
"GET /api/users/init": "Payload: whether a first account exists (true/false only)",
|
|
"GET /api/users/me": "Payload: the signed-in account itself, or null; no other account",
|
|
"GET /api/users/versions": "versions: readVersions = read (an admin, or the account itself (adminOrSelfIn users)); no version history kept here",
|
|
"GET /api/users/versions/:id": "versionByID: readVersions = read (an admin, or the account itself (adminOrSelfIn users)); no version history kept here",
|
|
"PATCH /api/caseStudies": "update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"PATCH /api/caseStudies/:id": "updateByID: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"PATCH /api/consent-records": "update: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"PATCH /api/consent-records/:id": "updateByID: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"PATCH /api/cookie-review": "update: create/update: editor+; delete: admin",
|
|
"PATCH /api/cookie-review/:id": "updateByID: create/update: editor+; delete: admin",
|
|
"PATCH /api/form-submissions": "update: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"PATCH /api/form-submissions/:id": "updateByID: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"PATCH /api/forms": "update: editor+ (staffAccess)",
|
|
"PATCH /api/forms/:id": "updateByID: editor+ (staffAccess)",
|
|
"PATCH /api/media": "update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"PATCH /api/media/:id": "updateByID: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"PATCH /api/pages": "update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"PATCH /api/pages/:id": "updateByID: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"PATCH /api/payload-kv": "update: nobody (every rule false)",
|
|
"PATCH /api/payload-kv/:id": "updateByID: nobody (every rule false)",
|
|
"PATCH /api/payload-locked-documents": "update: Payload default: any signed-in account (owner Q3)",
|
|
"PATCH /api/payload-locked-documents/:id": "updateByID: Payload default: any signed-in account (owner Q3)",
|
|
"PATCH /api/payload-preferences": "update: own preferences only (Payload)",
|
|
"PATCH /api/payload-preferences/:id": "updateByID: own preferences only (Payload)",
|
|
"PATCH /api/posts": "update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"PATCH /api/posts/:id": "updateByID: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"PATCH /api/users": "update: create/delete/unlock: an admin with the second factor; update: admin or self; roles field: admin",
|
|
"PATCH /api/users/:id": "updateByID: create/delete/unlock: an admin with the second factor; update: admin or self; roles field: admin",
|
|
"POST /api/admin/remove-user-totp": "2FA: an admin removes another account's second factor",
|
|
"POST /api/admin/reset-user-totp": "2FA: an admin resets another account's second factor",
|
|
"POST /api/caseStudies": "create: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/caseStudies/:id/duplicate": "duplicate: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/caseStudies/access/:id?": "the signed-in account's own permissions on caseStudies",
|
|
"POST /api/caseStudies/versions/:id": "restore a version: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/consent-records": "create: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"POST /api/consent-records/:id/duplicate": "duplicate: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"POST /api/consent-records/access/:id?": "the signed-in account's own permissions on consent-records",
|
|
"POST /api/consent-records/versions/:id": "restore a version: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"POST /api/cookie-review": "create: create/update: editor+; delete: admin",
|
|
"POST /api/cookie-review/:id/duplicate": "duplicate: create/update: editor+; delete: admin",
|
|
"POST /api/cookie-review/access/:id?": "the signed-in account's own permissions on cookie-review",
|
|
"POST /api/cookie-review/versions/:id": "restore a version: create/update: editor+; delete: admin",
|
|
"POST /api/form-submissions": "create: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"POST /api/form-submissions/:id/duplicate": "duplicate: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"POST /api/form-submissions/access/:id?": "the signed-in account's own permissions on form-submissions",
|
|
"POST /api/form-submissions/versions/:id": "restore a version: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"POST /api/forms": "create: editor+ (staffAccess)",
|
|
"POST /api/forms/:id/duplicate": "duplicate: editor+ (staffAccess)",
|
|
"POST /api/forms/access/:id?": "the signed-in account's own permissions on forms",
|
|
"POST /api/forms/versions/:id": "restore a version: editor+ (staffAccess)",
|
|
"POST /api/globals/company": "update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/globals/company/access": "the signed-in account's own permissions on globals/company",
|
|
"POST /api/globals/company/versions/:id": "restore a version: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/globals/cookie-crawl": "update: admin; the crawl endpoints write it after their own checks",
|
|
"POST /api/globals/cookie-crawl/access": "the signed-in account's own permissions on globals/cookie-crawl",
|
|
"POST /api/globals/cookie-crawl/versions/:id": "restore a version: admin; the crawl endpoints write it after their own checks",
|
|
"POST /api/globals/cookie-settings": "update: editor+",
|
|
"POST /api/globals/cookie-settings/access": "the signed-in account's own permissions on globals/cookie-settings",
|
|
"POST /api/globals/cookie-settings/versions/:id": "restore a version: editor+",
|
|
"POST /api/globals/footer": "update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/globals/footer/access": "the signed-in account's own permissions on globals/footer",
|
|
"POST /api/globals/footer/versions/:id": "restore a version: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/globals/header": "update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/globals/header/access": "the signed-in account's own permissions on globals/header",
|
|
"POST /api/globals/header/versions/:id": "restore a version: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/globals/notifications": "update: editor+",
|
|
"POST /api/globals/notifications/access": "the signed-in account's own permissions on globals/notifications",
|
|
"POST /api/globals/notifications/versions/:id": "restore a version: editor+",
|
|
"POST /api/globals/site-integrations": "update: admin; secrets write-only",
|
|
"POST /api/globals/site-integrations/access": "the signed-in account's own permissions on globals/site-integrations",
|
|
"POST /api/globals/site-integrations/versions/:id": "restore a version: admin; secrets write-only",
|
|
"POST /api/globals/site-settings": "update: editor+",
|
|
"POST /api/globals/site-settings/access": "the signed-in account's own permissions on globals/site-settings",
|
|
"POST /api/globals/site-settings/versions/:id": "restore a version: editor+",
|
|
"POST /api/iapl/mail-relay/confirm": "public by design: the mail service's call-back; 404 unless it carries a nonce this site made in the last 5 min (single use)",
|
|
"POST /api/iapl/mail-relay/connect": "mail service, connect with a pasted token: admin",
|
|
"POST /api/iapl/mail-relay/disconnect": "mail service, disconnect: admin",
|
|
"POST /api/ipal/consent": "public by design: a visitor's own banner choice (random id, no personal data), body capped at 4 KiB",
|
|
"POST /api/ipal/cookie-approval": "approve cookies: editor+ with the second factor",
|
|
"POST /api/ipal/cookie-crawl": "start a crawl: editor+, or Bearer IAPL_COOKIE_SCAN_TOKEN (the schedule); only of the configured site URL",
|
|
"POST /api/ipal/cookie-crawl/results": "the crawler's call-back: Bearer IAPL_COOKIE_SCAN_TOKEN AND the jobId of the running crawl",
|
|
"POST /api/ipal/cookie-scan": "run a scan: editor+ with the second factor",
|
|
"POST /api/ipal/forms/submit": "public by design: a form with files; the submitForm pipeline (rate limit, Turnstile, consent, validation, file checks)",
|
|
"POST /api/ipal/test-email": "send a test e-mail: admin",
|
|
"POST /api/ipal/two-factor/reset": "reset another account's 2FA set-up window: admin signed in with the second factor",
|
|
"POST /api/media": "create: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/media/:id/duplicate": "duplicate: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/media/access/:id?": "the signed-in account's own permissions on media",
|
|
"POST /api/media/versions/:id": "restore a version: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/pages": "create: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/pages/:id/duplicate": "duplicate: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/pages/access/:id?": "the signed-in account's own permissions on pages",
|
|
"POST /api/pages/versions/:id": "restore a version: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/payload-kv": "create: nobody (every rule false)",
|
|
"POST /api/payload-kv/:id/duplicate": "duplicate: nobody (every rule false)",
|
|
"POST /api/payload-kv/access/:id?": "the signed-in account's own permissions on payload-kv",
|
|
"POST /api/payload-kv/versions/:id": "restore a version: nobody (every rule false)",
|
|
"POST /api/payload-locked-documents": "create: Payload default: any signed-in account (owner Q3)",
|
|
"POST /api/payload-locked-documents/:id/duplicate": "duplicate: Payload default: any signed-in account (owner Q3)",
|
|
"POST /api/payload-locked-documents/access/:id?": "the signed-in account's own permissions on payload-locked-documents",
|
|
"POST /api/payload-locked-documents/versions/:id": "restore a version: Payload default: any signed-in account (owner Q3)",
|
|
"POST /api/payload-preferences": "create: own preferences only (Payload)",
|
|
"POST /api/payload-preferences/:id/duplicate": "duplicate: own preferences only (Payload)",
|
|
"POST /api/payload-preferences/:key": "updateByID: own preferences only (Payload)",
|
|
"POST /api/payload-preferences/access/:id?": "the signed-in account's own permissions on payload-preferences",
|
|
"POST /api/payload-preferences/versions/:id": "restore a version: own preferences only (Payload)",
|
|
"POST /api/plugin-seo/generate-description": "SEO plugin (panel button): Payload default (signed-in account); text from the document, nothing stored",
|
|
"POST /api/plugin-seo/generate-image": "SEO plugin (panel button): Payload default (signed-in account); nothing stored",
|
|
"POST /api/plugin-seo/generate-title": "SEO plugin (panel button): Payload default (signed-in account); nothing stored",
|
|
"POST /api/plugin-seo/generate-url": "SEO plugin (panel button): Payload default (signed-in account); nothing stored",
|
|
"POST /api/posts": "create: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/posts/:id/duplicate": "duplicate: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/posts/access/:id?": "the signed-in account's own permissions on posts",
|
|
"POST /api/posts/versions/:id": "restore a version: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"POST /api/remove-totp": "2FA: the signed-in account's own second factor, fully signed in",
|
|
"POST /api/setup-totp": "2FA: sets up the signed-in account's own authenticator; same-origin only",
|
|
"POST /api/users": "create: create/delete/unlock: an admin with the second factor; update: admin or self; roles field: admin",
|
|
"POST /api/users/access/:id?": "Payload: the signed-in account's permissions for one document",
|
|
"POST /api/users/first-register": "only while no account exists (the first becomes admin); 403 afterwards (accounts.firstUserRoute)",
|
|
"POST /api/users/forgot-password": "public by design: the same answer for a real and an invented address",
|
|
"POST /api/users/login": "public by design: sign-in; Payload's maxLoginAttempts, the 2FA step follows",
|
|
"POST /api/users/logout": "public by design: ends the caller's own session",
|
|
"POST /api/users/refresh-token": "the signed-in account's own token only",
|
|
"POST /api/users/reset-password": "public by design: needs the e-mailed reset token",
|
|
"POST /api/users/unlock": "admin with the second factor (accounts.adminOnlyWrite)",
|
|
"POST /api/users/verify/:id": "public by design: needs the e-mailed verification token (verify is off on users)",
|
|
"POST /api/users/versions/:id": "restore a version: create/delete/unlock: an admin with the second factor; update: admin or self; roles field: admin",
|
|
"POST /api/verify-totp": "2FA (payload-2fa): the signed-in account's own code; same-origin only, 5 tries per account in 10 min",
|
|
"graphql mutation createCaseStudy": "GraphQL create: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation createConsentRecord": "GraphQL create: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"graphql mutation createCookieReview": "GraphQL create: create/update: editor+; delete: admin",
|
|
"graphql mutation createForm": "GraphQL create: editor+ (staffAccess)",
|
|
"graphql mutation createFormSubmission": "GraphQL create: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"graphql mutation createMedia": "GraphQL create: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation createPage": "GraphQL create: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation createPayloadKv": "GraphQL create: nobody (every rule false)",
|
|
"graphql mutation createPayloadLockedDocument": "GraphQL create: Payload default: any signed-in account (owner Q3)",
|
|
"graphql mutation createPayloadPreference": "GraphQL create: own preferences only (Payload)",
|
|
"graphql mutation createPost": "GraphQL create: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation createUser": "GraphQL create: create/delete/unlock: an admin with the second factor; update: admin or self; roles field: admin",
|
|
"graphql mutation deleteCaseStudy": "GraphQL delete: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation deleteConsentRecord": "GraphQL delete: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"graphql mutation deleteCookieReview": "GraphQL delete: create/update: editor+; delete: admin",
|
|
"graphql mutation deleteForm": "GraphQL delete: editor+ (staffAccess)",
|
|
"graphql mutation deleteFormSubmission": "GraphQL delete: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"graphql mutation deleteMedia": "GraphQL delete: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation deletePage": "GraphQL delete: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation deletePayloadKv": "GraphQL delete: nobody (every rule false)",
|
|
"graphql mutation deletePayloadLockedDocument": "GraphQL delete: Payload default: any signed-in account (owner Q3)",
|
|
"graphql mutation deletePayloadPreference": "GraphQL delete: own preferences only (Payload)",
|
|
"graphql mutation deletePost": "GraphQL delete: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation deleteUser": "GraphQL delete: create/delete/unlock: an admin with the second factor; update: admin or self; roles field: admin",
|
|
"graphql mutation duplicateCaseStudy": "GraphQL duplicate: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation duplicateConsentRecord": "GraphQL duplicate: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"graphql mutation duplicateCookieReview": "GraphQL duplicate: create/update: editor+; delete: admin",
|
|
"graphql mutation duplicateForm": "GraphQL duplicate: editor+ (staffAccess)",
|
|
"graphql mutation duplicateFormSubmission": "GraphQL duplicate: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"graphql mutation duplicateMedia": "GraphQL duplicate: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation duplicatePage": "GraphQL duplicate: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation duplicatePayloadKv": "GraphQL duplicate: nobody (every rule false)",
|
|
"graphql mutation duplicatePayloadLockedDocument": "GraphQL duplicate: Payload default: any signed-in account (owner Q3)",
|
|
"graphql mutation duplicatePayloadPreference": "GraphQL duplicate: own preferences only (Payload)",
|
|
"graphql mutation duplicatePost": "GraphQL duplicate: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation forgotPasswordUser": "public by design: the same answer for a real and an invented address",
|
|
"graphql mutation loginUser": "public by design: sign-in (as POST /api/users/login)",
|
|
"graphql mutation logoutUser": "public by design: ends the caller's own session",
|
|
"graphql mutation refreshTokenUser": "the signed-in account's own token only",
|
|
"graphql mutation resetPasswordUser": "public by design: needs the e-mailed reset token",
|
|
"graphql mutation unlockUser": "admin with the second factor (accounts.adminOnlyWrite)",
|
|
"graphql mutation updateCaseStudy": "GraphQL update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation updateCompany": "GraphQL update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation updateConsentRecord": "GraphQL update: nobody over the API (create/update false); delete: admin; visitors write through POST /api/ipal/consent",
|
|
"graphql mutation updateCookieCrawl": "GraphQL update: admin; the crawl endpoints write it after their own checks",
|
|
"graphql mutation updateCookieReview": "GraphQL update: create/update: editor+; delete: admin",
|
|
"graphql mutation updateCookieSetting": "GraphQL update: editor+",
|
|
"graphql mutation updateFooter": "GraphQL update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation updateForm": "GraphQL update: editor+ (staffAccess)",
|
|
"graphql mutation updateFormSubmission": "GraphQL update: create: any signed-in account (owner Q1); update: Payload default; delete: admin",
|
|
"graphql mutation updateHeader": "GraphQL update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation updateMedia": "GraphQL update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation updateNotification": "GraphQL update: editor+",
|
|
"graphql mutation updatePage": "GraphQL update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation updatePayloadKv": "GraphQL update: nobody (every rule false)",
|
|
"graphql mutation updatePayloadLockedDocument": "GraphQL update: Payload default: any signed-in account (owner Q3)",
|
|
"graphql mutation updatePayloadPreference": "GraphQL update: own preferences only (Payload)",
|
|
"graphql mutation updatePost": "GraphQL update: Payload default (any signed-in account; one login collection here, so staff only — a visitor collection would reach it: owner Q3)",
|
|
"graphql mutation updateSiteIntegration": "GraphQL update: admin; secrets write-only",
|
|
"graphql mutation updateSiteSetting": "GraphQL update: editor+",
|
|
"graphql mutation updateUser": "GraphQL update: create/delete/unlock: an admin with the second factor; update: admin or self; roles field: admin",
|
|
"graphql mutation verifyEmailUser": "public by design: needs the e-mailed verification token (verify is off on users)",
|
|
"graphql query Access": "Payload: the signed-in account's permissions; anonymous gets an empty map",
|
|
"graphql query CaseStudies": "GraphQL find: anyone (published content, no drafts)",
|
|
"graphql query CaseStudy": "GraphQL find: anyone (published content, no drafts)",
|
|
"graphql query Company": "GraphQL find: anyone (company data for JSON-LD / contact)",
|
|
"graphql query ConsentRecord": "GraphQL find: admin",
|
|
"graphql query ConsentRecords": "GraphQL find: admin",
|
|
"graphql query CookieCrawl": "GraphQL find: editor+",
|
|
"graphql query CookieReview": "GraphQL find: editor+",
|
|
"graphql query CookieReviews": "GraphQL find: editor+",
|
|
"graphql query CookieSetting": "GraphQL find: anyone (banner texts, policy version)",
|
|
"graphql query Footer": "GraphQL find: anyone (site footer)",
|
|
"graphql query Form": "GraphQL find: anyone (the form renders from it; the Emails tab is staff-only by field access)",
|
|
"graphql query FormSubmission": "GraphQL find: editor+ (visitors' personal data)",
|
|
"graphql query FormSubmissions": "GraphQL find: editor+ (visitors' personal data)",
|
|
"graphql query Forms": "GraphQL find: anyone (the form renders from it; the Emails tab is staff-only by field access)",
|
|
"graphql query Header": "GraphQL find: anyone (site navigation)",
|
|
"graphql query Media": "GraphQL find: anyone (public files)",
|
|
"graphql query Notification": "GraphQL find: anyone (public-facing texts)",
|
|
"graphql query Page": "GraphQL find: anyone (published content, no drafts)",
|
|
"graphql query Pages": "GraphQL find: anyone (published content, no drafts)",
|
|
"graphql query PayloadKv": "GraphQL find: nobody (Payload: every rule false; the plugin keeps 2FA counts and the mail-service token here)",
|
|
"graphql query PayloadKvs": "GraphQL find: nobody (Payload: every rule false; the plugin keeps 2FA counts and the mail-service token here)",
|
|
"graphql query PayloadLockedDocument": "GraphQL find: Payload default: any signed-in account (owner Q3)",
|
|
"graphql query PayloadLockedDocuments": "GraphQL find: Payload default: any signed-in account (owner Q3)",
|
|
"graphql query PayloadPreference": "GraphQL find: the signed-in account's own preferences only (Payload)",
|
|
"graphql query PayloadPreferences": "GraphQL find: the signed-in account's own preferences only (Payload)",
|
|
"graphql query Post": "GraphQL find: anyone (published content, no drafts)",
|
|
"graphql query Posts": "GraphQL find: anyone (published content, no drafts)",
|
|
"graphql query SiteIntegration": "GraphQL find: admin (SMTP, keys, integrations)",
|
|
"graphql query SiteSetting": "GraphQL find: anyone (brand, homepage, construction mode)",
|
|
"graphql query User": "GraphQL find: an admin, or the account itself (adminOrSelfIn users)",
|
|
"graphql query Users": "GraphQL find: an admin, or the account itself (adminOrSelfIn users)",
|
|
"graphql query allMedia": "GraphQL find: anyone (public files)",
|
|
"graphql query countCaseStudies": "GraphQL count: anyone (published content, no drafts)",
|
|
"graphql query countConsentRecords": "GraphQL count: admin",
|
|
"graphql query countCookieReviews": "GraphQL count: editor+",
|
|
"graphql query countFormSubmissions": "GraphQL count: editor+ (visitors' personal data)",
|
|
"graphql query countForms": "GraphQL count: anyone (the form renders from it; the Emails tab is staff-only by field access)",
|
|
"graphql query countPages": "GraphQL count: anyone (published content, no drafts)",
|
|
"graphql query countPayloadKvs": "GraphQL count: nobody (Payload: every rule false; the plugin keeps 2FA counts and the mail-service token here)",
|
|
"graphql query countPayloadLockedDocuments": "GraphQL count: Payload default: any signed-in account (owner Q3)",
|
|
"graphql query countPayloadPreferences": "GraphQL count: the signed-in account's own preferences only (Payload)",
|
|
"graphql query countPosts": "GraphQL count: anyone (published content, no drafts)",
|
|
"graphql query countUsers": "GraphQL count: an admin, or the account itself (adminOrSelfIn users)",
|
|
"graphql query countallMedia": "GraphQL count: anyone (public files)",
|
|
"graphql query docAccessCaseStudy": "GraphQL the signed-in account's own permissions on caseStudies",
|
|
"graphql query docAccessCompany": "GraphQL the signed-in account's own permissions on globals/company",
|
|
"graphql query docAccessConsentRecord": "GraphQL the signed-in account's own permissions on consent-records",
|
|
"graphql query docAccessCookieCrawl": "GraphQL the signed-in account's own permissions on globals/cookie-crawl",
|
|
"graphql query docAccessCookieReview": "GraphQL the signed-in account's own permissions on cookie-review",
|
|
"graphql query docAccessCookieSetting": "GraphQL the signed-in account's own permissions on globals/cookie-settings",
|
|
"graphql query docAccessFooter": "GraphQL the signed-in account's own permissions on globals/footer",
|
|
"graphql query docAccessForm": "GraphQL the signed-in account's own permissions on forms",
|
|
"graphql query docAccessFormSubmission": "GraphQL the signed-in account's own permissions on form-submissions",
|
|
"graphql query docAccessHeader": "GraphQL the signed-in account's own permissions on globals/header",
|
|
"graphql query docAccessMedia": "GraphQL the signed-in account's own permissions on media",
|
|
"graphql query docAccessNotification": "GraphQL the signed-in account's own permissions on globals/notifications",
|
|
"graphql query docAccessPage": "GraphQL the signed-in account's own permissions on pages",
|
|
"graphql query docAccessPayloadKv": "GraphQL the signed-in account's own permissions on payload-kv",
|
|
"graphql query docAccessPayloadLockedDocument": "GraphQL the signed-in account's own permissions on payload-locked-documents",
|
|
"graphql query docAccessPayloadPreference": "GraphQL the signed-in account's own permissions on payload-preferences",
|
|
"graphql query docAccessPost": "GraphQL the signed-in account's own permissions on posts",
|
|
"graphql query docAccessSiteIntegration": "GraphQL the signed-in account's own permissions on globals/site-integrations",
|
|
"graphql query docAccessSiteSetting": "GraphQL the signed-in account's own permissions on globals/site-settings",
|
|
"graphql query docAccessUser": "GraphQL the signed-in account's own permissions on users",
|
|
"graphql query initializedUser": "Payload: whether a first account exists (true/false only)",
|
|
"graphql query meUser": "Payload: the signed-in account itself, or null",
|
|
"next DELETE /api/[...slug]": "Payload's REST catch-all; each route behind it is listed above",
|
|
"next GET /api/[...slug]": "Payload's REST catch-all; each route behind it is listed above",
|
|
"next GET /api/graphql-playground": "Payload's GraphQL playground: 404 in production (closed-doors spec)",
|
|
"next GET /api/health": "public by design: liveness for Coolify (ok / database reachable, nothing else)",
|
|
"next GET /api/mcp": "public by design: read-only MCP server of published content (GEO)",
|
|
"next GET /indexnow-key.txt": "public by design: the IndexNow key file (proves the site owns the key)",
|
|
"next GET /llms-full.txt": "public by design: published content for AI assistants",
|
|
"next GET /llms.txt": "public by design: published content index for AI assistants",
|
|
"next GET /manifest.webmanifest": "public by design: web app manifest",
|
|
"next GET /md/[locale]/[[...slug]]": "public by design: Markdown copy of published pages (GEO)",
|
|
"next GET /robots.txt": "public by design: robots rules",
|
|
"next GET /sitemap.xml": "public by design: published pages only",
|
|
"next OPTIONS /api/[...slug]": "CORS preflight of the REST API (no data)",
|
|
"next OPTIONS /api/graphql": "CORS preflight of GraphQL (no data)",
|
|
"next PATCH /api/[...slug]": "Payload's REST catch-all; each route behind it is listed above",
|
|
"next POST /api/[...slug]": "Payload's REST catch-all; each route behind it is listed above",
|
|
"next POST /api/csp-report": "public by design: browsers post CSP violation reports; size-capped, logged only",
|
|
"next POST /api/graphql": "Payload's GraphQL; every operation is listed below with the same rules as REST",
|
|
"next POST /api/mcp": "public by design: read-only MCP server of published content (GEO); no write tool",
|
|
"next PUT /api/[...slug]": "Payload's REST catch-all (no Payload route answers PUT)"
|
|
}
|
|
}
|