# Create workspace delegation sync

Walk the delegated directory and mint an inbox for every mailbox it finds, answering how many were found, minted, already there and now watched. The provider comes from the body or the ?provider= query. Reach for it after connecting a domain, or when people have joined it since. Admin and Enterprise only.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/workspace/delegation/sync`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "provider": "string"
  },
  "params": {},
  "query": {
    "provider": "string"
  }
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "existing": 1.5,
    "found": 1.5,
    "minted": 1.5,
    "note": "string",
    "provider": "string",
    "watching": 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"
}
```
