# Connect the workspace's own intake mailbox

Starts the Google consent for the address the workspace typed (`address`), preselecting it, and answers `authorizeUrl`. The callback refuses a grant from an account that neither is that address nor has Gmail deliver it, and names the account that was picked.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/workspace/processor/google`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "address": "string",
    "returnTo": "string"
  },
  "params": {},
  "query": {}
}
```

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