Skip to main content
POST
Create Post
Publishes a post as the connected account. Write action, and the result is publicly visible on LinkedIn, so treat it as irreversible. The request must be multipart/form-data: a JSON body is rejected while upstream parses attachments. Add an image with -F "attachments=@image.jpg", mention someone by putting {{0}} in the text and passing mentions[0][profile_id] / mentions[0][name], or post on behalf of a company you administer by passing as_organization with the company id. See Pricing for current prices. Where supported, get a quote for your request.

Example

Path parameters and required query parameters are documented in the operation reference.

Request contract

  • Method and path: POST /apis/v1/unipile/linkedin/posts
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/unipile/linkedin/posts
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.02 USD per successful request. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
account_id
string
required

The id of the account to perform the request from.

Minimum string length: 1
text
string
required

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.

Available options:
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

Response

Created. Post published successfully.

object
enum<string>
required
Available options:
PostCreated
post_id
string
required