TryzenAPI
Imports

Start importing the people who reacted to a LinkedIn post

POST
/v1/imports/linkedin-post-reactors

Access: an API key (or an org-wide key naming the workspace) with manage on leads.

Checks the post URL (422 post_url_invalid with the problem in error.problems), the sender (404 sender_not_found, 409 sender_not_connected) and the list (409 company_list for a company list, list_busy while it is being filled), then starts the import job. The URL is a LinkedIn post: https://www.linkedin.com/posts/<slug>-activity-<id>-<x> (the post's “Copy link to post”) or https://www.linkedin.com/feed/update/urn:li:activity:<id>/ (ugcPost posts too). Shared posts (urn:li:share:) aren't supported yet. reactionType imports only one kind of reaction (LIKE, PRAISE = Celebrate, EMPATHY = Love, INTEREST = Insightful, APPRECIATION = Support, ENTERTAINMENT = Funny); without it, every reaction. The people go into a people list (a new one, or an existing ready people list). The sender's account reads the reactors over HTTP, 10 per page, at a slow, budgeted pace (the same daily read budget and working hours as searches), up to 10,000 per post. Company pages that reacted are skipped. Any connected sender works (GET /v1/imports/linkedin-search/senders; no browser needed). Poll GET /v1/imports/{importId}. progress.total is null until the first page.

Authorization

apiKey
headerx-api-key<token>

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

Request Body

application/json
  1. body
url*string
Length1 <= length <= 4096
reactionType?string
Value in"LIKE""PRAISE""EMPATHY""INTEREST""APPRECIATION""ENTERTAINMENT"
senderId*string
Match^[0-9a-f]{24}$
target*|
maxResults?integer
Range1 <= value <= 10000
Default10000

Response Body

Default Response

application/json
  1. response
import*
Example Request
curl -X POST 'https://api.tryzen.co/v1/imports/linkedin-post-reactors' \  -H 'Content-Type: application/json' \  -d '{  "url": "string",  "senderId": "string",  "target": {    "kind": "new",    "name": "string"  }}'
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"  }}

Start importing the companies of a LinkedIn company search URL POST

**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. Checks the URL (422 `search_url_invalid` with every problem in `error.problems`), the sender (404 `sender_not_found`, 409 `sender_not_connected`) and the list (409 `people_list` for a people list, `list_busy` while it is being filled), then starts the import job. The URL is a LinkedIn company search (`/search/results/companies/`) with keywords and only these filters: Headquarters location (`companyHqGeo`), Industry (`industryCompanyVertical`), Company size (`companySize`), Job listings (`hasJobs`) and Connections (`network`). Any other filter is refused: LinkedIn would ignore it and the import would be bigger than the search. Works with free LinkedIn accounts. A new list is created as a company list. The sender's account reads the results over HTTP, 12 per page, at a slow, budgeted pace (the same daily search budget and working hours as people searches), up to 1,000 companies. Any connected sender works (`GET /v1/imports/linkedin-search/senders`; no browser needed). Poll `GET /v1/imports/{importId}`; `counts` are companies. `progress.total` is null until the first results page.

Start importing the attendees of a LinkedIn event POST

**Access:** an API key (or an org-wide key naming the workspace) with manage on `leads`. Checks the event URL (422 `event_url_invalid` with the problem in `error.problems`), the sender (404 `sender_not_found`, 409 `sender_not_connected`) and the list (409 `company_list` for a company list, `list_busy` while it is being filled), then starts the import job. The URL is a LinkedIn event: `https://www.linkedin.com/events/<name><id>/` (any tab of it). The sender must attend the event: LinkedIn shows the attendees only to attendees. Any connected sender (`GET /v1/imports/linkedin-search/senders`). The people go into a people list, 10 per page at the searches' slow, budgeted pace, up to 10,000 per event. Poll `GET /v1/imports/{importId}`. Not live yet: until LinkedIn's call is captured and verified, the import starts and then fails `search_unavailable` ("can't be read right now") without sending anything to LinkedIn.