# Domains mailbox choose

`PUT /workspace/mailbox` · Rivier · domains

Choose which of the organisation's mailboxes this project sends from and answers on. It must be one the person may use at Praecise.

- Scope: domains:write
- Sdk: domains.mailbox.choose
- Cli: domains mailbox choose

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "address": {
      "type": "string",
      "minLength": 3,
      "maxLength": 254
    }
  },
  "required": [
    "address"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X PUT 'https://api.rivier.ai/workspace/mailbox' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "address": "string"
}'
```
