跳转到主要内容
POST
Create Post
以已连接账号发布帖子。写操作,结果在 LinkedIn 上公开可见,请视为不可撤销。请求必须是 multipart/form-data:上游解析附件时 JSON body 会被拒。加图用 -F "attachments=@image.jpg";提及某人时在正文写 {{0}} 并传 mentions[0][profile_id] 与 mentions[0][name];代公司发文则传 as_organization(需是该主页管理员)。 当前价格请查看费用说明;支持报价的接口可按实际请求获取报价。

请求规范

  • 方法与路径: POST /apis/v1/unipile/linkedin/posts
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/unipile/linkedin/posts
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $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
必填

The id of the account to perform the request from.

Minimum string length: 1
text
string
必填

Linkedin: You can add a mention by inserting the index of the corresponding entry from the mentions array between two double braces. Example: Hey {{0}}, check this out !
Instagram: To mention a user, use the @ symbol followed by their username. On a story, each mention is drawn on the media as a tappable @username sticker and the user is notified; the surrounding text is not displayed. A username that matches no account is left as plain text. Up to 10 mentions per story.

as_organization
string

Linkedin only Provide the ID of an organization over which you have control to perform the action on its behalf.

Minimum string length: 1
attachments
file[]

On linkedin, image file resolution is limited to 6012px x 6012px max.

Linkedin only An external link that should be displayed within a preview card. The URL must also be included in the post textual content. Otherwise, it will be automatically added at the end.

Pattern: ^https?://
include_job_posting
string

Linkedin only The ID of a job posting that should be displayed within a preview card.

location
string

Instagram only: The location to tag in the post. The best match for the query is used, and a query matching no place leaves the post untagged. On a story, the location is also drawn on the media as a tappable sticker.

mentions
object[]

Linkedin only

post_type

Instagram only: Publish as a regular feed post or as a story. Defaults to feed when omitted or empty.

可用选项:
feed
repost
string

The id of an existing LinkedIn post to publish as repost. For a simple repost without commentary, text should be an empty string.

targeted_audience
object

Linkedin only A set of filters to adjust the target audience of your posts.

video_thumbnail
file

响应

Created. Post published successfully.

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