X: mentions, reads, lists and actions
Everything around the X account connected to a profile beyond publishing: the posts that mention it, reads of X data (recent search, post counts, who liked or reposted a post, quotes, bookmarks, followers, lists, trends and post analytics), its lists and bookmarks, undoing a repost and hiding replies.
- Authentication: API Key —
Authorization: Apikey <YOUR_API_KEY> - Every call takes
user, the profile username.
Bookmarks, lists, followers and following, likers (liking_users), reposts of the account (reposts_of_me) and hiding replies need X permissions that Upload-Post asks for since 25 November 2026. An X account connected before that date answers 403 x_reconnect_required (with the missing scope) on those calls until it is reconnected: reconnect X from the dashboard once and they work.
Mentions, recent search and counts, reposters, quotes, trends and post and media analytics work with the existing connection.
X bills every post, user or list its API returns, so the mentions feed and the reads are available on paid Upload-Post plans only: on the Free plan they answer 403 x_read_plan_required. They also count toward a daily X spend limit of your Upload-Post account. Each answer carries billing with what was read and what X charges for it.
Mentions
GET /api/uploadposts/x/mentions?user=my-profile[&limit=20][&cursor=][&verified_only=true][&verified_type=business,government][&min_followers=1000][&replies=include]
Posts that @mention the account (not only replies to one post), newest first, with each author's verified, verified_type (blue, business, government, none) and followers_count. verified: true includes any paid X Premium account: use verified_type to tell organisations and governments apart.
| Parameter | Description |
|---|---|
limit | Mentions scanned per page, 5-100 (default 20). |
cursor | pagination.next_cursor of the previous page. |
verified_only | true: only authors with verified: true. |
verified_type | Comma-separated: blue, business, government. |
min_followers | Only authors with at least this many followers. |
replies | include (default), exclude or only. |
The filters are applied by Upload-Post on the limit mentions scanned: they do not lower the cost, and a filtered page can hold fewer than limit items (scanned says how many were looked at; keep paging with next_cursor). Upload-Post keeps a copy of the mentions per X account and asks X only for the ones newer than the newest it holds, at most once a minute: calls in between are served from the copy (source: "cache") and cost nothing.
curl "https://api.upload-post.com/api/uploadposts/x/mentions?user=my-profile&limit=20&verified_type=business" \
-H 'Authorization: Apikey your-api-key-here'
{
"success": true,
"platform": "x",
"account_id": "1449000000000000000",
"mentions": [
{
"id": "1861234567890123456",
"text": "@my_brand do you ship to Canada?",
"created_at": "2026-11-24T09:12:44.000Z",
"lang": "en",
"conversation_id": "1861234567890123456",
"is_reply": false,
"public_metrics": { "like_count": 3, "reply_count": 1, "retweet_count": 0, "quote_count": 0 },
"url": "https://x.com/example_store/status/1861234567890123456",
"author": {
"id": "2244994945",
"username": "example_store",
"name": "Example Store",
"verified": true,
"verified_type": "business",
"followers_count": 18400
}
}
],
"scanned": 20,
"pagination": { "next_cursor": "until_1861234567890123455", "has_next": true },
"source": "x",
"billing": { "posts_read": 20, "users_read": 14, "estimated_cost_usd": 0.24 }
}
To answer a mention, use Create Comment with its id as comment_id.
Read X data
GET /api/uploadposts/x/read/{kind}?user=my-profile[&...]
One read-only X API call per request, with the fields chosen by Upload-Post. data, includes and meta are X's own objects.
kind | What it reads | Parameters | X permission |
|---|---|---|---|
search_recent | Posts from the last 7 days that match a search | query (1-512 characters), start_time, end_time, since_id, until_id, sort_order (recency, relevancy) | — |
counts_recent | How many posts matched a search over time | query, granularity (minute, hour, day), start_time, end_time, since_id, until_id | — |
liking_users | Who liked a post | post_id | like.read |
reposted_by | Who reposted a post | post_id | — |
quote_posts | Posts that quote a post | post_id, exclude (replies, retweets) | — |
reposts_of_me | Reposts of the account's posts by others | — | timeline.read |
bookmarks | The account's bookmarks | — | bookmark.read |
followers, following | Followers and followed accounts | — | follows.read |
owned_lists, followed_lists, pinned_lists | The account's lists | — | list.read |
list, list_posts, list_members, list_followers | One list, its posts, members or followers | list_id | list.read |
trends | Trends of a place | woeid, limit (1-50) | — |
trend_locations | Places with trends | — | — |
personalized_trends | Trends for the account | — | — |
post_analytics | Analytics of posts | ids (1-100, comma-separated), start_time, end_time, granularity (hourly, daily, weekly, total) | — |
media_analytics | Analytics of media | media_keys (1-100, comma-separated), start_time, end_time, granularity (hourly, daily, total) | — |
Times are ISO 8601. limit sets the page size (10-100 for search_recent and quote_posts, 1-100 for the rest). trend_locations answers 404 x_not_found while X does not serve it to Upload-Post.
curl "https://api.upload-post.com/api/uploadposts/x/read/search_recent?user=my-profile&query=upload-post%20-is%3Aretweet&limit=10" \
-H 'Authorization: Apikey your-api-key-here'
{
"success": true,
"platform": "x",
"kind": "search_recent",
"data": [
{ "id": "1861234567890123456", "text": "Scheduling everything with upload-post this week", "author_id": "2244994945", "created_at": "2026-11-23T09:12:44.000Z" }
],
"includes": { "users": [ { "id": "2244994945", "name": "Example", "username": "example" } ] },
"meta": { "result_count": 1, "newest_id": "1861234567890123456", "oldest_id": "1861234567890123456" },
"pagination": { "next_cursor": "b26v89c19zqg8o3fpzbkk", "has_next": true },
"cached": false,
"billing": { "posts_read": 1, "users_read": 1, "estimated_cost_usd": 0.015 }
}
- Paging: pass
pagination.next_cursorback ascursor. - Cache: answers are kept for a few minutes per account (trends 15 minutes, analytics 1 hour). Repeating the call within that time returns
"cached": trueand reads nothing from X. - Permissions: kinds that need an X permission the account did not grant when it was connected answer
403x_reconnect_required: reconnect X to grant it. - If X answers with partial errors, they come in
partial_errors.
Manage lists
POST /api/uploadposts/x/lists
| Field | Description |
|---|---|
user | Required. Profile username. |
action | Required. create, update, delete, add_member or remove_member. |
list_id | Every action but create. |
name | create (required, 1-25 characters) and update. |
description | Up to 100 characters. |
private | true for a private list. |
user_id | add_member / remove_member: numeric X user id. |
confirm | delete: must be true. |
curl -X POST https://api.upload-post.com/api/uploadposts/x/lists \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{"user": "my-profile", "action": "create", "name": "Partners", "private": true}'
{ "success": true, "platform": "x", "action": "create", "list": { "id": "1861111111111111111", "name": "Partners" } }
update answers updated, delete answers deleted, and add_member / remove_member answer is_member. Read lists with kind=owned_lists and kind=list_members above. Needs the list.write permission (403 x_reconnect_required for accounts connected before it was asked).
Bookmarks and reposts
POST /api/uploadposts/posts/action {"user": "my-profile", "platform": "x", "action": "bookmark", "post_id": "1861234567890123456"}
POST /api/uploadposts/posts/action {"user": "my-profile", "platform": "x", "action": "unbookmark", "post_id": "1861234567890123456"}
POST /api/uploadposts/posts/save {"user": "my-profile", "platform": "x", "post_id": "1861234567890123456"}
bookmark (alias save, also through /posts/save) takes an optional folder_id to put the post in a bookmark folder. The answer is {"success": true, "platform": "x", "action": "bookmark", "post_id": "...", "bookmarked": true}. Read the bookmarks with kind=bookmarks. Needs the bookmark.write permission (403 x_reconnect_required for accounts connected before it was asked).
Undo a repost the account made (the opposite of Repost):
POST /api/uploadposts/posts/action {"user": "my-profile", "platform": "x", "action": "unrepost", "post_id": "1861234567890123456"}
Hide replies
Hide a reply in a conversation the account started, or show it again, through Comment actions:
curl -X POST https://api.upload-post.com/api/uploadposts/comments/action \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{"user": "my-profile", "platform": "x", "action": "hide", "comment_id": "1861299999999999999"}'
comment_id is the post id of the reply; send unhide to show it again. Needs the X permission tweet.moderate.write (403 x_reconnect_required for accounts connected before it was asked: reconnect X to grant it).
Writes share the daily X limit
List changes, bookmarks, unreposts and hidden replies count toward the same daily limit per X account as replies, edits and reposts: over it the call answers 429 x_daily_write_limit with a Retry-After header. A write that got no answer from X answers 502 x_write_outcome_unknown: it may or may not have been applied and is never retried for you, so check before sending it again.
Errors
| Status | error_code | Meaning |
|---|---|---|
| 400 | missing_required_fields, invalid_parameter, invalid_id, invalid_cursor, confirmation_required | Invalid request. |
| 400 | account_not_linked | The profile has no X account connected. |
| 400 | x_rejected | X refused the request. |
| 401 | x_reauth_required | Reconnect X. |
| 403 | x_reconnect_required | Reconnect X to grant the permission in scope. |
| 403 | x_read_plan_required | Mentions and reads need a paid Upload-Post plan. |
| 403 | x_forbidden | X refused access. |
| 404 | x_read_unknown_kind, x_not_found | Unknown kind, or X has no such object. |
| 429 | x_daily_read_budget, x_daily_write_limit, x_rate_limited | Daily read spend, daily write limit or X's rate limit (Retry-After). |
| 502 | x_upstream_error, x_unavailable, x_write_outcome_unknown | X failed or did not answer. |
| 503 | x_read_capacity, x_guard_unavailable | Upload-Post's X read capacity is used up for now (Retry-After), or Upload-Post could not check its limits. |