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 Threads Publish endpoint lets you post text content to Threads, Meta’s conversation-focused platform, through the Dohoo API. Because Threads accounts are tied to Instagram, you connect Threads by linking your Instagram account in the Dohoo dashboard — no separate OAuth flow is required. Once connected, pass the Threads connection ID and your post text to publish immediately.

Endpoint

POST https://dohoo.ai/api/v2/threads/publish

Request headers

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

Request body

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

Example request

curl -X POST https://dohoo.ai/api/v2/threads/publish \
  -H "X-API-Key: dh_live_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "connectionId": "conn_threads_001",
    "text": "Your Threads post content here."
  }'

Example response

{
  "success": true,
  "platform": "threads",
  "postId": "18023456789012345",
  "connectionId": "conn_threads_001",
  "status": "published",
  "publishedAt": "2025-01-15T17:55:00Z",
  "url": "https://www.threads.net/@yourhandle/post/ABC123xyz"
}
Your Threads connection is linked to your Instagram account. To enable Threads publishing, connect your Instagram account in the Dohoo dashboard first. Once Instagram is connected, a corresponding Threads connection will appear automatically.
Threads posts can be up to 500 characters. Keep your posts conversational — Threads is designed for public discussions and replies, so content that invites engagement tends to perform well.
If your Instagram account is disconnected or its access token expires, your Threads connection will also become inactive. Reconnect Instagram in the Connections page of your Dohoo dashboard to restore access for both platforms.