Skip to content

Returns the paginated list of spaces with each one formatted for display, including the current user permissions and membership within it.

Community moderators receive every space; everyone else sees public and private spaces plus any secret space they actively belong to. Heavier than the discovery endpoint because every space is run through the full formatter.

Endpoint

  • Method: GET
  • Path: /spaces/all-spaces
  • Edition: Core
  • Controller: SpaceController@getAllSpaces
  • Route source: fluent-community/app/Http/Routes/api.php:31
  • Controller source: fluent-community/app/Http/Controllers/SpaceController.php

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 List All Spaces

GET
/spaces/all-spaces

Returns the paginated list of spaces with each one formatted for display, including the current user permissions and membership within it.

Controller: SpaceController@getAllSpaces
Route source: fluent-community/app/Http/Routes/api.php:31

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Responses

Successful response

application/json
JSON
{
  
"spaces": {
  
  
"current_page": 0,
  
  
"data": [
  
  
  
{
  
  
  
  
"cover_photo": "string",
  
  
  
  
"created_at": "string",
  
  
  
  
"created_by": "string",
  
  
  
  
"description": "string",
  
  
  
  
"description_rendered": "string",
  
  
  
  
"header_links": [
  
  
  
  
  
{
  
  
  
  
  
  
"route": {
  
  
  
  
  
  
  
"name": "string"
  
  
  
  
  
  
},
  
  
  
  
  
  
"title": "string"
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"id": 0,
  
  
  
  
"logo": "string",
  
  
  
  
"members_count": 0,
  
  
  
  
"membership": {
  
  
  
  
  
"ID": 0,
  
  
  
  
  
"display_name": "string",
  
  
  
  
  
"photo": "string",
  
  
  
  
  
"pivot": {
  
  
  
  
  
  
"created_at": "string",
  
  
  
  
  
  
"role": "string",
  
  
  
  
  
  
"space_id": "string",
  
  
  
  
  
  
"status": "string",
  
  
  
  
  
  
"user_id": "string"
  
  
  
  
  
},
  
  
  
  
  
"user_email": "string",
  
  
  
  
  
"user_login": "string",
  
  
  
  
  
"user_nicename": "string",
  
  
  
  
  
"user_registered": "string",
  
  
  
  
  
"user_status": "string",
  
  
  
  
  
"user_url": "string"
  
  
  
  
},
  
  
  
  
"parent_id": "string",
  
  
  
  
"permissions": {
  
  
  
  
  
"can_add_member": true,
  
  
  
  
  
"can_comment": true,
  
  
  
  
  
"can_create_post": true,
  
  
  
  
  
"can_remove_member": true,
  
  
  
  
  
"can_upload_documents": true,
  
  
  
  
  
"can_view_documents": true,
  
  
  
  
  
"can_view_info": true,
  
  
  
  
  
"can_view_media": true,
  
  
  
  
  
"can_view_members": true,
  
  
  
  
  
"can_view_posts": true,
  
  
  
  
  
"community_admin": true,
  
  
  
  
  
"community_moderator": true,
  
  
  
  
  
"delete_any_comment": true,
  
  
  
  
  
"delete_any_feed": true,
  
  
  
  
  
"edit_any_comment": true,
  
  
  
  
  
"edit_any_feed": true,
  
  
  
  
  
"is_member": true,
  
  
  
  
  
"read": true,
  
  
  
  
  
"registered": true,
  
  
  
  
  
"super_admin": true
  
  
  
  
},
  
  
  
  
"privacy": "string",
  
  
  
  
"serial": "string",
  
  
  
  
"settings": {
  
  
  
  
  
"can_request_join": "string",
  
  
  
  
  
"custom_lock_screen": "string",
  
  
  
  
  
"default_comment_sort_by": "string",
  
  
  
  
  
"default_post_sort_by": "string",
  
  
  
  
  
"disable_layout_style": "string",
  
  
  
  
  
"disable_post_sort_by": "string",
  
  
  
  
  
"document_access": "string",
  
  
  
  
  
"document_library": "string",
  
  
  
  
  
"document_upload": "string",
  
  
  
  
  
"emoji": "string",
  
  
  
  
  
"hide_members_count": "string",
  
  
  
  
  
"layout_style": "string",
  
  
  
  
  
"links": [
  
  
  
  
  
  
{
  
  
  
  
  
  
  
"emoji": "string",
  
  
  
  
  
  
  
"enabled": "string",
  
  
  
  
  
  
  
"new_tab": "string",
  
  
  
  
  
  
  
"permalink": "string",
  
  
  
  
  
  
  
"slug": "string",
  
  
  
  
  
  
  
"title": "string"
  
  
  
  
  
  
}
  
  
  
  
  
],
  
  
  
  
  
"media_access": "string",
  
  
  
  
  
"media_gallery": "string",
  
  
  
  
  
"members_page_status": "string",
  
  
  
  
  
"og_image": "string",
  
  
  
  
  
"onboard_redirect_url": "string",
  
  
  
  
  
"restricted_post_only": "string",
  
  
  
  
  
"shape_svg": "string",
  
  
  
  
  
"show_fetured_image": "string",
  
  
  
  
  
"show_paywalls": "string",
  
  
  
  
  
"show_sidebar": "string",
  
  
  
  
  
"topic_required": "string"
  
  
  
  
},
  
  
  
  
"slug": "string",
  
  
  
  
"status": "string",
  
  
  
  
"title": "string",
  
  
  
  
"topics": [
  
  
  
  
  
{
  
  
  
  
  
  
"additionalProperties": "string"
  
  
  
  
  
}
  
  
  
  
],
  
  
  
  
"type": "string",
  
  
  
  
"updated_at": "string"
  
  
  
}
  
  
],
  
  
"first_page_url": "string",
  
  
"from": 0,
  
  
"last_page": 0,
  
  
"last_page_url": "string",
  
  
"links": [
  
  
  
{
  
  
  
  
"active": true,
  
  
  
  
"label": "string",
  
  
  
  
"url": "string"
  
  
  
}
  
  
],
  
  
"next_page_url": "string",
  
  
"path": "string",
  
  
"per_page": 0,
  
  
"prev_page_url": "string",
  
  
"to": 0,
  
  
"total": 0
  
}
}

Playground

Authorization

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation