PugBase/Docs

Common errors

Every error response is JSON with an ok: false flag and an error code string, returned with the matching HTTP status:

{ "ok": false, "error": "forbidden" }

Common errors

401missing-bearerNo Authorization header, or it is not 'Bearer pgb_...'.
401malformed-keyThe key is not a well-formed pgb_ token.
401key-not-foundNo active key matches the token.
403key-revokedThe key was revoked in Settings -> Developer.
403key-expiredThe key passed its expiry date.
403forbiddenThe key owner is not a member (or, for writes, not an editor) of the workspace.
404workspace-not-foundNo workspace with that id.
PugBase x Claude Code - plan it in PugBase, build it with Claude, review it together.