Skip to navigation

List Posts (Feed)

List published posts in the social feed, filtered by the user’s audience/segment access.

Authentication: Public with visitor fallback — shows public posts to unauthenticated visitors if public_content is enabled.

Feature gate: Requires posts feature enabled on the app.

Query parameters:

  • page (optional, default 1) — Page number (10 posts per page)
  • space (optional) — Filter to a space by slug; pass all for every space the user can see
  • segment_slug (optional) — Filter to posts targeted at a segment (the segment’s simple_id)
  • sort (optional, default recent) — Order: recent (newest first), oldest, or popular (most liked)
  • start_date (optional) — Only posts created on or after this date (YYYY-MM-DD)
  • end_date (optional) — Only posts created on or before this date (YYYY-MM-DD)

Response:

  • posts — Array of post objects with content, author, media, likes, comments count
  • page — Current page number
  • paging — Pagination metadata
  • current_user_id — Current user’s ID (null for visitors)

Post visibility rules:

  • Admin posts: shown based on audience targeting (public, custom, products, segments)
  • User posts: approved posts shown to all; unapproved posts shown only to the author
  • Visitor access: only public or explicitly non-excluded posts

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

pagestringOptional

Page number (10 posts per page)

Response

OK