Skip to main content

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.

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

HeaderRequiredDescription
X-API-KeyYour Dohoo API key
Content-TypeMust be application/json

Request body

FieldTypeRequiredDescription
connectionIdstringThe ID of the LinkedIn connection to publish from
textstringThe text content of the LinkedIn post

Example request

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

{
  "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"
}
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.
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.
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.