API reference
4 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/importsRecent CSV imports/api/v1/w/{workspaceId}/importsUpload a CSV (multipart field "file"); returns headers, sample rows and suggested mapping/api/v1/w/{workspaceId}/imports/{id}/startStart an uploaded import with a column mapping/api/v1/w/{workspaceId}/imports/{id}Import progress and row errors/api/v1/w/{workspaceId}/importsRecent CSV imports
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/imports" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/importsUpload a CSV (multipart field "file"); returns headers, sample rows and suggested mapping
Path parameters
workspaceIdrequired | string |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/imports" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/imports/{id}/startStart an uploaded import with a column mapping
Path parameters
workspaceIdrequired | string |
idrequired | string |
Request body (JSON)
mappingrequired | object |
dedupeMode | enumOne of: skip, update · Default "skip" |
targetListId | string (uuid) | null |
newListName | stringLength 0–100 |
sourceName | stringLength 1–100 · Default "CSV import" |
lawfulBasis | enumOne of: UNKNOWN, CONSENT, LEGITIMATE_INTEREST, EXISTING_RELATIONSHIP, NOT_REQUIRED · Default "UNKNOWN" |
lawfulBasisNote | stringLength 0–500 |
defaultCountry | stringLength 2–2 |
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/imports/$ID/start" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mapping": {},
"dedupeMode": "skip",
"targetListId": "00000000-0000-4000-8000-000000000000",
"newListName": "string",
"sourceName": "CSV import",
"lawfulBasis": "UNKNOWN",
"lawfulBasisNote": "string",
"defaultCountry": "string"
}'/api/v1/w/{workspaceId}/imports/{id}Import progress and row errors
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/imports/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"