Start importing an uploaded CSV into a new or existing list
Access: an API key (or an org-wide key naming the workspace) with manage on leads.
Re-checks the mapping against the file's header (422 invalid_mapping), claims the list (409 list_busy while another import fills it) and starts the import job. Poll GET /v1/imports/{importId}.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
uploadId*string^[0-9a-f]{24}$encoding*string"utf-8""windows-1252"mapping*array<||>items <= 1000target*|updateExisting?booleanfalseDefault Response
application/json- response
import*curl -X POST 'https://api.tryzen.co/v1/imports/csv' \ -H 'Content-Type: application/json' \ -d '{ "uploadId": "string", "encoding": "utf-8", "mapping": [ { "index": 0, "header": "string", "kind": "field", "name": "linkedinUrl" } ], "target": { "kind": "new", "name": "string" }}'{ "import": { "id": "string", "listId": "string", "listName": "string", "status": "pending", "source": { "type": "csv", "url": "string", "reactionType": "LIKE", "crm": { "provider": "hubspot", "listId": "string", "listName": "string", "listKind": "static", "linkedinUrlProperty": "string" } }, "senderIds": [ "string" ], "maxResults": 1, "fileName": "string", "progress": { "offset": 0, "total": 0 }, "counts": { "created": 0, "existing": 0, "addedToList": 0, "alreadyInList": 0, "invalid": 0, "duplicateInFile": 0 }, "rejectedSample": [ { "rowNumber": 1, "errors": [ { "code": "string", "column": "string", "detail": "string" } ] } ], "error": { "code": "string", "message": "string" }, "createdAt": "2019-08-24T14:15:22Z", "startedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z" }}Preview an uploaded CSV: mapping suggestion or check, row totals, samples POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. Without `mapping`, detects one from the headers (pt-BR and English aliases). With it, checks it. Nothing is written.
Recent imports, newest first (optionally one list's) GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `leads`.