Appearance
Moments
Under /v1. 24-hour items (MOMENT_LIFETIME_HOURS). Kinds: text (styled), song_clip (recording + start, at most 30 s), photo, video (at most 30 s). Audience followers | close_friends. Moments are never public: every route needs a user, except highlight reads.
| Method | Path | Auth | Body / query | Response |
|---|---|---|---|---|
| POST | /moments | user (owns profileId) | text: { kind:"text", profileId, audience?, caption?, text, style?{ background, font, color, align } }; clip: { kind:"song_clip", profileId, recordingId, startMs, durationMs }; media: { kind:"photo"|"video", profileId, mediaAssetId } | MomentView 201 (100/day) |
| GET | /me/moments | user | own live moments with insights | |
| GET | /me/moments/feed | user | page | Tray { profileId, userId, hasUnseen, latestAt, moments[] }[], newest first |
| GET | /moments/:id | user | MomentView | |
| DELETE | /moments/:id | author | ok | |
| POST | /moments/:id/views | user | ok (first view counts) | |
| GET | /moments/:id/viewers | author | page | { userId, viewedAt, reaction }[] |
| PUT | /moments/:id/reaction | user | { code } | ok |
| DELETE | /moments/:id/reaction | user | ok | |
| POST | /moments/:id/replies | user | { text } | ok 202 (sent as a chat message via messaging) |
| GET | /me/close-friends | user | page | { userId, addedAt }[] |
| POST | /me/close-friends | user | { userId } | ok 201 |
| DELETE | /me/close-friends/:userId | user | ok | |
| GET | /profiles/:profileId/highlights | guest | Highlight[] | |
| GET | /highlights/:id | guest | Highlight + moments[] (close-friends items only for the list) | |
| POST | /highlights | user | { profileId, title, momentIds[], coverMomentId?, coverAssetId? } | Highlight 201 |
| PATCH | /highlights/:id | owner | { title?, coverMomentId?, coverAssetId?, position?, addMomentIds?, removeMomentIds? } | Highlight |
| DELETE | /highlights/:id | owner | ok |
MomentView: id, authorUserId, authorProfileId, kind, caption, text, clip, media, status, isSeen, myReaction, insights (author only: audience, views, reactions, replies), expiresAt, createdAt.
Errors: MOMENT_NOT_FOUND, MOMENT_FORBIDDEN, MOMENT_EXPIRED, MOMENT_TOO_LONG, MOMENT_MEDIA_INVALID, MOMENT_CLIP_INVALID, MOMENT_HIGHLIGHT_NOT_FOUND, MOMENT_CLOSE_FRIEND_INVALID, PROFILE_NOT_FOUND.
Jobs: moments.expiry every minute (emits moments.moment.expired with isHighlighted), moments.close-friends-notify batches (moment.close_friends notification). Events: moments.moment.posted/expired/deleted/reacted.
Account privacy
| Event | Behaviour |
|---|---|
identity.user.deleted | Moments marked deleted; highlights, reactions (counts adjusted), views and close-friends lists (both directions) are deleted. |
identity.user.deactivated | Active moments leave the tray (held), and the owner's highlights are hidden from every read. |
identity.user.reactivated | Highlights return; held moments still inside their 24 hours become active again. |
| Data export | Section moments: moments, reactions, close friends, highlights. |
Highlight items never include deleted moments.