# See what a CSV import would do without importing it (always a dry run)

`POST /crm/bulk/import/preview` · Rivier · contacts

See what a CSV import would do without importing it (always a dry run). The import itself needs a key with the contacts:admin scope.

- Scope: contacts:write
- Graphql: Mutation.contactsBulkImportPreview
- Sdk: contacts.bulkImport.preview
- Cli: contacts bulk import preview

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "csv": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000000
    },
    "mapping": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "maxLength": 60
      },
      "propertyNames": {
        "maxLength": 120
      }
    },
    "onExisting": {
      "type": "string",
      "enum": [
        "skip",
        "fill",
        "overwrite"
      ]
    }
  },
  "required": [
    "csv"
  ],
  "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/crm/bulk/import/preview' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "csv": "string"
}'
```
