Imports
Stop an import; the leads it added leave the list
POST
Access: an API key (or an org-wide key naming the workspace) with manage on leads.
Returns 202 at once; the import turns cancelled when the job has stopped. Cancelling a finished import changes nothing.
apiKeyheader
x-api-key<token>Workspace API key (nrk_…), shown once when created
importId*stringMatch
^[0-9a-f]{24}$Default Response
application/json- response
import*curl -X POST 'https://api.tryzen.co/v1/imports/string/cancel'Example Response
{ "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" }}An import's progress GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `leads`.
Upload a CSV (raw body, at most 5 MiB) POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. Send the file as the body with `content-type: text/csv`. The upload is kept until an import of it ends.