Skip to main content
POST
Create Post
以已连接账号发布帖子。写操作,结果在 LinkedIn 上公开可见,请视为不可撤销。请求必须是 multipart/form-data:上游解析附件时 JSON body 会被拒。加图用 -F "attachments=@image.jpg";提及某人时在正文写 {{0}} 并传 mentions[0][profile_id] 与 mentions[0][name];代公司发文则传 as_organization(需是该主页管理员)。 参考价格:每次成功请求 $0.02 USD。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

multipart/form-data
account_id
string
必填

Connected account id the post is published from.

text
string
必填

Post body. Use {{0}} placeholders to reference entries of the mentions array.

attachments
file[]

Files to attach, one -F "attachments=@file" per file. Either several images or a single file of another type; images are capped at 6012x6012 px.

URL rendered as a preview card. Must also appear in text or it is appended automatically.

as_organization
string

Company id to publish on behalf of. Your account must administer that company page.

响应

Success

object
enum<string>
可用选项:
PostCreated
post_id
string

Id of the published post.