?
postToLinkedIn
Create a post on LinkedIn from the connected account.
mindstudio.postToLinkedIn({ message, visibility }) → Result
Create a post on LinkedIn from the connected account.
Parameters
message
string
RequiredThe text content of the LinkedIn post
visibility
string
RequiredWho can see the post: "PUBLIC" or "CONNECTIONS"
PUBLICCONNECTIONS
imageUrl
string
URL of an image to attach to the post
videoUrl
string
URL of a video to attach to the post
documentUrl
string
URL of a document (PDF, PPT, DOC) to attach to the post
articleUrl
string
URL to share as an article link preview
titleText
string
Title text for media or article attachments
descriptionText
string
Description text for article attachments
connectionId
string
LinkedIn OAuth connection ID
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.postToLinkedIn({ message: /* ... */, visibility: /* ... */ });