Preview an uploaded CSV: mapping suggestion or check, row totals, samples
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.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
uploadId*string^[0-9a-f]{24}$encoding?string"auto""auto""utf-8""windows-1252"mapping?array<||>items <= 1000Default Response
application/json- response
upload*encoding*string"utf-8""windows-1252"encodingFellBack*booleananalysis*curl -X POST 'https://api.tryzen.co/v1/imports/csv/analyze' \ -H 'Content-Type: application/json' \ -d '{ "uploadId": "string"}'{ "upload": { "id": "string", "fileName": "string", "size": 0 }, "encoding": "utf-8", "encodingFellBack": true, "analysis": { "headers": [ "string" ], "mapping": [ { "index": 0, "header": "string", "kind": "field", "name": "linkedinUrl" } ], "mappingNotes": [ { "index": 0, "header": "string", "code": "string", "name": "string" } ], "mappingProblems": [ { "code": "string", "index": 0, "expected": "string", "actual": "string", "field": "string", "name": "string", "problem": "string", "limit": -9007199254740991 } ], "totals": { "rows": 0, "valid": 0, "invalid": 0, "duplicateInFile": 0, "withWarnings": 0 }, "rejectedSample": [ { "rowNumber": 1, "errors": [ { "code": "string", "column": "string", "detail": "string" } ] } ], "preview": [ { "linkedin": { "publicId": "string", "memberUrn": "string", "salesNavId": "string", "profileUrl": "string" }, "firstName": "string", "lastName": "string", "headline": "string", "position": "string", "company": { "name": "string", "url": "string" }, "location": "string", "email": "string", "customFields": { "property1": "string", "property2": "string" } } ] }}Start importing a HubSpot list's contacts into a list POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. Checks the HubSpot list (404 `hubspot_list_not_found`) and the target list (409 `company_list` for a company list, `list_busy` while it is being filled), then starts the import job. The list's name, kind and size come from HubSpot. Each contact's LinkedIn profile URL is read from `linkedinUrlProperty` (`GET /v1/imports/hubspot-list/fields`); first name, last name, company, job title and email come along. Contacts with nothing usable in that property are skipped and counted (`counts.invalid`, the reason in `rejectedSample`). A list is read once, as it is while the import runs: a dynamic (active) list is a snapshot, not kept in sync. Up to 10,000 contacts per import. Poll `GET /v1/imports/{importId}`.
Start importing an uploaded CSV into a new or existing list POST
**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}`.