LinkedIn Block
Interact with LinkedIn
The LinkedIn block connects your workflow to LinkedIn so you can create posts, view profiles, look up company pages, and delete posts. Reach for it to automate professional networking, B2B content distribution, and social publishing.
Overview
| Property | Value |
|---|---|
| Type | linkedin |
| Category | tools |
| Color | #0A66C2 |
When to Use
- Publish a LinkedIn post automatically as part of a content or marketing workflow.
- Share an article or external link with a custom title and description on a post.
- Post on behalf of a company page by supplying an organization ID.
- Fetch the authenticated member's profile data for personalization or downstream routing.
- Look up details (name, description, follower count, website) about a LinkedIn company by ID.
- Remove a previously published post by its URN.
Configuration
Operation
Choose the action to perform. Defaults to linkedin_create_post.
| Label | ID |
|---|---|
| Create Post | linkedin_create_post |
| Get Profile | linkedin_get_profile |
| Get Company | linkedin_get_company |
| Delete Post | linkedin_delete_post |
LinkedIn Account
OAuth credential used to authenticate with LinkedIn. Requires the openid, profile, email, and w_member_social scopes. Select the connected LinkedIn account from the OAuth input.
Post Content
The text body of the post. Required when the operation is Create Post.
Visibility
Sets who can see the post. Applies only to Create Post. Defaults to PUBLIC.
| Label | ID |
|---|---|
| Public | PUBLIC |
| Connections Only | CONNECTIONS |
Link URL
Optional URL of an article or external link to attach to the post (mediaUrl). Applies to Create Post.
Link Title
Optional title for the shared link preview (mediaTitle). Applies to Create Post.
Link Description
Optional description for the shared link preview (mediaDescription). Applies to Create Post.
Organization ID (Create Post)
Optional LinkedIn organization/company ID (organizationId). When provided, the post is published on behalf of that company page. Leave empty to post as the authenticated personal profile. Applies to Create Post.
Organization ID (Get Company)
The LinkedIn organization/company ID to look up (companyOrganizationId). Required when the operation is Get Company.
Post ID
The post URN to remove (e.g., urn:li:share:123456). Required when the operation is Delete Post.
Inputs & Outputs
-
Inputs:
operation(string) — Operation to perform (linkedin_create_post,linkedin_get_profile,linkedin_get_company, orlinkedin_delete_post)credential(string) — LinkedIn account credential (OAuth token)text(string) — Post text content; required for Create Postvisibility(string) — Post visibility setting (PUBLICorCONNECTIONS); used by Create PostmediaUrl(string) — URL of link to share; used by Create PostmediaTitle(string) — Title for shared link; used by Create PostmediaDescription(string) — Description for shared link; used by Create PostorganizationId(string) — Organization ID for company posts; used by Create PostcompanyOrganizationId(string) — Organization ID to look up; used by Get CompanypostId(string) — Post URN to delete; used by Delete Post
-
Outputs:
post(json) — Created post data (id,status); populated by Create Postprofile(json) — User profile data (id,localizedFirstName,localizedLastName,localizedHeadline,vanityName,profilePicture); populated by Get Profileorganization(json) — Company/organization data (id,localizedName,vanityName,localizedDescription,logoUrl,followersCount,staffCount,industries,websiteUrl); populated by Get Companydeleted(json) — Deletion confirmation (deleted,postId); populated by Delete Post
Tools
- LinkedIn Create Post (
linkedin_create_post) — Creates a new UGC post on LinkedIn viaPOST /v2/ugcPosts. Supports personal and company-page authorship, link attachments, and visibility control. - LinkedIn Get Profile (
linkedin_get_profile) — Retrieves the authenticated member's profile viaGET /v2/userinfo, returning name, email, and profile picture. - LinkedIn Get Company (
linkedin_get_company) — Fetches organization/company page details viaGET /rest/organizations/{id}, including name, description, follower count, staff count, industries, and website. - LinkedIn Delete Post (
linkedin_delete_post) — Removes a post by URN viaDELETE /rest/posts/{id}and confirms deletion with the post ID.
YAML Example
linkedin_1:
type: linkedin
name: "LinkedIn"
inputs:
operation: "linkedin_create_post"
credential: "{{LINKEDIN_CREDENTIAL}}"
text: "{{content_block.result}}"
visibility: "PUBLIC"
mediaUrl: "https://example.com/article"
mediaTitle: "Check out this article"
mediaDescription: "An insightful piece on workflow automation"
connections:
outgoing:
- target: next-block-id