> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Post to LinkedIn

> What a LinkedIn profile or Page takes through the API: text, photos, a video, a document or a link, @mentions, media limits, first comments, deletes, comments and analytics.

A LinkedIn account is a personal profile or a Page, with `platform` `linkedin`. It posts text with photos, one video, one document or a link, and it can tag people and companies.

## What you can post

* Text alone, or with up to 10 photos, one video, or one document (PDF, DOC, DOCX, PPT, PPTX). A document becomes LinkedIn's swipeable document post.
* A link, shown as an article card, when the post has no media.
* Tags of people and companies in LinkedIn's form, `@[Name](urn:li:person:ID)`. See [Tag people and companies on LinkedIn](https://docs.postsyncer.com/guides/linkedin-mentions.md).

## Settings

Every key is optional. [Create a post](https://docs.postsyncer.com/api-reference/posts/create.md#platform-specific-settings) has the full list.

| Key | What it does |
| - | - |
| `visibility` | `PUBLIC` (the default) or `CONNECTIONS`. |
| `title` | LinkedIn's own text, instead of the post's text. Tags work here too. |
| `link` | A link to attach as an article. Used only on a post without media. |
| `media` | This account's own media library ids, instead of the post's media. |

## Text

* The text takes 3,000 characters. PostSyncer cuts a longer text to 3,000 when it's sent, never in the middle of a tag.
* PostSyncer escapes the characters LinkedIn treats as markup, so the text shows as you wrote it.

## Media

| | Limit |
| - | - |
| Photos | Up to 10, 5 MB each |
| Video | 1, 3 seconds to 30 minutes, up to 512 MB |
| Document | 1, as the first file |
| Picture types | JPG, PNG, GIF, WebP |
| Video types | MP4 |

* A post carries photos, a video or a document: never two kinds together. A document must be alone.
* A MOV or WebM video is refused for LinkedIn with `422`. Give the LinkedIn account its own MP4 in `settings.media`, or convert the video.
* Other networks in the same post leave a document out. See [LinkedIn documents](https://docs.postsyncer.com/guides/media.md#linkedin-documents).

## More than one item and first comments

* LinkedIn has no threads. The items are joined into one text, with blank lines between them.
* A first comment (`is_first_comment: true`) is a comment under the post, `first_comment_delay` minutes after it goes out (1 when you leave it out). It can carry one photo, no video or document. A tag in a first comment goes out as the name.

## Delete a post

Deleting the post in PostSyncer asks LinkedIn to delete it. If LinkedIn refuses, the refusal is only logged: PostSyncer's copy is deleted and the post stays on LinkedIn. See [Test safely](https://docs.postsyncer.com/test-safely.md#what-cant-be-undone).

## Comments

* PostSyncer reads comments an hour after the post goes out, every 6 hours for its first day, then once a day until it's 7 days old, and whenever you ask with [Sync comments](https://docs.postsyncer.com/api-reference/comments/sync.md).
* Replies go out from the profile or Page. A reply can carry one photo: only the first file is sent, and only if it's a photo.
* LinkedIn can't hide comments. Hide answers `422` with `LinkedIn can't hide comments. Delete the comment instead.`
* Delete asks LinkedIn to delete the comment, as the account. When LinkedIn refuses, the answer is still `200` `Comment deleted successfully`, and nothing changes.

## Analytics

LinkedIn gives `impressions`, `likes`, `comments`, `shares`, `saves`, `clicks`, `reach`, `views` and `profile_visits`. A profile connected through PostSyncer's older LinkedIn connection has no numbers: its `analytics_unavailable.reason` is `linkedin_reconnect`, and reconnecting it fixes that. See [Read analytics](https://docs.postsyncer.com/guides/analytics.md#when-numbers-cant-be-read).

## Example

A draft that tags a company, with its own text for LinkedIn and a first comment:

```json theme={null}
{
  "workspace_id": 4815,
  "schedule_type": "draft",
  "content": [
    { "text": "Our spring roast is here." },
    { "text": "Order beans for pickup at haldencoffee.example.", "is_first_comment": true }
  ],
  "accounts": [
    {
      "id": 16236,
      "settings": {
        "title": "Our spring roast is here, made with @[Copperleaf Mills](urn:li:organization:90412577).",
        "visibility": "PUBLIC"
      }
    }
  ]
}
```

## Related

> [card] [Tag people and companies](https://docs.postsyncer.com/guides/linkedin-mentions.md)
>
> Find a tag and put it in a post.

> [card] [Compare the 12 networks](https://docs.postsyncer.com/platforms/overview.md)
>
> How LinkedIn differs from the other networks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.