On this page

19 endpoints.

MethodPathSummary
POST/api/communities/{communityId}/storiesPublish a story (نشر قصة)
DELETE/api/communities/{communityId}/stories/{storyId}Delete my own story (حذف قصتي)
POST/api/communities/{communityId}/stories/{storyId}/hideHide a story (إخفاء) — reason required, the author is notified
PUT/api/communities/{communityId}/stories/{storyId}/likeLike or unlike a story (إعجاب)
GET/api/communities/{communityId}/stories/{storyId}/mediaThe story's photo or video
POST/api/communities/{communityId}/stories/{storyId}/removeRemove a story as a moderator (حذف) — reason required, restorable
POST/api/communities/{communityId}/stories/{storyId}/replyReply to a story — sent to the author as a direct message
POST/api/communities/{communityId}/stories/{storyId}/restoreRestore a story a moderator removed
POST/api/communities/{communityId}/stories/{storyId}/unhideShow a hidden story again
POST/api/communities/{communityId}/stories/{storyId}/viewMark a story as seen
GET/api/communities/{communityId}/stories/{storyId}/viewersWho saw my story (شوهدت بواسطة) — the author only
GET/api/communities/{communityId}/stories/feedThe stories rail (شريط القصص)
GET/api/communities/{communityId}/stories/me/eligibilityMay I publish a story? (هل أقدر أنشر قصة؟)
GET/api/communities/{communityId}/stories/moderationManage stories (إدارة القصص)
GET/api/communities/{communityId}/stories/publishersMembers who may publish when audience = SELECTED
DELETE/api/communities/{communityId}/stories/publishers/{memberId}Remove one member from the story publisher list
PUT/api/communities/{communityId}/stories/publishers/{memberId}Add one member to the story publisher list
GET/api/communities/{communityId}/stories/settingsStory settings (إعدادات القصص)
PUT/api/communities/{communityId}/stories/settingsChange who may publish stories (من يحق له نشر القصص)

multipart/form-data. Send storyMedia (one image ≤10MB or video ≤50MB and ≤60s) with an optional caption, or no file and a caption with a background (sunset, ocean, forest, night, rose, gold, community) for a text story. Videos must send durationMs. The story is live for 72 hours. Who may publish follows the community''s audience setting (STAFF / ALL / SELECTED).

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—

Request body — multipart/form-data

FieldTypeRequiredDescription
storyMediastring (binary)no—
captionstringno—
backgroundstringno—
durationMsintegerno—

Responses

StatusDescriptionBody
201The created story—
400STORY_EMPTY, STORY_UNSUPPORTED_MEDIA, STORY_MEDIA_TOO_LARGE, STORY_VIDEO_TOO_LONG, …—
403STORY_NOT_GRANTED, STORY_BLOCKED, STORY_LIVE_LIMIT, or a restriction—

Removes the story, its views and its file. Someone else's story answers 404. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—

Responses

StatusDescriptionBody
200deleted—
404STORY_NOT_FOUND—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—

Responses

StatusDescriptionBody
200story.moderationStatus = HIDDEN—
400STORY_REASON_REQUIRED—
409STORY_INVALID_TRANSITION—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—

Request body — application/json

FieldTypeRequiredDescription
likedbooleanno—

Responses

StatusDescriptionBody
200liked—

Story files are private: they are never served by the public file proxy. A member gets the file only while the story is live and visible to them; a moderator (posts:manage or posts:moderate) also while it is hidden or removed, until it is purged a day after it expires. Answers 404 otherwise. Honours a single Range: bytes=a-b (206) so video players can seek. Sent with Cache-Control: private, no-store. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—
Rangeheadernostring—

Responses

StatusDescriptionBody
200The whole file (image/* or video/*)—
206The requested byte range—
404STORY_NOT_FOUND — expired, hidden, removed, purged, a text story, or not yours to see—
416STORY_MEDIA_RANGE_INVALID—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—

Responses

StatusDescriptionBody
200story.moderationStatus = DELETED—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—

Request body — application/json

FieldTypeRequiredDescription
textstringyes—

Responses

StatusDescriptionBody
201conversationId, messageId—
403DM_FEATURE_DISABLED, or a chat restriction—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—

Responses

StatusDescriptionBody
200story.moderationStatus = PUBLISHED—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—

Responses

StatusDescriptionBody
200story.moderationStatus = PUBLISHED—

Idempotent; the first view time is kept. The author's own views are not recorded. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—

Responses

StatusDescriptionBody
200viewed—
404STORY_NOT_FOUND (also for expired or hidden stories)—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
storyIdpathyesstring—

Responses

StatusDescriptionBody
200viewers (likers first), likeCount—
404STORY_NOT_FOUND — also for someone else's story—

Every live story in the community, grouped by author: the caller''s own reel first, then authors with unseen stories (newest first), then fully watched ones. A story is live while it is published and less than 72 hours old. Items inside a reel are oldest first. viewCount and likeCount are filled on the caller''s own stories only. me.canPost says whether the caller may publish, and why not.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—

Responses

StatusDescriptionBody
200reels, me (memberId, displayName, avatar, canPost), lifetimeHours—
403NOT_A_COMMUNITY_MEMBER—

canPost.allowed and, when false, canPost.reason: NOT_GRANTED (the community limits stories to staff or to a list), BLOCKED (a posting restriction), or LIVE_LIMIT (30 live stories at once).

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—

Responses

StatusDescriptionBody
200canPost—

Every story in one tab — live, expired, hidden or deleted — with its author, views and likes, plus the count of each tab. Query: tab, page, limit.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
tabquerynoenum: live, expired, hidden, deleted—

Responses

StatusDescriptionBody
200stories, counts, pagination—

Plain members only, selected first, each with isPublisher. Query: q, page, limit. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—

Responses

StatusDescriptionBody
200candidates, selectedCount, pagination—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
memberIdpathyesstring—

Responses

StatusDescriptionBody
200isPublisher = false—

memberId is a CommunityMember.id of an approved plain member. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—
memberIdpathyesstring—

Responses

StatusDescriptionBody
200isPublisher = true—
400INVALID_STORY_PUBLISHER_MEMBER—

audience: STAFF (default), ALL or SELECTED. Requires posts:manage or posts:moderate. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—

Responses

StatusDescriptionBody
200settings—
403Missing permission—

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
communityIdpathyesstring—

Request body — application/json

FieldTypeRequiredDescription
audienceenum: STAFF, ALL, SELECTEDyes—

Responses

StatusDescriptionBody
200settings—
400INVALID_STORY_AUDIENCE—