Use these placeholders when making requests. Substitute from environment at execution time; never print secret values. Always create the site in site-build folder.
- Base:
{{PB_BASE_URL}} - Auth:
Authorization: Bearer {{SITE_DEPLOY_TOKEN}}
- POST
{{PB_BASE_URL}}/api/site/deploy - Body:
multipart/form-datafile= zip of built site (e.g. contents ofdist/)message(optional) = short note
- GET
{{PB_BASE_URL}}/api/site/revisions?limit=20
- POST
{{PB_BASE_URL}}/api/site/rollback - Body: JSON
{ "revisionId": "<id>" }
- No DELETE endpoint. User can remove old revisions via PocketBase Admin UI (delete record); a delete hook will remove the release directory on disk. Do not delete the current revision.