Read the workspace
The workspace your token belongs to, and its workspace-level settings.
GET https://sitepaste.com/api/v1/public/workspace
Requires the settings scope.
Usage
curl "https://sitepaste.com/api/v1/public/workspace" \
-H "Authorization: Bearer $TOKEN"
Authorizations
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication. |
Response
{
"id": "wsb347dq94u7",
"username": "studio",
"defaultSiteId": "s7k2m0dq1p3z"
}
defaultSiteId is the site the literal default names wherever a path takes a {siteId}. It is null for a workspace with no default set. Change it with PATCH /workspace.