Outvexa

API reference

Imports

4 endpoints. All paths are relative to your installation, for example https://app.example.com.

get/api/v1/w/{workspaceId}/imports

Recent CSV imports

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/imports" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/imports

Upload a CSV (multipart field "file"); returns headers, sample rows and suggested mapping

Workspace member or API keyRole member or higher30 requests / 1 h per workspaceSuccess: 201

Path parameters

workspaceIdrequiredstring
Request
curl -X POST "https://app.example.com/api/v1/w/$WORKSPACE_ID/imports" \
  -H "Authorization: Bearer $EMN_API_KEY"

post/api/v1/w/{workspaceId}/imports/{id}/start

Start an uploaded import with a column mapping

Workspace member or API keyRole member or higherSuccess: 202

Path parameters

workspaceIdrequiredstring
idrequiredstring

Request body (JSON)

mappingrequiredobject
dedupeModeenumOne of: skip, update · Default "skip"
targetListIdstring (uuid) | null
newListNamestringLength 0–100
sourceNamestringLength 1–100 · Default "CSV import"
lawfulBasisenumOne of: UNKNOWN, CONSENT, LEGITIMATE_INTEREST, EXISTING_RELATIONSHIP, NOT_REQUIRED · Default "UNKNOWN"
lawfulBasisNotestringLength 0–500
defaultCountrystringLength 2–2
Request
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"
  }'

get/api/v1/w/{workspaceId}/imports/{id}

Import progress and row errors

Workspace member or API keyRole viewer or higherSuccess: 200

Path parameters

workspaceIdrequiredstring
idrequiredstring
Request
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/imports/$ID" \
  -H "Authorization: Bearer $EMN_API_KEY"