Skip to main content
X is a publishing + analytics integration via the X API v2 (OAuth 2.0 with PKCE, auto-refreshing tokens).

Publish

Text, images or video.

Analytics

Account & per-tweet metrics.

Connect

OAuth 2.0 (PKCE) flow:
Open the returned authUrl and approve. The callback /connect/x/callback must be registered in your X app’s User authentication settings.

Publish a tweet

X accepts text only, 1–4 images, or a single video/GIF (media is optional):
The response includes the tweet’s platformPostId and platformPostUrl.

Analytics

Account-level metrics (the six the X API exposes):
Per-tweet metrics (likes, retweets, replies, quotes, impressions, bookmarks) — the tweet id is the number ending its URL, or the platformPostId from publishing:
Detailed impression/engagement data lives at the tweet level, not the account level — an X API limitation, not PlugKit’s.

Not supported

X messaging (DMs) isn’t exposed through this integration.

Permissions

Scopes: tweet.read, tweet.write, users.read, media.write, offline.access (for token refresh).