# Read new mail from the project's mailboxes into the inbox

`POST /workspace/inbox/sync` · Rivier · inbox

Read new mail from the project's mailboxes into the inbox. Read only: nothing is marked, moved or deleted at the source.

- Scope: inbox:write
- Graphql: Mutation.inboxMailboxSync
- Sdk: inbox.mailbox.sync
- Cli: inbox mailbox sync

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "mailbox": {
      "type": "string",
      "minLength": 3,
      "maxLength": 254
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/workspace/inbox/sync' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "mailbox": "string",
  "limit": 0
}'
```
