# 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 command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. [Output and scripts](https://opensend.sh/docs/scripting) lists the codes.

- `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

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
    }
  ]
}
```
