Tweets on VidTube are short text posts tied to a user’s channel — similar to YouTube’s Community posts. Any user can post tweets, list another user’s tweets, and manage their own. Reading tweets is public; creating, updating, and deleting require authentication.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Pragyat-Nikunj/VidTube/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/tweets/getUserTweets/:userId
List all tweets posted by a specific user.MongoDB ObjectId of the user whose tweets to fetch.
400 (missing userId), 404 (no tweets found for this user)
POST /api/v1/tweets/createTweet
Protected — requires
Authorization: Bearer <accessToken>Text content of the tweet. Cannot be blank.
400 (missing or blank content), 500 (creation failed)
PATCH /api/v1/tweets/updateTweet/:tweetId
Protected — requires
Authorization: Bearer <accessToken>MongoDB ObjectId of the tweet to update.
New text content for the tweet. Cannot be blank.
400 (missing tweetId or blank content, tweet doesn’t exist)
DELETE /api/v1/tweets/deleteTweet/:tweetId
Protected — requires
Authorization: Bearer <accessToken>MongoDB ObjectId of the tweet to delete.
400 (missing tweetId, tweet doesn’t exist)