Source: https://atomic-works-test.docs-staging.pageloop.ai/api-reference/import-jobs/postapi-v1-import-jobs-validate-mapping

# Validate adapter_config + CSV headers without uploading the file.

POST `https://{tenant}.atomicwork.com/api/v1/import-jobs/validate-mapping`

## Authorization

#### X-Api-Key (header, string, required)

API key authentication.

## Headers

#### X-Workspace-Id (header, string)

## Body

#### entity\_type (body, enum (string), required) — allowed: CUSTOM\_OBJECT

#### source\_type (body, enum (string), required) — allowed: CSV

#### adapter\_config (body, object, required)

Same shape used by POST /import-jobs.

#### csv\_headers (body, array of string, required)

Parsed header row. Server strips whitespace and BOM before comparison.

#### validation (body, object)

Optional; defaults applied when omitted.

## Response

#### 200

Successful response

#### Request

```bash cURL
curl -X POST 'https://{tenant}.atomicwork.com/api/v1/import-jobs/validate-mapping' \
  -H 'X-Api-Key: <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{"entity_type": "CUSTOM_OBJECT", "source_type": "CSV", "adapter_config": {}, "csv_headers": ["string"], "validation": {}}'
```

```javascript JavaScript
const res = await fetch('https://{tenant}.atomicwork.com/api/v1/import-jobs/validate-mapping', {
  method: 'POST',
  headers: {
    'X-Api-Key': '<api-key>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"entity_type": "CUSTOM_OBJECT", "source_type": "CSV", "adapter_config": {}, "csv_headers": ["string"], "validation": {}}),
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://{tenant}.atomicwork.com/api/v1/import-jobs/validate-mapping',
    headers={'X-Api-Key': '<api-key>'},
    json={"entity_type": "CUSTOM_OBJECT", "source_type": "CSV", "adapter_config": {}, "csv_headers": ["string"], "validation": {}}
)
data = res.json()
```
