Import a post's engagers
const url = 'https://digize.com/api/v1/outreach/imports/post';const options = { method: 'POST', headers: { 'Idempotency-Key': '5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69', 'x-api-key': '<x-api-key>', 'Content-Type': 'application/json' }, body: '{"accountId":"example","url":"example","reactions":true,"comments":true,"listId":"example","listName":"example","socialId":"example","authorId":"example","authorName":"example","expected":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://digize.com/api/v1/outreach/imports/post \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \ --header 'x-api-key: <x-api-key>' \ --data '{ "accountId": "example", "url": "example", "reactions": true, "comments": true, "listId": "example", "listName": "example", "socialId": "example", "authorId": "example", "authorName": "example", "expected": 1 }'Imports the people who reacted to or commented on a LinkedIn post (its link, as LinkedIn’s Copy link to post gives it) into a list, each comment kept for personalising ({{prospect.comment}}). Company pages and the post’s author are left out. It reads with one of your LinkedIn accounts in the background, 100 people a page, within the account’s working hours and LinkedIn’s daily numbers: follow it with outreach.imports.get.
Needs the outreach:write permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.
Example
5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69Request Bodyrequired
Section titled “Request Bodyrequired”object
The LinkedIn account that reads (id in unipile.accounts.list): one you may send from.
The post’s link.
Take who reacted.
Take who commented.
A static CRM list to add them to.
Or a name for a new list to make.
The post’s id from outreach.imports.previewPost, which saves a read.
Responses
Section titled “Responses”Done
object
Post (a post’s engagers), search, csv or crm.
What it imports, in words.
How many people the source holds, when it says.
People gone through so far.
object
New contacts.
People already contacts here.
People left out.
How many were left out for each reason.
object
The first 200 left out, and why.
object
Example
{ "source": "post", "status": "running"}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}A request with the same Idempotency-Key is still running (conflict).
object
object
object
Example
{ "error": { "code": "invalid" }}The Idempotency-Key was used with a different request.
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}