Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 724 Bytes

File metadata and controls

27 lines (20 loc) · 724 Bytes

Threads Posts API with cURL

Submit the safe example payload from the repository root:

curl -X POST "https://api.socq.ai/v1/threads/posts" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  --data @payload.example.json

Save data.task_id, then poll:

curl "https://api.socq.ai/v1/tasks/$TASK_ID?limit=100" \
  -H "Authorization: Bearer $SOCQ_API_KEY"

When data.results.has_more is true, request the next page:

curl "https://api.socq.ai/v1/tasks/$TASK_ID?limit=100&cursor=$NEXT_CURSOR" \
  -H "Authorization: Bearer $SOCQ_API_KEY"

The Node.js and Python examples automate polling, retries, pagination, and writing the final JSON artifact.