docs icon indicating copy to clipboard operation
docs copied to clipboard

Document the public event feed (GET /api/events/feed) and shareActivityPublicly opt-out

Open leecalcote opened this issue 3 weeks ago • 1 comments

Layer5 Cloud v1.0.363 (layer5io/meshery-cloud#6428) adds a public event feed and a per-user opt-out. Neither is documented on docs.layer5.io yet.

Document

  1. Public event feed: GET /api/events/feed
    • Unauthenticated, read-only. Paged response {page, pageSize, totalCount, data} (meshery/schemas EventFeedPage, v1.3.116).
    • Query params: page (0-based), pagesize (default 20, max 50; out of range returns 400), optional category and action filters.
    • Only events created with visibility: "public" by users who have not opted out are listed.
    • Item fields: id, userId, category, action, createdAt, visibility, platform, role, line, networks, plus avatarUrl and publicProfileUrl when the user's profile is public. Email and real name are never returned.
    • Caching: Cache-Control: public, max-age=30; per-IP rate limited.
  2. Publishing a public event: POST /api/events with "visibility": "public". The owner is always the calling session or user token; visibility defaults to private.
  3. Opt-out preference: shareActivityPublicly (boolean) in user preferences. Absent means on; set false to hide all of your activity from the feed. Non-boolean values are rejected with 400 (meshery_cloud-3736).

Reference: docs/reference/public-event-feed.md in meshery-cloud.

Suggested location: content/en/cloud/ (reference/API and a short privacy note under user preferences).

leecalcote avatar Nov 09 '26 08:11 leecalcote

Hey @leecalcote ! I'd like to contribute to this issue. I'm happy to work on documenting the public event feed API and the shareActivityPublicly preference, ensuring the documentation accurately reflects the current implementation. Please let me know if I can take this up. Thank you!

ParthrChandurkar avatar Nov 09 '26 18:11 ParthrChandurkar