Details
| Field | Value |
|---|---|
| Platform slug | twitter |
| Auth type | OAuth 2.0 (X / Twitter v2) |
| API | X API v2 |
Feature support
| Feature | Supported | Notes |
|---|---|---|
| List posts | ✅ | Returns user tweets |
| Comments | ✅ | Replies to a specific tweet |
| Reply to comment | ✅ | |
| Comment replies (thread) | ✅ | |
| Moderate comment (hide/delete) | ✅ | Hide a reply, or delete your own reply |
| Like comment | ✅ | Like/unlike a tweet or reply |
| Private reply | - | Not applicable |
| DMs | ✅ | Direct Messages via X API v2 |
| Send DM | ✅ | |
| Reviews | - | Not applicable |
| Mentions | ✅ | Tweets mentioning the authenticated user |
| Create post | ✅ | Text tweets, with optional media |
| Update post | - | X does not expose a public edit endpoint |
| Delete post | ✅ |
Connecting
auth_url. After they authorize, X redirects to your redirect_uri with ?code=...&state=.... Then call:
Publishing
Create a tweet with optional reply settings:PlatformData fields
Pass these insideplatform_data.twitter when creating a post.
| Field | Type | Default | Description |
|---|---|---|---|
reply_settings | string | "everyone" | Who can reply to this tweet. Options: "everyone", "following" (only people you follow), "verified" (only verified accounts). |
Sample: List mentions
Sample: List DMs
Notes
- No post editing. X does not expose a public edit API.
UpdatePostreturns501. Delete and re-create if needed. - No webhook handler. X does not push real-time events via this integration. Posts and comments are fetched on demand.
- Comment moderation. Hide toggles reply visibility. Delete removes your own replies. Like/unlike is supported.
- Token refresh. X OAuth 2.0 tokens expire. SocialAPI handles refresh automatically. If you receive
401withcode: "invalid_token", reconnect the account. - Required scopes. Your X Developer App must have the appropriate OAuth 2.0 scopes for reading tweets, posting, DMs, and user lookup.