Look a post up
GET
/api/v1/outreach/imports/post/preview
const url = 'https://digize.com/api/v1/outreach/imports/post/preview?accountId=example&url=example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://digize.com/api/v1/outreach/imports/post/preview?accountId=example&url=example' \ --header 'x-api-key: <x-api-key>'A LinkedIn post from its link (its author, text, and how many reacted and commented), read with one of your LinkedIn accounts, before importing its engagers. LinkedIn counts it as one read of the account’s 100 a day.
Needs the outreach:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”accountId
required
The LinkedIn account that reads (id in unipile.accounts.list): one you may send from.
string
The LinkedIn account that reads (id in unipile.accounts.list): one you may send from.
url
required
The post’s link.
string
The post’s link.
Responses
Section titled “Responses”Done
Media typeapplication/json
object
postId
required
string
socialId
required
string
url
required
string | null
authorId
required
string | null
authorName
required
string | null
authorHeadline
required
string | null
text
required
The post’s text, up to 600 characters.
string
reactions
required
number
comments
required
number
postedAt
required
string | null
Example generated
{ "postId": "example", "socialId": "example", "url": "example", "authorId": "example", "authorName": "example", "authorHeadline": "example", "text": "example", "reactions": 1, "comments": 1, "postedAt": "example"}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}