AgentPMT
X / Twitter Automation

X / Twitter Automation

Function

Available ActionsEach successful request consumes credits as outlined below.

lookup_posts5crsearch_posts5crcreate_post5crcreate_post_with_link25crcreate_reply5crcreate_reply_with_link25crdelete_post5crset_reply_hidden5crset_like5crset_repost5crlookup_post_engagers5crlookup_users5crset_follow5crlookup_follows5crlookup_timeline5crlookup_dms5crsend_dm5crupload_media5crcreate_list1crupdate_list1crdelete_list1crset_list_membership1crset_list_follow1crset_list_pin1crlookup_lists1crlookup_list_contents1cr

Details

X (Twitter) automation for AI agents and social media teams. Connect your X account once and run your entire publishing, engagement, and social listening workflow from a single MCP-ready API. Post tweets and replies, attach images, GIFs, and video, and search X for brand keywords, mentions, competitors, and trending topics — then draft and send on-brand replies in seconds. Like, repost, follow, and send DMs; build and curate X Lists; and read your mentions, home, and user timelines for reporting. Built for automated tweet scheduling, brand and competitor monitoring, social media customer support, influencer outreach, and end-to-end X / Twitter / X.com content workflows.

Use Cases

Publish posts and replies to X / Twitter from agent workflows, Schedule and orchestrate Twitter content calendars, Search recent X posts for brand monitoring, competitor tracking, and trend detection, Draft and send on-brand replies to the conversations that matter, Upload images, GIFs, and video to X from File Manager files or any public URL, Run social media customer support over X DMs, Send launch announcements and follow-up DMs from automations, Like, repost, and follow as part of engagement automations, Hide spam or off-topic replies on your own posts, Build and curate X Lists for launch watch, competitor watch, and community segmentation, Read mentions, home, and user timelines for social analytics and reporting, Resolve X users by ID, username, or the authenticated account

Actions(26)

lookup_posts5cr3 params

Get one or more X posts by ID with curated field verbosity.

Get one or more X posts by ID with curated field verbosity.

post_idstring

Single post ID to fetch.

post_idsarray

Multiple post IDs to fetch.

Array of: string
verbositystring

Response detail level: minimal, standard, or expanded.

Values:
minimalstandardexpanded
search_posts5cr6 params(1 required)

Search recent X posts from the last 7 days.

Search recent X posts from the last 7 days.

queryrequiredstring

X recent-search query.

start_timestring

RFC3339 start time for recent search, for example 2026-05-14T18:00:00Z.

end_timestring

RFC3339 end time for recent search, for example 2026-05-14T19:00:00Z.

max_resultsinteger

Maximum results to return, 1-100.

pagination_tokenstring

Pagination token from a previous response.

verbositystring

Response detail level: minimal, standard, or expanded.

Values:
minimalstandardexpanded
create_post5cr2 params

Create a top-level X post without links. Use create_post_with_link for text containing web links. Quote-post creation is not supported.

Create a top-level X post without links. Use create_post_with_link for text containing web links. Quote-post creation is not supported.

textstring

Link-free post text. Required unless media_ids is provided.

media_idsarray

Media IDs to attach, max 4.

Array of: string
create_post_with_link25cr2 params(1 required)

Create a top-level X post whose text contains at least one web link. Quote-post creation is not supported.

Create a top-level X post whose text contains at least one web link. Quote-post creation is not supported.

textrequiredstring

Post text containing at least one web link.

media_idsarray

Media IDs to attach, max 4.

Array of: string
create_reply5cr3 params(1 required)

Reply to another X post without links. X self-serve plans may restrict replies unless the original author has summoned the authenticated account.

Reply to another X post without links. X self-serve plans may restrict replies unless the original author has summoned the authenticated account.

reply_to_post_idrequiredstring

Post ID to reply to.

textstring

Link-free reply text. Required unless media_ids is provided.

media_idsarray

Media IDs to attach, max 4.

Array of: string
create_reply_with_link25cr3 params(2 required)

Reply to another X post with text containing at least one web link. X self-serve plans may restrict replies unless the original author has summoned the authenticated account.

Reply to another X post with text containing at least one web link. X self-serve plans may restrict replies unless the original author has summoned the authenticated account.

reply_to_post_idrequiredstring

Post ID to reply to.

textrequiredstring

Reply text containing at least one web link.

media_idsarray

Media IDs to attach, max 4.

Array of: string
delete_post5cr1 param(1 required)

Delete a post by ID.

Delete a post by ID.

post_idrequiredstring

Post ID to delete.

set_reply_hidden5cr2 params(2 required)

Hide or unhide a reply on your post.

Hide or unhide a reply on your post.

reply_post_idrequiredstring

Reply post ID to hide or unhide.

hiddenrequiredboolean

True to hide, false to unhide.

set_like5cr2 params(2 required)

Like or unlike a post as the authenticated user.

Like or unlike a post as the authenticated user.

post_idrequiredstring

Post ID to like or unlike.

likedrequiredboolean

True to like, false to unlike.

set_repost5cr2 params(2 required)

Repost or undo repost as the authenticated user.

Repost or undo repost as the authenticated user.

post_idrequiredstring

Post ID to repost or undo repost.

repostedrequiredboolean

True to repost, false to undo repost.

lookup_post_engagers5cr5 params(2 required)

List users who liked or reposted a post, or list quote posts.

List users who liked or reposted a post, or list quote posts.

post_idrequiredstring

Post ID to inspect.

engagement_typerequiredstring

Engagement to retrieve: likes, reposts, or quotes.

Values:
likesrepostsquotes
max_resultsinteger

Maximum results to return, 1-100.

pagination_tokenstring

Pagination token from a previous response.

verbositystring

Response detail level: minimal, standard, or expanded.

Values:
minimalstandardexpanded
lookup_users5cr6 params(1 required)

Resolve users by ID, username, or the authenticated account.

Resolve users by ID, username, or the authenticated account.

lookup_byrequiredstring

Lookup mode: ids, usernames, or me.

Values:
idsusernamesme
user_idstring

Single user ID for ids mode.

user_idsarray

Multiple user IDs for ids mode.

Array of: string
usernamestring

Single username without @ for usernames mode.

usernamesarray

Multiple usernames without @ for usernames mode.

Array of: string
verbositystring

Response detail level: minimal, standard, or expanded.

Values:
minimalstandardexpanded
set_follow5cr2 params(2 required)

Follow or unfollow a user as the authenticated user.

Follow or unfollow a user as the authenticated user.

user_idrequiredstring

Target user ID to follow or unfollow.

followingrequiredboolean

True to follow, false to unfollow.

lookup_follows5cr5 params(2 required)

List followers or followed users for a user.

List followers or followed users for a user.

user_idrequiredstring

User ID to inspect.

relationshiprequiredstring

Relationship list to retrieve: followers or following.

Values:
followersfollowing
max_resultsinteger

Maximum results to return, 1-100.

pagination_tokenstring

Pagination token from a previous response.

verbositystring

Response detail level: minimal, standard, or expanded.

Values:
minimalstandardexpanded
lookup_timeline5cr5 params(1 required)

Read user posts, mentions, or authenticated home timeline.

Read user posts, mentions, or authenticated home timeline.

timeline_typerequiredstring

Timeline mode: user_posts, mentions, or home.

Values:
user_postsmentionshome
user_idstring

User ID required for user_posts and mentions; optional for home.

max_resultsinteger

Maximum results to return, 1-100.

pagination_tokenstring

Pagination token from a previous response.

verbositystring

Response detail level: minimal, standard, or expanded.

Values:
minimalstandardexpanded
lookup_dms5cr7 params(1 required)

Read DM events by scope: all, conversation, participant, or event_id.

Read DM events by scope: all, conversation, participant, or event_id.

scoperequiredstring

DM lookup scope: all, conversation, participant, or event_id.

Values:
allconversationparticipantevent_id
conversation_idstring

Conversation ID for conversation scope.

participant_user_idstring

Participant user ID for participant scope.

event_idstring

DM event ID for event_id scope.

max_resultsinteger

Maximum results to return, 1-100.

pagination_tokenstring

Pagination token from a previous response.

verbositystring

Response detail level: minimal, standard, or expanded.

Values:
minimalstandardexpanded
send_dm5cr6 params(1 required)

Send a DM to a participant, existing conversation, or new group.

Send a DM to a participant, existing conversation, or new group.

target_typerequiredstring

Target mode: participant, conversation, or new_group.

Values:
participantconversationnew_group
participant_user_idstring

Participant user ID for participant mode.

conversation_idstring

Conversation ID for conversation mode.

participant_user_idsarray

Participant user IDs for new_group mode.

Array of: string
textstring

DM text. Required unless media_id is provided.

media_idstring

Optional uploaded DM media ID. One media attachment is supported.

upload_media5cr4 params(2 required)

Upload image, GIF, or video media for posts or DMs and return a media ID.

Upload image, GIF, or video media for posts or DMs and return a media ID.

media_typerequiredstring

Media kind: image, gif, or video.

Values:
imagegifvideo
usage_contextrequiredstring

Where the media will be used: post or dm.

Values:
postdm
file_idstring

AgentPMT File Manager file ID to upload.

source_urlstring

Public URL to fetch and upload.

create_list1cr3 params(1 required)

Create a new X List for the authenticated user.

Create a new X List for the authenticated user.

list_namerequiredstring

List name, 1-25 characters.

list_descriptionstring

Optional List description, max 100 characters.

list_privateboolean

True to create a private List.

update_list1cr4 params(1 required)

Update a List's name, description, or privacy setting.

Update a List's name, description, or privacy setting.

list_idrequiredstring

List ID to update.

list_namestring

New List name, 1-25 characters.

list_descriptionstring

New List description, max 100 characters. Use an empty string to clear.

list_privateboolean

True for private, false for public.

delete_list1cr1 param(1 required)

Delete a List owned by the authenticated user.

Delete a List owned by the authenticated user.

list_idrequiredstring

List ID to delete.

set_list_membership1cr3 params(3 required)

Add or remove a user as a member of a List owned by the authenticated user.

Add or remove a user as a member of a List owned by the authenticated user.

list_idrequiredstring

List ID to modify.

user_idrequiredstring

User ID to add or remove.

is_memberrequiredboolean

True to add, false to remove.

set_list_follow1cr2 params(2 required)

Follow or unfollow a List as the authenticated user.

Follow or unfollow a List as the authenticated user.

list_idrequiredstring

List ID to follow or unfollow.

followingrequiredboolean

True to follow, false to unfollow.

set_list_pin1cr2 params(2 required)

Pin or unpin a followed or owned List for the authenticated user.

Pin or unpin a followed or owned List for the authenticated user.

list_idrequiredstring

List ID to pin or unpin.

pinnedrequiredboolean

True to pin, false to unpin.

lookup_lists1cr6 params(1 required)

Look up one List or list owned, membership, followed, or pinned Lists.

Look up one List or list owned, membership, followed, or pinned Lists.

list_scoperequiredstring

Lookup scope: id, owned, memberships, followed, or pinned.

Values:
idownedmembershipsfollowedpinned
list_idstring

Required when list_scope is id.

user_idstring

Optional for owned, memberships, and followed scopes. Omit for pinned because pinned Lists use the authenticated user.

max_resultsinteger

Maximum results to return, 1-100.

pagination_tokenstring

Pagination token from a previous response.

verbositystring

Response detail level: minimal, standard, or expanded.

Values:
minimalstandardexpanded
lookup_list_contents1cr5 params(2 required)

List members, followers, or posts for a List.

List members, followers, or posts for a List.

list_idrequiredstring

List ID to inspect.

list_viewrequiredstring

Content view: members, followers, or posts.

Values:
membersfollowersposts
max_resultsinteger

Maximum results to return, 1-100.

pagination_tokenstring

Pagination token from a previous response.

verbositystring

Response detail level: minimal, standard, or expanded.

Values:
minimalstandardexpanded

About this Product

Run your entire X (Twitter) presence from one connected account

X / Twitter Automation gives AI agents and social teams a single, MCP-ready API to publish, engage, listen, and report on X. Connect your account once, then post, reply, monitor mentions, draft on-brand responses, and send DMs — by hand or fully automated through agent workflows.

What you can do

Publish
  1. Post tweets and replies to X / Twitter, with or without links.
  2. Attach images, GIFs, and video uploaded from File Manager or any public URL.
  3. Schedule and orchestrate content calendars from autonomous agents and workflows.
Listen & monitor
  1. Search recent X posts for brand keywords, mentions, competitors, and trending topics.
  2. Read your mentions, home, and user timelines for analytics and reporting.
  3. See who liked, reposted, or quoted any post.
Engage
  1. Draft and send on-brand replies to the conversations that matter most.
  2. Like, repost, and follow as part of automated engagement.
  3. Hide spam or off-topic replies on your own posts to keep threads clean.
Direct messages
  1. Run social media customer support over X DMs.
  2. Send launch announcements, follow-ups, and outreach to people, existing conversations, or new group chats.
Lists
  1. Build and curate X Lists for launch watch, competitor watch, and community segmentation.
  2. Follow, pin, and manage membership of Lists, and read their members, followers, and posts.

Popular workflows

  1. On-brand reply queue — surface the best recent posts about your topic and draft replies that match your brand voice.
  2. Launch day — publish an announcement with a graphic and link, then monitor reactions and reply to the highest-signal ones.
  3. Always-on brand monitoring — track mentions and competitors, and surface conversations worth joining.
  4. DM customer support — read and respond to support conversations straight from your agents.

Getting started

Connect your X account once with secure OAuth. From there, your agents can publish, search, engage, and DM on your behalf across any workflow.

Frequently Asked Questions

Can it draft replies that match my brand voice?

Yes. Search recent posts about your topic or brand, then have your agent draft on-brand replies for you to review and send — one at a time or in batches.

Can it post images, GIFs, and video?

Yes. Upload media from File Manager or any public URL and attach it to posts, replies, or DMs.

Does it work with autonomous agents and scheduled workflows?

Yes. Every capability is available to agents and workflows, so you can schedule content, automate engagement, and run always-on monitoring.

How do I connect my X account?

Connect once through secure OAuth. After that, your agents act on your connected account across any workflow.

How does brand and competitor monitoring work?

Search recent X posts by keyword, hashtag, or account, read your mentions and home timelines, and curate X Lists to watch the accounts that matter to you.

What can I do with X / Twitter Automation?

Publish posts and replies, upload images, GIFs, and video, search recent X posts for brand and competitor mentions, read your mentions and timelines, like, repost, and follow, send DMs, and build and manage X Lists — all from agents and automated workflows on a connected X account.

Looking for help integrating AI into your business? Set up a free consultation.