Threads: GIFs, spoilers and ghost posts
Three Threads options on the upload endpoints: attach a GIF to a text post, hide media or parts of the text behind a spoiler, and publish ghost posts, text posts that Threads archives after 24 hours. Plus an endpoint to list the account's ghost posts, and the extra fields Threads posts carry in the media list.
| Field | Endpoints | Description |
|---|---|---|
threads_gif_id | Upload Text | Id of a GIPHY GIF (letters, digits, - and _, up to 64 characters). Text posts only. |
threads_spoiler_media | Upload Photos, Upload Video | true hides the image, video or carousel behind a spoiler. Every post of a thread that carries media gets it. |
threads_text_spoilers | Upload Text, Upload Photos, Upload Video | JSON array of up to 10 {"offset": 0, "length": 5} ranges of the first post's text to hide behind a spoiler. offset from 0, length from 1, and each range must fall inside that text. |
threads_ghost_post | Upload Text | true publishes a ghost post. |
An invalid value is refused with 400 threads_invalid_field before anything is queued, with a message that names the field (a GIF on a post with media, spoilers that are not JSON or fall outside the text...). Nothing is published on any platform, so fix the field and send the request again.
GIF on a text post
curl -X POST https://api.upload-post.com/api/upload_text \
-H 'Authorization: Apikey your-api-key-here' \
-F 'user=my-profile' \
-F 'platform[]=threads' \
-F 'title=Friday mood' \
-F 'threads_gif_id=3o7abKhOpu0NwenH3O'
Spoilers
Hide the ending of a text post:
curl -X POST https://api.upload-post.com/api/upload_text \
-H 'Authorization: Apikey your-api-key-here' \
-F 'user=my-profile' \
-F 'platform[]=threads' \
-F 'title=The finale: the butler did it.' \
-F 'threads_text_spoilers=[{"offset": 12, "length": 18}]'
Hide a photo:
curl -X POST https://api.upload-post.com/api/upload_photos \
-H 'Authorization: Apikey your-api-key-here' \
-F 'user=my-profile' \
-F 'platform[]=threads' \
-F 'title=Season 2 set photo' \
-F 'photos[][email protected]' \
-F 'threads_spoiler_media=true'
Ghost posts
A ghost post is a single text post of up to 500 characters that Threads archives 24 hours after publishing. Threads allows only text spoilers with it: combining threads_ghost_post with a GIF, a link attachment, a poll, a quote, a reply, a topic tag, reply controls, the AI label, threads_long_text_as_post, or a text long enough to become a thread is refused with 400 threads_invalid_field.
curl -X POST https://api.upload-post.com/api/upload_text \
-H 'Authorization: Apikey your-api-key-here' \
-F 'user=my-profile' \
-F 'platform[]=threads' \
-F 'title=Doors open in 2 hours. First 50 people get a free tote.' \
-F 'threads_ghost_post=true'
List ghost posts
GET /api/uploadposts/threads/ghost-posts?user=my-profile[&limit=25][&after=][&before=][&since=][&until=]
The account's ghost posts with ghost_post_status (ACTIVE or ARCHIVED) and ghost_post_expiration_timestamp, besides id, text, permalink, timestamp and text_entities.
| Parameter | Description |
|---|---|
limit | 1-100 (default 25). |
after / before | next_cursor / previous_cursor of a previous answer (not both). |
since / until | Unix timestamp or YYYY-MM-DD. until must be after since and not in the future. |
curl "https://api.upload-post.com/api/uploadposts/threads/ghost-posts?user=my-profile&limit=10" \
-H 'Authorization: Apikey your-api-key-here'
{
"success": true,
"platform": "threads",
"items": [
{
"id": "18045678901234567",
"text": "Doors open in 2 hours. First 50 people get a free tote.",
"timestamp": "2026-11-24T08:00:00+0000",
"ghost_post_status": "ACTIVE",
"ghost_post_expiration_timestamp": "2026-11-25T08:00:00+0000"
}
],
"next_cursor": null,
"previous_cursor": null,
"has_more": false,
"cached": false
}
| Status | error_code | Meaning |
|---|---|---|
| 400 | invalid_field, threads_validation_error | Invalid parameter, or Threads rejected the request. |
| 401 / 403 | threads_reconnect_required, threads_permission_missing | Reconnect Threads, or the connection lacks a permission. |
| 429 | threads_rate_limited | Threads is rate limiting the account. |
| 502 | threads_api_error | Threads API error. |
Threads posts in the media list
Get Media with platform=threads returns, on each item, a threads block with Threads' own fields of the post, besides the common ones (id, caption, media_url, permalink, timestamp...):
| Field | Description |
|---|---|
media_type | Threads' media type (TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM, AUDIO, REPOST_FACADE). |
shortcode, media_product_type | Short code of the post and Threads' product type (THREADS). |
is_quote_post, quoted_post, reposted_post | Whether it quotes a post, and the ids of the quoted or reposted post. |
topic_tag | The topic tag of the post. |
gif_url | The GIF attached to a text post. |
link_attachment_url | The link attached to a text post. |
alt_text | Alt text of the image or video. |
is_spoiler_media | true when the media is hidden behind a spoiler. |
text_entities | The spoiler ranges of the text, as Threads returns them. |
text_attachment | The long text attached to the post. |
poll_attachment | The poll options with their vote percentages, total_votes and expiration_timestamp. |
A field Threads does not return for a post is left out.
{
"id": "18045678901234567",
"caption": "Friday mood",
"media_type": "TEXT",
"permalink": "https://www.threads.net/@my_brand/post/DCx1a2b3c4d",
"timestamp": "2026-11-24T08:00:00+0000",
"threads": {
"media_type": "TEXT_POST",
"shortcode": "DCx1a2b3c4d",
"media_product_type": "THREADS",
"is_quote_post": false,
"gif_url": "https://media.giphy.com/media/3o7abKhOpu0NwenH3O/giphy.gif"
}
}