palbaseDocs

Palbase Workspaces API · API

POST/workspaces/{id}/tokens

Create 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 · required

Request body

kind"sync" | "s3" · optional
access"rw" | "ro" · optional
labelstring · optional
ttl_secondsinteger · optional
curl
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.