# Connect the workspace's own Outlook intake mailbox

Starts the Microsoft consent for the address the workspace typed (`address`), preselecting it, and answers `authorizeUrl` — the Outlook / Microsoft 365 twin of the Google door. The callback refuses a grant from an account that neither is that address nor has it among its Exchange addresses, and names the account that was picked. 404 when this deployment offers no Microsoft consent.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/workspace/processor/microsoft`

## Request body

Content type: `application/json`.

```json
{
  "address": "string",
  "returnTo": "string"
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "authorizeUrl": "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"
}
```
