POST /api/v2/linkedin/publish. DOHOO MCP additionally exposes media publishing, company-page selection through organizationId, and future scheduling. Keep those two interfaces separate in your implementation.Direct LinkedIn integration normally requires an application, OAuth scopes, and any product approvals applicable to the chosen use case. DOHOO centralizes the connected-account workflow, but you still need a valid LinkedIn connection in your workspace.
REST API: Publish a Text Post
curl -X POST https://dohoo.ai/api/v2/linkedin/publish \
-H "X-API-Key: $DOHOO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"connectionId": "conn_linkedin_001",
"text": "A verified LinkedIn text post from the DOHOO REST API."
}'
Retrieve the connection ID from GET /api/connections/unified. The current public REST reference documents text publishing; do not send undocumented media fields to this endpoint.
MCP: Media and Company Pages
The live dohoo_linkedin_publish tool accepts text, a direct mediaUrl, an optional mediaType, and an optional organizationId. Omit organizationId for a personal profile; include the organization identifier to post as a company page.
{
"connectionId": "linkedin-connection-id",
"text": "Launch update",
"mediaUrl": "https://mediastorage.dohoo.ai/file/.../launch.mp4",
"mediaType": "video",
"organizationId": "12345678"
}
Schedule with DOHOO MCP
Use dohoo_linkedin_schedule with a future local wall-clock scheduledAt value and an IANA timezone. The scheduled-post queue in your plan and LinkedIn’s rolling limits still apply.
{
"connectionId": "linkedin-connection-id",
"text": "Scheduled company update",
"organizationId": "12345678",
"scheduledAt": "2026-07-20T09:00:00",
"timezone": "Europe/Warsaw"
}
Verify the Result
For REST calls, inspect the HTTP status and returned post identifier. For MCP scheduling, query scheduled posts by status and time period. Failed scheduler records include the error message returned for troubleshooting.
FAQ
Can I post to a profile and a company page?
Yes through the MCP tools. Use the connection for the LinkedIn account and include organizationId when posting as a company page.
Does the REST endpoint support image and video?
The current public REST page documents text-only publishing. Media fields are part of the live MCP tool schema, so label the interface correctly.
What is the text limit?
The MCP tool validates up to 3,000 characters. Keep the opening concise because feeds truncate long posts before the reader expands them.
Do I need to reconnect LinkedIn?
Reconnect when the dashboard marks the connection inactive or an authorization error is returned.