Start importing a HubSpot list's contacts into a list
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}.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
hubspotListId*string^[0-9]{1,20}$linkedinUrlProperty*string^[a-z0-9_]{1,100}$target*|maxResults?integer1 <= value <= 1000010000updateExisting?booleanfalseDefault Response
application/json- response
import*curl -X POST 'https://api.tryzen.co/v1/imports/hubspot-list' \ -H 'Content-Type: application/json' \ -d '{ "hubspotListId": "string", "linkedinUrlProperty": "string", "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" }}The HubSpot contact properties a LinkedIn profile URL can be in GET
**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. Text properties of HubSpot contacts, the ones whose name or label says LinkedIn first. Pick the one that holds each contact's LinkedIn profile URL for `POST /v1/imports/hubspot-list`. Same errors as the lists route.
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.