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

# LinkedIn Posting API for Profiles and Pages | Dohoo

> Use the Dohoo LinkedIn posting API to publish authenticated updates from your app or automation workflow.

The LinkedIn Publish endpoint lets you post text content to a connected LinkedIn profile or page directly through the Dohoo API. Pass the connection ID for the LinkedIn account you want to post as and the text body of your post, and Dohoo publishes it on your behalf. This is ideal for automating thought leadership content, announcements, or scheduled updates.

## Endpoint

```
POST https://dohoo.ai/api/v2/linkedin/publish
```

## Request headers

| Header         | Required | Description                |
| -------------- | -------- | -------------------------- |
| `X-API-Key`    | ✅        | Your Dohoo API key         |
| `Content-Type` | ✅        | Must be `application/json` |

## Request body

| Field          | Type   | Required | Description                                       |
| -------------- | ------ | -------- | ------------------------------------------------- |
| `connectionId` | string | ✅        | The ID of the LinkedIn connection to publish from |
| `text`         | string | ✅        | The text content of the LinkedIn post             |

## Example request

```bash theme={null}
curl -X POST https://dohoo.ai/api/v2/linkedin/publish \
  -H "X-API-Key: dh_live_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "connectionId": "conn_linkedin_001",
    "text": "Your LinkedIn post content here."
  }'
```

## Example response

```json theme={null}
{
  "success": true,
  "platform": "linkedin",
  "postId": "urn:li:share:7123456789012345678",
  "connectionId": "conn_linkedin_001",
  "status": "published",
  "publishedAt": "2025-01-15T08:30:00Z",
  "url": "https://www.linkedin.com/feed/update/urn:li:share:7123456789012345678"
}
```

<Note>
  The LinkedIn API currently supports **text posts only**. Image and video publishing support is coming in a future update. Follow the Dohoo changelog to be notified when media support is available.
</Note>

<Tip>
  LinkedIn posts perform best when they are between 1,000 and 1,500 characters. Include a clear opening line — LinkedIn shows only the first two lines before a "see more" truncation on the feed.
</Tip>

<Warning>
  LinkedIn access tokens expire periodically. If your connection shows as inactive in the Dohoo dashboard, you need to reconnect your LinkedIn account via the **Connections** page before publishing will succeed.
</Warning>
