Skip to content

Moments ​

Who: listener or creator (author, viewer); system (expiry, close-friends fan-out).

Entry points ​

KindEntry
RESTPOST /moments, GET /me/moments, GET /me/moments/feed, GET /moments/:id, DELETE /moments/:id, POST /moments/:id/views, GET /moments/:id/viewers, PUT/DELETE /moments/:id/reaction, POST /moments/:id/replies
REST (audience)GET/POST /me/close-friends, DELETE /me/close-friends/:userId
REST (highlights)GET /profiles/:profileId/highlights, GET /highlights/:id, POST /highlights, PATCH/DELETE /highlights/:id
MediaPOST /media/uploads for photo/video (≤ 30 s)
Also fromPOST /live/streams/:id/share/moment (live share card)
Deep linkmoment (moment/:id)
Pushmoment.close_friends

Flow ​

  1. Upload media if any, then POST /moments { kind: text|clip|photo|video, audience: followers|close_friends, … } → moments.moment.posted → followers' activity feed (audience followers) or moments.close-friends-notify job → moment.close_friends.
  2. Viewers read GET /me/moments/feed, mark POST …/views; author sees GET …/viewers.
  3. React PUT …/reaction (moments.moment.reacted); reply POST …/replies opens a chat reply.
  4. moments.expiry ends moments at 24 h (moments.moment.expired); highlights keep chosen ones on the profile.
  5. Author deletes → moments.moment.deleted.

Exit states ​

StateCodeActionsClient next
Posted——Show in own ring
Too long / bad clipMOMENT_TOO_LONG, MOMENT_CLIP_INVALID—Trim
Media not readyMOMENT_MEDIA_INVALIDwaitRetry after processing
ExpiredMOMENT_EXPIRED—Remove from the ring
Not allowedMOMENT_FORBIDDEN, MOMENT_NOT_FOUND—Empty state
Close friendsMOMENT_CLOSE_FRIEND_INVALID——
HighlightMOMENT_HIGHLIGHT_NOT_FOUND——

Notifications ​

moment.close_friends only.

Known gaps ​

  • Reactions and replies notify nobody (M9).
  • Moment-reply text in chat is pending (STATUS).
  • Moments are missing from the data export (I7).

Plemuz API v2