19 endpoints.
| Method | Path | Summary |
|---|---|---|
POST | /api/communities/{communityId}/stories | Publish a story (نشر قصة) |
DELETE | /api/communities/{communityId}/stories/{storyId} | Delete my own story (حذف قصتي) |
POST | /api/communities/{communityId}/stories/{storyId}/hide | Hide a story (إخفاء) — reason required, the author is notified |
PUT | /api/communities/{communityId}/stories/{storyId}/like | Like or unlike a story (إعجاب) |
GET | /api/communities/{communityId}/stories/{storyId}/media | The story's photo or video |
POST | /api/communities/{communityId}/stories/{storyId}/remove | Remove a story as a moderator (حذف) — reason required, restorable |
POST | /api/communities/{communityId}/stories/{storyId}/reply | Reply to a story — sent to the author as a direct message |
POST | /api/communities/{communityId}/stories/{storyId}/restore | Restore a story a moderator removed |
POST | /api/communities/{communityId}/stories/{storyId}/unhide | Show a hidden story again |
POST | /api/communities/{communityId}/stories/{storyId}/view | Mark a story as seen |
GET | /api/communities/{communityId}/stories/{storyId}/viewers | Who saw my story (شوهدت بواسطة) — the author only |
GET | /api/communities/{communityId}/stories/feed | The stories rail (شريط القصص) |
GET | /api/communities/{communityId}/stories/me/eligibility | May I publish a story? (هل أقدر أنشر قصة؟) |
GET | /api/communities/{communityId}/stories/moderation | Manage stories (إدارة القصص) |
GET | /api/communities/{communityId}/stories/publishers | Members 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/settings | Story settings (إعدادات القصص) |
PUT | /api/communities/{communityId}/stories/settings | Change who may publish stories (من يحق له نشر القصص) |
POST /api/communities/{communityId}/storiesmultipart/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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
Request body — multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
storyMedia | string (binary) | no | — |
caption | string | no | — |
background | string | no | — |
durationMs | integer | no | — |
Responses
| Status | Description | Body |
|---|---|---|
201 | The created story | — |
400 | STORY_EMPTY, STORY_UNSUPPORTED_MEDIA, STORY_MEDIA_TOO_LARGE, STORY_VIDEO_TOO_LONG, … | — |
403 | STORY_NOT_GRANTED, STORY_BLOCKED, STORY_LIVE_LIMIT, or a restriction | — |
DELETE /api/communities/{communityId}/stories/{storyId}Removes the story, its views and its file. Someone else's story answers 404. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | deleted | — |
404 | STORY_NOT_FOUND | — |
POST /api/communities/{communityId}/stories/{storyId}/hideAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | story.moderationStatus = HIDDEN | — |
400 | STORY_REASON_REQUIRED | — |
409 | STORY_INVALID_TRANSITION | — |
PUT /api/communities/{communityId}/stories/{storyId}/likeAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Request body — application/json
| Field | Type | Required | Description |
|---|---|---|---|
liked | boolean | no | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | liked | — |
GET /api/communities/{communityId}/stories/{storyId}/mediaStory 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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Range | header | no | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The whole file (image/* or video/*) | — |
206 | The requested byte range | — |
404 | STORY_NOT_FOUND — expired, hidden, removed, purged, a text story, or not yours to see | — |
416 | STORY_MEDIA_RANGE_INVALID | — |
POST /api/communities/{communityId}/stories/{storyId}/removeAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | story.moderationStatus = DELETED | — |
POST /api/communities/{communityId}/stories/{storyId}/replyAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Request body — application/json
| Field | Type | Required | Description |
|---|---|---|---|
text | string | yes | — |
Responses
| Status | Description | Body |
|---|---|---|
201 | conversationId, messageId | — |
403 | DM_FEATURE_DISABLED, or a chat restriction | — |
POST /api/communities/{communityId}/stories/{storyId}/restoreAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | story.moderationStatus = PUBLISHED | — |
POST /api/communities/{communityId}/stories/{storyId}/unhideAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | story.moderationStatus = PUBLISHED | — |
POST /api/communities/{communityId}/stories/{storyId}/viewIdempotent; the first view time is kept. The author's own views are not recorded. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | viewed | — |
404 | STORY_NOT_FOUND (also for expired or hidden stories) | — |
GET /api/communities/{communityId}/stories/{storyId}/viewersAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
storyId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | viewers (likers first), likeCount | — |
404 | STORY_NOT_FOUND — also for someone else's story | — |
GET /api/communities/{communityId}/stories/feedEvery 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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | reels, me (memberId, displayName, avatar, canPost), lifetimeHours | — |
403 | NOT_A_COMMUNITY_MEMBER | — |
GET /api/communities/{communityId}/stories/me/eligibilitycanPost.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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | canPost | — |
GET /api/communities/{communityId}/stories/moderationEvery 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
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
tab | query | no | enum: live, expired, hidden, deleted | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | stories, counts, pagination | — |
GET /api/communities/{communityId}/stories/publishersPlain members only, selected first, each with isPublisher. Query: q, page, limit. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | candidates, selectedCount, pagination | — |
DELETE /api/communities/{communityId}/stories/publishers/{memberId}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
memberId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | isPublisher = false | — |
PUT /api/communities/{communityId}/stories/publishers/{memberId}memberId is a CommunityMember.id of an approved plain member. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
memberId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | isPublisher = true | — |
400 | INVALID_STORY_PUBLISHER_MEMBER | — |
GET /api/communities/{communityId}/stories/settingsaudience: STAFF (default), ALL or SELECTED. Requires posts:manage or posts:moderate.
Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | settings | — |
403 | Missing permission | — |
PUT /api/communities/{communityId}/stories/settingsAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
communityId | path | yes | string | — |
Request body — application/json
| Field | Type | Required | Description |
|---|---|---|---|
audience | enum: STAFF, ALL, SELECTED | yes | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | settings | — |
400 | INVALID_STORY_AUDIENCE | — |