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
| 401 | missing-bearer | No Authorization header, or it is not 'Bearer pgb_...'. |
| 401 | malformed-key | The key is not a well-formed pgb_ token. |
| 401 | key-not-found | No active key matches the token. |
| 403 | key-revoked | The key was revoked in Settings -> Developer. |
| 403 | key-expired | The key passed its expiry date. |
| 403 | forbidden | The key owner is not a member (or, for writes, not an editor) of the workspace. |
| 404 | workspace-not-found | No workspace with that id. |