The Threads Reply Management API allows you manage replies to users' own Threads.
Use the /manage_reply
endpoint to hide/unhide any top-level replies. This will automatically hide/unhide all the nested replies. Note: Replies nested deeper than the top-level reply cannot be targeted in isolation to be hidden/unhidden.
curl -X POST \ -F "hide={true | false}" \ -F "access_token=<ACCESS_TOKEN>" \ "https://graph.threads.net/v1.0/<THREADS_REPLY_ID>/manage_reply"
{ "success": true }
Use the reply_control
parameter to specify who can reply to a post being created for publishing. This parameter accepts one of the 3 options: everyone
, accounts_you_follow
, and mentioned_only
.
curl -X POST \ -F "media_type=<MEDIA_TYPE>" \ -F "text=<TEXT>" \ -F "reply_control=accounts_you_follow" \ -F "access_token=<ACCESS_TOKEN>" \ "https://graph.threads.net/v1.0/me/threads"
{ "id": "1234567890" }
Use the POST /{threads-user-id}/threads_publish
endpoint to publish the media container ID returned in the previous step. It is recommended to wait on average 30 seconds before publishing a Threads media container to give our server enough time to fully process the upload. See the media container status endpoint for more details.
creation_id
— Identifier of the Threads media container created from the /threads
endpoint.curl -i -X POST \ "https://graph.threads.net/v1.0/<THREADS_USER_ID>/threads_publish?creation_id=<MEDIA_CONTAINER_ID>&access_token=<ACCESS_TOKEN>"
{ "id": "1234567" // Threads Media ID }