Get Post
linkedin.get_post
ActionChat & messagingconnection required
Calls the LinkedIn API with the connection's credentials.
Read one post by its share or ugcPost URN — its commentary, attached content, visibility and lifecycle state. Not its like or comment counts.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- Secret shape
- the LinkedIn OAuth2 access token, or {"access_token": "…"}
- Config it needs
- api_version
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
post_urn The post to act on — urn:li:share:{id} or urn:li:ugcPost:{id}, as emitted by linkedin.create_share. Supports {{ }}. | string | Yes | — | — | urn:li:share:6844785523593134080 |
view_context READER returns the published version anyone can see; AUTHOR returns the author's latest, which may still be DRAFT or PROCESSING. | string | No | READER | one of "READER", "AUTHOR" | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"post_urn": "urn:li:share:6844785523593134080",
"view_context": "READER"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The post URN — urn:li:share:… or urn:li:ugcPost:…. | string | — |
author The person or organization URN that authored it. | string | — |
commentary The post text, with mentions and hashtags as stored. | string | — |
visibility PUBLIC, CONNECTIONS, LOGGED_IN or CONTAINER. | string | — |
lifecycle_state PUBLISHED, DRAFT, PUBLISH_REQUESTED or PUBLISH_FAILED. | string | — |
created_at When the post was created (epoch milliseconds). | number | — |
last_modified_at When the post last changed (epoch milliseconds). | number | — |
published_at When the post went live (epoch milliseconds). | number | — |
content The attached content — media, article, poll — or {} for text. | object | — |
distribution feedDistribution and any targeting the post carries. | object | — |
{
"author": "",
"commentary": "",
"content": {},
"created_at": 0,
"distribution": {},
"id": "",
"last_modified_at": 0,
"lifecycle_state": "",
"published_at": 0,
"visibility": ""
}Notes
- Reading a person's own posts needs r_member_social, which LinkedIn grants to approved apps only; an organization's need r_organization_social.
See Get Post run in a workflow.
In a technical demo we add the LinkedIn connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.