# LinkedIn options

What a post to LinkedIn takes, read from the same code the Postaki composer uses, so the API and the app agree. The live values of a connected channel (including shared allowances left today) are in `GET /brands/{id}/channels` and `GET /channels/{id}/options`; use [`POST /posts/validate`](https://postaki.io/docs/api-reference/) to check a post before you create it. Every post also needs `ai_generated`, which sets the platform's AI label.

A profile can post to `PUBLIC` or `CONNECTIONS`; a Page posts to `PUBLIC` only. A link needs `link_title`.

## LinkedIn profile

Platform value: `linkedin_member`.

### Formats

`image`, `short`, `text`, `video`

### Media

| Kind | Rule | Value |
|---|---|---|
| image | Largest width (px) | 4096 |
| image | Largest height (px) | 4096 |
| image | Largest file | 8 MB |
| image | Image format | jpeg |
| video | Largest width (px) | 1920 |
| video | Largest file | 500 MB |
| video | Longest video (seconds) | 1800 |
| video | Highest frame rate | 60 |
| video | Highest bit rate (kbit/s) | 25000 |

### Limits

| Limit | Value |
|---|---|
| `text_max` | 3000 |
| `files_max` | 10 |
| `link_title_max` | 200 |
| `link_description_max` | 300 |
| `photos_max` | 10 |
| `alt_text_max` | 1000 |

### Options

Send these in `options` of the channel's entry in `channels`.

| Option | Type | Required | Allowed values | Note |
|---|---|---|---|---|
| `own_description` | boolean | no |  | Send the description of this copy instead of the post text. |
| `description` | string | no |  | Text of this copy only. Needs own_description. |
| `link` | string | no |  |  |
| `link_title` | string | no |  | Required with a link. |
| `link_description` | string | no |  |  |
| `visibility` | string | no | `PUBLIC`, `CONNECTIONS` |  |
| `alt_text` | string | no |  | One photo only. |
| `video_title` | string | no |  | One video only. |

### Example

```json
{
  "channels": [
    {
      "channel_id": 123
    }
  ]
}
```

## LinkedIn Page

Platform value: `linkedin_org`.

### Formats

`image`, `short`, `text`, `video`

### Media

| Kind | Rule | Value |
|---|---|---|
| image | Largest width (px) | 4096 |
| image | Largest height (px) | 4096 |
| image | Largest file | 8 MB |
| image | Image format | jpeg |
| video | Largest width (px) | 1920 |
| video | Largest file | 500 MB |
| video | Longest video (seconds) | 1800 |
| video | Highest frame rate | 60 |
| video | Highest bit rate (kbit/s) | 25000 |

### Limits

| Limit | Value |
|---|---|
| `text_max` | 3000 |
| `files_max` | 10 |
| `link_title_max` | 200 |
| `link_description_max` | 300 |
| `photos_max` | 10 |
| `alt_text_max` | 1000 |

### Options

Send these in `options` of the channel's entry in `channels`.

| Option | Type | Required | Allowed values | Note |
|---|---|---|---|---|
| `own_description` | boolean | no |  | Send the description of this copy instead of the post text. |
| `description` | string | no |  | Text of this copy only. Needs own_description. |
| `link` | string | no |  |  |
| `link_title` | string | no |  | Required with a link. |
| `link_description` | string | no |  |  |
| `visibility` | string | no | `PUBLIC` |  |
| `alt_text` | string | no |  | One photo only. |
| `video_title` | string | no |  | One video only. |

### Example

```json
{
  "channels": [
    {
      "channel_id": 123
    }
  ]
}
```
