# Add an inbound address

Creates an address at a verified domain and says where mail arriving there goes: a pack page or board (an unmatched message opens a new row) or a member (the thread becomes theirs). Refused with 409 if the domain is not verified yet, or if the address is already receiving somewhere.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/workspace/domains/{id}/inbound`

## Parameters

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

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "localPart": "string",
    "routesTo": {
      "kind": "string",
      "ref": "string"
    }
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "active": true,
    "address": "string",
    "createdAt": "string",
    "domainId": "",
    "id": "",
    "localPart": "string",
    "routesTo": {
      "kind": "string",
      "ref": "string"
    }
  }
}
```

### 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"
}
```
