On this page

Tweet/Post management endpoints

21 endpoints.

MethodPathSummary
GET/api/tweetsGet tweets feed (تغذية المنشورات)
POST/api/tweetsCreate a new tweet (إنشاء منشور جديد)
DELETE/api/tweets/{tweetId}Delete a tweet (حذف المنشور)
GET/api/tweets/{tweetId}Get tweet by ID (تفاصيل المنشور)
PATCH/api/tweets/{tweetId}Edit a tweet (تعديل المنشور)
DELETE/api/tweets/{tweetId}/likeRemove your reaction (إلغاء التفاعل)
POST/api/tweets/{tweetId}/likeReact to a post (تفاعل مع المنشور)
GET/api/tweets/{tweetId}/likesWho reacted to a post (من تفاعل مع المنشور)
PATCH/api/tweets/{tweetId}/pinPin a tweet (تثبيت المنشور)
GET/api/tweets/{tweetId}/poll/resultsGet poll results (نتائج الاستطلاع)
POST/api/tweets/{tweetId}/poll/voteVote on a poll (التصويت في استطلاع)
DELETE/api/tweets/{tweetId}/share-homeRemove a group post from the home feed (إلغاء المشاركة)
POST/api/tweets/{tweetId}/share-homeShare a group post to the home feed (مشاركة منشور المجموعة في الرئيسية)
PATCH/api/tweets/{tweetId}/unpinUnpin a tweet (إلغاء تثبيت المنشور)
GET/api/tweets/pinnedGet pinned tweets (المنشورات المثبتة)
GET/api/tweets/scheduledList scheduled posts (المنشورات المجدولة)
POST/api/tweets/scheduledSchedule a post (جدولة منشور)
DELETE/api/tweets/scheduled/{id}Cancel a scheduled post (إلغاء منشور مجدول)
PATCH/api/tweets/scheduled/{id}Edit a scheduled post (تعديل منشور مجدول)
POST/api/tweets/scheduled/{id}/publishPublish a scheduled post now (انشر الآن)
GET/api/tweets/user/{userId}Get user's tweets (منشورات المستخدم)

Returns paginated tweets for the community or a specific group Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdqueryyesstring (uuid)Community ID
groupIdquerynostring (uuid)Filter by group (optional)
typequerynoenum: TEXT, IMAGE, VIDEO, DOCUMENT, POLLFilter by tweet type
pagequerynointeger—
limitquerynointeger—

Responses

StatusDescriptionBody
200Paginated list of tweetsobject
401Authentication required—

Create a new tweet/post in the community or a specific group. Supports text, images, videos, documents, and polls.

  • Max 10 media files per tweet
  • Images: JPEG, PNG, GIF, WebP (max 10MB each)
  • Videos: MP4, WebM, MOV, AVI (max 100MB each)
  • Documents: PDF, Word, Excel, PowerPoint, TXT, RTF (max 10MB each)

Auth: Bearer JWT required.

Request body (required) — multipart/form-data

FieldTypeRequiredDescription
communityIdstring (uuid)yesCommunity ID
groupIdstring (uuid)noOptional group ID for group posts
contentstringyesTweet text content
typeenum: TEXT, IMAGE, VIDEO, DOCUMENT, POLLno—
mediastring (binary)[]noMedia files (max 10)
pollstringnoJSON string for poll data: "question": "...", "options": ["A", "B"], "endDate": "2024-12-31T23:59:59Z", "allowMultipleVotes": false

Responses

StatusDescriptionBody
201Tweet created successfullyobject
400Validation error—
401Authentication required—
403User is restricted from posting—
429Rate limit exceeded—

Permanently delete a tweet. Only the author or moderators can delete. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Tweet deleted successfully—
403Not authorized to delete—
404Tweet not found—

Returns detailed information about a specific tweet Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Tweet detailsobject
404Tweet not found—

Edit an existing tweet. Only the author or moderators can edit.

  • Poll tweets cannot be edited after votes are cast

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Request body (required) — application/json

FieldTypeRequiredDescription
contentstringno—

Responses

StatusDescriptionBody
200Tweet updated successfully—
400Invalid request—
403Not authorized to edit—
404Tweet not found—

Remove your reaction from a post, whatever its type. Answers the same shape as POST. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Like removed successfully—

Leave a reaction on a post, or change it. One reaction per member per post: sending another type replaces the first (the author is notified once, for the first). Without type the reaction is LIKE, as it always was. Rate limited.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Request body — application/json

FieldTypeRequiredDescription
typeenum: LIKE, CELEBRATE, SUPPORT, LOVE, INSIGHTFUL, FUNNYno—

Responses

StatusDescriptionBody
200{ success, data: { success, liked, likesCount, myReaction, reactionCounts, topReactions } } — likesCount counts every type; reactionCounts has every type (zeros included); topReactions is the most used types, most first, at most 3.—
400type is not one of the six — { error: 'INVALID_REACTION_TYPE' }—
403User is restricted from liking—
429Rate limit exceeded—

The members who reacted to a post — every type, or one (type) — newest first, with their reaction and the name and picture this community shows for them. Visible only to a signed-in member who may read the post itself (private groups and hidden posts answer 404). Every post response also carries its newest likers as recentLikers (at most 3).

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring—
communityIdqueryyesstring—
pagequerynointeger—
limitquerynointeger—
typequerynoenum: ALL, LIKE, CELEBRATE, SUPPORT, LOVE, INSIGHTFUL, FUNNY—

Responses

StatusDescriptionBody
200{ success, data: { likers: [{ userId, firstName, familyName, avatar, reactionType, likedAt }], reactionCounts: { LIKE, CELEBRATE, SUPPORT, LOVE, INSIGHTFUL, FUNNY }, pagination: { page, limit, total, hasMore } } } — reactionCounts covers the whole post whatever type is; total is the count of the filtered list.—
400type is not ALL or one of the six — { error: 'INVALID_REACTION_TYPE' }—
401Not signed in—
403Not a member of the community—
404The post does not exist or the viewer may not read it—

Pin a tweet to the top of the feed. Requires moderation permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Tweet pinned successfully—
403Permission denied—

Returns current poll results with vote counts Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Poll resultsobject
404Tweet is not a poll—

Cast a vote on a poll tweet. Rate limited. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Request body (required) — application/json

FieldTypeRequiredDescription
optionIdstring (uuid)yesPoll option ID to vote for

Responses

StatusDescriptionBody
200Vote recorded successfully—
400Poll has ended or invalid option—
403User is restricted from voting—
429Rate limit exceeded—

The post stays in its group. Same people as sharing, but the group switch is not required — removing is always allowed. Idempotent.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring—
communityIdqueryyesstring—

Responses

StatusDescriptionBody
200The post, with sharedToHomeAt null.—
400NOT_A_GROUP_POST—
401Not signed in—
403GROUP_SHARE_FORBIDDEN or NOT_A_COMMUNITY_MEMBER—
404The post or its group does not exist—

Puts a group post on the community home feed with a «من مجموعة …» badge. Allowed only when the group's allowShareToHome switch is on (always off for a hidden group), and only for the post's author, the group's admins/moderators, or a community moderator of group posts. Once shared, the post — not the rest of the group — is readable by every community member. Idempotent.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring—
communityIdqueryyesstring—

Responses

StatusDescriptionBody
200The post, with sharedToHomeAt set and group filled in.—
400NOT_A_GROUP_POST — a home post is already on the home feed—
401Not signed in—
403GROUP_SHARE_NOT_ALLOWED (the group's switch is off or the group is hidden), GROUP_SHARE_FORBIDDEN (not the author or a group moderator), NOT_A_COMMUNITY_MEMBER, or a posting restriction.—
404The post or its group does not exist—

Remove pin from a tweet. Requires moderation permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
tweetIdpathyesstring (uuid)—

Responses

StatusDescriptionBody
200Tweet unpinned successfully—
403Permission denied—

Returns all pinned tweets for the community Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdqueryyesstring (uuid)—
groupIdquerynostring (uuid)—

Responses

StatusDescriptionBody
200List of pinned tweets—

Scheduled posts still to come, and those that could not be published. A community admin sees every one in the community; a moderator only their own. Members get 403 SCHEDULE_NOT_ALLOWED.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdqueryyesstring (uuid)—

Responses

StatusDescriptionBody
200The list, soonest firstobject
403SCHEDULE_NOT_ALLOWED — not an admin or moderator of this community—

The create-post form (same fields and limits as POST /api/tweets) plus publishAt, an ISO-8601 date-time WITH its offset, 5 minutes to 90 days ahead. Home posts only. Attachments are uploaded now; the post is created at publishAt by the publisher job.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdqueryyesstring (uuid)—

Request body (required) — multipart/form-data

FieldTypeRequiredDescription
communityIdstring (uuid)yes—
publishAtstring (date-time)yes—
contentstringno—
typeenum: TEXT, IMAGE, VIDEO, DOCUMENT, POLLno—
allowCommentsbooleanno—
isGuestVisiblebooleanno—
pollstringnoJSON-encoded poll
filesstring (binary)[]no—

Responses

StatusDescriptionBody
201Scheduled—
400INVALID_PUBLISH_AT, PUBLISH_AT_TOO_SOON, PUBLISH_AT_TOO_FAR, POLL_ENDS_BEFORE_PUBLISH, SCHEDULE_GROUP_POST_NOT_SUPPORTED, COMMUNITY_MISMATCH—
403SCHEDULE_NOT_ALLOWED—

A SCHEDULED or FAILED post. Its author, or a community admin. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)—
communityIdqueryyesstring (uuid)—

Responses

StatusDescriptionBody
200Cancelled—
403SCHEDULE_NOT_ALLOWED or SCHEDULED_POST_NOT_YOURS—
404SCHEDULED_POST_NOT_FOUND—
409SCHEDULED_POST_NOT_EDITABLE—
429RATE_LIMITED — 30 scheduled-post writes—

Text and time only, and only while it is still SCHEDULED (else 409 SCHEDULED_POST_NOT_EDITABLE). Its author ONLY — an admin may publish it now or cancel it, never rewrite it (403 SCHEDULED_POST_NOT_YOURS). Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)—
communityIdqueryyesstring (uuid)—

Request body — application/json

FieldTypeRequiredDescription
communityIdstring (uuid)no—
contentstringno—
publishAtstring (date-time)no—

Responses

StatusDescriptionBody
200Updated—
403SCHEDULE_NOT_ALLOWED—
404SCHEDULED_POST_NOT_FOUND—
409SCHEDULED_POST_NOT_EDITABLE—
429RATE_LIMITED — 30 scheduled-post writes—

A SCHEDULED or FAILED post, through the same checks as posting now. Answers the new post's id. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
idpathyesstring (uuid)—
communityIdqueryyesstring (uuid)—

Responses

StatusDescriptionBody
200Published—
403SCHEDULE_NOT_ALLOWED or SCHEDULED_POST_NOT_YOURS—
409SCHEDULED_POST_NOT_EDITABLE—
429RATE_LIMITED — 30 scheduled-post writes—

Returns all tweets by a specific user Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
userIdpathyesstring (uuid)—
communityIdqueryyesstring (uuid)—
pagequerynointeger—
limitquerynointeger—

Responses

StatusDescriptionBody
200Paginated list of user's tweets—