DorkOS
ApiCommunity connectionsRefSpaceSettings

Read a space’s settings

GET
/api/community-connections/{ref}/space/settings

Preview. This operation may change in any release.

Only the owner of this DorkOS can call this route, as a person: with login on, from their signed-in browser session; with login off, at this computer. No agent can. Only from the app: an API key or any other bearer, an approval token, another site’s page and a mini app’s frame are refused too. Read through this connection, which never sends its grant to the browser. When the space cannot be reached, the last value it sent comes back with offline: true. Every answer is Cache-Control: no-store. Read-only: changes happen on the space’s own settings page.

Authorization

__Secure-better-auth.session_token<token>

The sign-in cookie a browser gets when a person signs in to DorkOS. An installed DorkOS on port 4242 names it __Secure-better-auth.session_token. On any other port the prefix carries a suffix for its data folder (better-auth-<hash>), and a development server leaves off __Secure-. From this computer, an operation that takes the sign-in cookie or a personal API key needs neither while "Ask for a password on this computer too" is off, which is how DorkOS installs (dorkos auth enable turns it on). A request from another device needs one, with one exception for now: a browser reaching a Docker container through its published port, while the container runs with DORKOS_ALLOW_INSECURE_BIND and has no owner account yet.

In: cookie

Path Parameters

ref*string

The connection’s local ref, as the connection list gives it. One that is not path-safe answers 404, like one that names no connection.

Match^[0-9A-Za-z][0-9A-Za-z_-]*$

Header Parameters

x-dorkos-community-owner?string

The owner id the app last read. When it no longer names the owner, the route answers 412 owner_changed.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/community-connections/string/space/settings"
{  "value": {    "communityId": "b3a7bb5e-2860-4aca-803b-cc380a8c5ca0",    "name": "string",    "description": "string",    "admissionPolicy": "invite_only",    "hasIcon": true,    "settingsVersion": 1,    "lifecycle": "pending_owner",    "lifecycleVersion": 1  },  "fetchedAt": "2019-08-24T14:15:22Z",  "offline": true}