---
updatedAt: 2026-05-11T06:52:59.000Z
agentTools:
  projectIndex: https://platform.simpplr.com/llms.txt
---

# Get sites

This API allows us to obtain list of sites based on various filters

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "1.0.0",
    "title": "Simpplr B2B API Documentation",
    "description": "API documentation for Simpplr B2B integration services",
    "contact": {
      "name": "Simpplr Support"
    }
  },
  "x-proxy-enabled": true,
  "tags": [
    {
      "name": "Feed",
      "description": "Everything about Feed"
    },
    {
      "name": "Sites",
      "description": "Everything about Sites"
    }
  ],
  "servers": [
    {
      "url": "https://{endpoint}/v1",
      "variables": {
        "env": {
          "default": "app"
        },
        "endpoint": {
          "default": "platform.app.simpplr.com"
        }
      }
    }
  ],
  "paths": {
    "/b2b/content/sites": {
      "get": {
        "summary": "Get sites",
        "operationId": "getSitesB2b",
        "tags": [
          "Sites"
        ],
        "description": "This API allows us to obtain list of sites based on various filters",
        "parameters": [
          {
            "name": "size",
            "in": "query",
            "description": "Maximum number of results to return",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 50
            },
            "required": false
          },
          {
            "name": "nextPageToken",
            "in": "query",
            "description": "Token for fetching the next page of results",
            "schema": {
              "type": "integer"
            },
            "required": false
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Optional filter for results",
            "schema": {
              "type": "string",
              "enum": [
                "featured"
              ],
              "minLength": 1,
              "maxLength": 200
            },
            "required": false
          },
          {
            "name": "sortBy",
            "in": "query",
            "description": "Technique for sorting results",
            "schema": {
              "type": "string",
              "enum": [
                "alphabetical",
                "featured",
                "createdNewest",
                "popular",
                "updatedNewest"
              ],
              "example": "alphabetical",
              "default": "alphabetical",
              "minLength": 1,
              "maxLength": 255
            },
            "required": false
          },
          {
            "name": "siteIds",
            "in": "query",
            "description": "Optional comma-separated list of site UUIDs to filter the results",
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": false,
            "example": "55ec49b0-61a0-4162-9853-fd45ab2164fa,5c3af8ae-f856-4654-a990-4b46284526fe",
            "required": false
          },
          {
            "name": "modifiedAfter",
            "in": "query",
            "description": "Only return results modified after this date-time. Must be in ISO 8601 UTC format (e.g. 2025-04-09T18:30:00.000Z)",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "required": false
          },
          {
            "name": "includeDeactivated",
            "in": "query",
            "description": "Whether to include deactivated sites or not",
            "schema": {
              "type": "boolean",
              "example": false,
              "default": false
            },
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success",
                      "description": "Response status",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "description": "Contains search results data",
                      "properties": {
                        "nextPageToken": {
                          "type": "integer",
                          "example": 4,
                          "description": "Token for retrieving the next page of results"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "example": 13,
                          "description": "Total number of records matching the search criteria"
                        },
                        "listOfItems": {
                          "type": "array",
                          "description": "List of site search results",
                          "items": {
                            "type": "object",
                            "properties": {
                              "landingPage": {
                                "type": "string",
                                "example": "dashboard",
                                "description": "Default landing page for the site",
                                "enum": [
                                  "dashboard",
                                  "feed",
                                  "about"
                                ]
                              },
                              "hasDashboard": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether the site has a dashboard"
                              },
                              "id": {
                                "type": "string",
                                "example": "74a26dad-8a34-4303-b846-1ddd584aed95",
                                "description": "Unique identifier for the site"
                              },
                              "name": {
                                "type": "string",
                                "example": "$%#$%^$#^#%^%$#^%&$%^&$",
                                "description": "Name of the site"
                              },
                              "memberCount": {
                                "type": "integer",
                                "example": 1,
                                "description": "Number of members in the site"
                              },
                              "managerCount": {
                                "type": "integer",
                                "example": 1,
                                "description": "Number of managers for the site"
                              },
                              "followerCount": {
                                "type": "integer",
                                "example": 0,
                                "description": "Number of followers for the site"
                              },
                              "isFeatured": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether the site is featured"
                              },
                              "isActive": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether the site is active"
                              },
                              "category": {
                                "type": "object",
                                "description": "Category information for the site",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "example": "Uncategorized",
                                    "description": "Name of the category"
                                  },
                                  "id": {
                                    "type": "string",
                                    "example": "73f929f9-5306-41f1-a59f-a7ab495633bc",
                                    "description": "Unique identifier for the category"
                                  }
                                }
                              },
                              "siteType": {
                                "type": "string",
                                "example": "Public",
                                "description": "Type of the site",
                                "enum": [
                                  "Public",
                                  "Private",
                                  "Unlisted"
                                ]
                              },
                              "img": {
                                "type": "string",
                                "example": null,
                                "description": "URL to the site's image"
                              },
                              "canCreatePages": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether the current user can create pages in the site"
                              },
                              "canCreateEvents": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether the current user can create events in the site"
                              },
                              "canCreateAlbums": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether the current user can create albums in the site"
                              },
                              "isContentSubmissionsEnabled": {
                                "type": "boolean",
                                "example": true,
                                "description": "Whether content submissions are enabled for the site"
                              },
                              "isMembershipAutoApproved": {
                                "type": "boolean",
                                "example": false,
                                "description": "Whether membership requests are automatically approved"
                              },
                              "createdOn": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2024-07-18T07:34:26.032Z",
                                "description": "Date and time when the site was created"
                              },
                              "updatedOn": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-04-14T22:45:31.219Z",
                                "description": "Date and time when the site was last updated"
                              },
                              "targetAudience": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "entityAudienceId": {
                                      "type": "string",
                                      "example": "73f929f9-5306-41f1-a59f-a7ab495633bc",
                                      "description": "Unique identifier mapping the target audience with site"
                                    },
                                    "audienceId": {
                                      "type": "string",
                                      "example": "73f929f9-5306-41f1-a59f-a7ab495633bc",
                                      "description": "Unique identifier for the target audience"
                                    }
                                  }
                                },
                                "description": "Target audience for which the site is visible(only applicable for ABAC enabled tenants, will be empty for non ABAC tenants)"
                              },
                              "subscription": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "entityAudienceId": {
                                      "type": "string",
                                      "example": "73f929f9-5306-41f1-a59f-a7ab495633bc",
                                      "description": "Unique identifier mapping the target audience with site"
                                    },
                                    "audienceId": {
                                      "type": "string",
                                      "example": "73f929f9-5306-41f1-a59f-a7ab495633bc",
                                      "description": "Unique identifier for the target audience"
                                    },
                                    "accessType": {
                                      "type": "string",
                                      "example": "member",
                                      "description": "Access type of the subscription",
                                      "enum": [
                                        "member",
                                        "follower"
                                      ]
                                    },
                                    "isMandatory": {
                                      "type": "boolean",
                                      "example": false,
                                      "description": "Whether the subscription is mandatory for the target audience"
                                    },
                                    "status": {
                                      "type": "string",
                                      "example": "active",
                                      "description": "Status of the subscription syncing",
                                      "enum": [
                                        "initialized",
                                        "completed",
                                        "failed",
                                        "in-progress"
                                      ]
                                    }
                                  }
                                },
                                "description": "Audience based subscriptions for the site(only applicable for ABAC enabled tenants, will be empty for non ABAC tenants)"
                              },
                              "systemAudience": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "audienceId": {
                                      "type": "string",
                                      "example": "73f929f9-5306-41f1-a59f-a7ab495633bc",
                                      "description": "Unique identifier for the system audience"
                                    },
                                    "audienceType": {
                                      "type": "string",
                                      "example": "members",
                                      "description": "Type of the system audience",
                                      "enum": [
                                        "site_all_people",
                                        "members",
                                        "followers",
                                        "owners_managers",
                                        "owner",
                                        "managers",
                                        "content_managers",
                                        "non_managing_members"
                                      ]
                                    }
                                  }
                                },
                                "description": "System audiences for the site(only applicable for ABAC enabled tenants, will be empty for non ABAC tenants)"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "seq_id": {
                            "type": "integer",
                            "example": 0
                          },
                          "field_name": {
                            "type": "string",
                            "example": "site_id"
                          },
                          "error_code": {
                            "type": "integer",
                            "example": 1004
                          },
                          "message": {
                            "type": "string",
                            "example": "Invalid 'site_id' value"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/403"
          }
        }
      }
    },
    "/b2b/rfeed/feeds": {
      "get": {
        "operationId": "getFeedsUser",
        "tags": [
          "Feed"
        ],
        "summary": "Get feeds",
        "description": "This API allows you to retrieve all feeds",
        "parameters": [
          {
            "name": "nextPageToken",
            "in": "query",
            "required": true,
            "description": "Token for pagination. \n- For initial request, send empty string \"\"\n- For subsequent requests, use the nextPageToken returned as integer from previous response\n",
            "schema": {
              "type": "string",
              "example": "1759911721822"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": true,
            "description": "The number of feeds to return per page",
            "schema": {
              "type": "string",
              "example": "16"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "lastActivityAt"
              ],
              "default": "createdAt"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all"
              ],
              "default": "all"
            },
            "description": "The filter to apply to the feeds"
          },
          {
            "name": "feedContext",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "home",
                "site",
                "content"
              ],
              "default": "home"
            },
            "description": "The context of the feeds. \n- When set to \"site\", siteId parameter is required\n- When set to \"content\", both siteId and contentId parameters are required\n"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "post",
                "question"
              ],
              "example": "post",
              "description": "The type of feed to return"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the site. \nRequired when feedContext is \"site\" or \"content\"\n"
          },
          {
            "name": "contentId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the content.\nRequired when feedContext is \"content\"\n"
          },
          {
            "name": "feedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to return (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "exemptFeedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to exempt from the search (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "isSearchForMarkDuplicate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": false
            },
            "description": "Whether to search for mark duplicate feeds(questions)"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "nextPageToken": {
                          "type": "integer",
                          "example": 1759911721822
                        },
                        "size": {
                          "type": "integer",
                          "example": 10
                        },
                        "total": {
                          "type": "integer",
                          "example": 11
                        },
                        "listOfItems": {
                          "type": "array",
                          "items": {
                            "$ref": "#/paths/~1b2b~1rfeed~1feeds~1{feedId}/get/responses/200/content/application~1json/schema/properties/result"
                          }
                        },
                        "sortBy": {
                          "type": "string",
                          "example": "lastActivityAt"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to get feeds"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "INVALID_INPUT"
                          },
                          "message": {
                            "type": "string",
                            "example": "An error occurred while processing the request"
                          },
                          "cause": {
                            "type": "string",
                            "example": "size is required"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authorize error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Missing/Invalid authentication token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "integer",
                      "example": 2001
                    },
                    "message": {
                      "type": "string",
                      "example": "Something went wrong, please try again"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2ClientCredentials": {
        "type": "oauth2",
        "description": "This API uses OAuth 2 with the implicit grant flow.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://platform.{env}.simpplr.xyz/v1/identity/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "OAuth2ClientCredentials": []
    }
  ]
}
```