Skip to content

Look a post up

GET
/api/v1/outreach/imports/post/preview
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.

accountId
required

The LinkedIn account that reads (id in unipile.accounts.list): one you may send from.

string
>= 1 characters <= 64 characters

The LinkedIn account that reads (id in unipile.accounts.list): one you may send from.

url
required

The post’s link.

string
>= 1 characters <= 2000 characters

The post’s link.

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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}