TryzenAPI
Imports

Preview an uploaded CSV: mapping suggestion or check, row totals, samples

POST
/v1/imports/csv/analyze

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.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Request Body

application/json
  1. body
uploadId*string
Match^[0-9a-f]{24}$
encoding?string
Default"auto"
Value in"auto""utf-8""windows-1252"
mapping?array<||>
Itemsitems <= 1000

Response Body

Default Response

application/json
  1. response
upload*
encoding*string
Value in"utf-8""windows-1252"
encodingFellBack*boolean
analysis*
Example Request
curl -X POST 'https://api.tryzen.co/v1/imports/csv/analyze' \  -H 'Content-Type: application/json' \  -d '{  "uploadId": "string"}'
Example Response
{  "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"        }      }    ]  }}