Appearance
Moments
Who: listener or creator (author, viewer); system (expiry, close-friends fan-out).
Entry points
| Kind | Entry |
|---|---|
| REST | POST /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 |
| Media | POST /media/uploads for photo/video (≤ 30 s) |
| Also from | POST /live/streams/:id/share/moment (live share card) |
| Deep link | moment (moment/:id) |
| Push | moment.close_friends |
Flow
- Upload media if any, then
POST /moments { kind: text|clip|photo|video, audience: followers|close_friends, … }→moments.moment.posted→ followers' activity feed (audiencefollowers) ormoments.close-friends-notifyjob →moment.close_friends. - Viewers read
GET /me/moments/feed, markPOST …/views; author seesGET …/viewers. - React
PUT …/reaction(moments.moment.reacted); replyPOST …/repliesopens a chat reply. moments.expiryends moments at 24 h (moments.moment.expired); highlights keep chosen ones on the profile.- Author deletes →
moments.moment.deleted.
Exit states
| State | Code | Actions | Client next |
|---|---|---|---|
| Posted | — | — | Show in own ring |
| Too long / bad clip | MOMENT_TOO_LONG, MOMENT_CLIP_INVALID | — | Trim |
| Media not ready | MOMENT_MEDIA_INVALID | wait | Retry after processing |
| Expired | MOMENT_EXPIRED | — | Remove from the ring |
| Not allowed | MOMENT_FORBIDDEN, MOMENT_NOT_FOUND | — | Empty state |
| Close friends | MOMENT_CLOSE_FRIEND_INVALID | — | — |
| Highlight | MOMENT_HIGHLIGHT_NOT_FOUND | — | — |
Notifications
moment.close_friends only.