Palbase Workspaces API · API
POST
/workspaces/{id}/tokensCreate a workspace sync token or S3 key
Mints a sync bearer token or workspace-scoped S3 SigV4 key pair.
Called by your server, with the project's secret key.
Path
idstring · requiredRequest body
kind"sync" | "s3" · optionalaccess"rw" | "ro" · optionallabelstring · optionalttl_secondsinteger · optionalcurl
curl -X POST "https://<your-ref>.palbase.studio/workspaces/<id>/tokens" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"kind":"sync","access":"rw","label":"string","ttl_seconds":0}'Responses
201Token created.
defaultAn error envelope.
Operation CreateWorkspaceToken of workspaces's contract.