# Retrieve server settings

`opensend.server.get()`

The settings of a server a team hosts itself: whether anybody may sign up, and what each workspace on it may use.

Needs the scope: `workspace:read`

## Returns

The call resolves to the answer, already parsed. A call the API refuses throws `OpenSendError` with the code and the message of the answer. [SDK](https://opensend.sh/docs/sdk) lists the errors of the client itself.

- `object` ("server"): Always `server`.
- `selfHosted` (boolean): Whether a team hosts this server itself. `false` where the product is hosted for you, and nothing here can be changed there.
- `owner` (boolean): Whether the signed-in person asking owns the server. `false` for an API key.
- `signUps` (string): `open` when anybody who reaches the address may make an account, `closed` when people come in by invitation only. One of: `open`, `closed`.
- `limits` (object[]): What each workspace on the server may use, one entry for every limit that can be set. Empty where the product is hosted for you: a workspace takes its limits from its plan there.
- `limits[].id` (string): Which limit this is: `transactional`, `marketing`, `contacts`, `domains` or `members`.
- `limits[].limit` (integer | null): How much each workspace may use, or `null` where there is no limit.

## Example

TypeScript:

```ts
await opensend.server.get()
```

CLI:

```bash
opensend server get
```

Answer:

```json
{
  "object": "server",
  "selfHosted": true,
  "owner": false,
  "signUps": "open",
  "limits": [
    {
      "id": "transactional",
      "limit": 25000
    },
    {
      "id": "marketing",
      "limit": null
    },
    {
      "id": "contacts",
      "limit": 10000
    },
    {
      "id": "domains",
      "limit": null
    },
    {
      "id": "members",
      "limit": null
    }
  ]
}
```
