Returns a cursor-paginated page of the photos, videos or audio shared in one space, each item carrying the post and author it came from.
Select the tab with type set to photos (the default), videos or audios. Paging is by cursor — the last media id seen — rather than a page number, and per_page defaults to 24 and is clamped between 12 and 48. The first page additionally returns has_audio so the client knows whether to offer the audio tab. Only active media attached to published posts is listed.
Endpoint
Method:
GETPath:
/media-gallery/{spaceSlug}Edition: PRO
Controller:
MediaGalleryController@indexRoute source:
fluent-community-pro/app/Modules/MediaGallery/MediaGalleryModule.php:18Requires the
can_view_mediapermission in the space; failure returns 403 carryingpermission_failed, and an unknown space slug returns 404.Requires FluentCommunity Pro.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
GET Get Index
Returns a cursor-paginated page of the photos, videos or audio shared in one space, each item carrying the post and author it came from.
Controller: MediaGalleryController@index
Route source: fluent-community-pro/app/Modules/MediaGallery/MediaGalleryModule.php:18
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Responses
Successful response