# Take chosen conversations out as mbox, .eml files in a zip or a CSV

`POST /workspace/inbox/export` · Rivier · inbox

Take chosen conversations out as mbox, .eml files in a zip or a CSV.

- Scope: inbox:write
- Sdk: inbox.export.threads
- Cli: inbox export threads

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "threadIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "minItems": 1,
      "maxItems": 200
    },
    "format": {
      "type": "string",
      "enum": [
        "mbox",
        "eml",
        "csv"
      ],
      "default": "eml"
    },
    "includeNotes": {
      "type": "boolean"
    },
    "files": {
      "type": "boolean"
    }
  },
  "required": [
    "threadIds"
  ],
  "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/export' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "threadIds": [
    "string"
  ]
}'
```
