# Add an alias to the workspace's intake mailbox

Adds an address to one of the workspace's processor accounts: a plus-address of it, an address Gmail already delivers to it, or with `create: true` a new alias made at Google through the workspace's domain-wide delegation, on a domain the workspace has verified. Google's refusal comes back in Google's words with what to do.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/workspace/processor/connections/{mailbox}/aliases`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| mailbox | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "address": "string",
    "create": true
  },
  "params": {
    ":mailbox": "string"
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "addedAt": "string",
    "addedByEmail": "string",
    "address": "string",
    "createdAtGoogle": true,
    "id": "",
    "mailbox": "string",
    "purposes": [
      "string"
    ],
    "reason": "string",
    "source": "string",
    "tenantId": 1.5
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
