GET api/2.0/community/forum This function requires authentication

Description

Returns a list of all the portal forums with the topic/thread titles, dates of creation and update, post texts, and authors.

Parameters

This method doesn't have any parameters.

Example
GET api/2.0/community/forum
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

List of forums

Example Response

application/json

{
  "status": 0,
  "response": {
    "Categories": [
      {
        "Id": 0,
        "Title": "Sample title",
        "Created": "2020-12-07T13:56:02.3459179Z",
        "Updated": "2020-12-07T13:56:02.3459179Z",
        "Description": "Sample category",
        "Threads": [
          {
            "Id": 10,
            "Title": "The Thread",
            "UpdatedBy": {
              "Id": "00000000-0000-0000-0000-000000000000",
              "DisplayName": "Mike Zanyatski",
              "Title": "Manager",
              "AvatarSmall": "url to small avatar",
              "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
            },
            "Description": "Sample thread",
            "Created": "2020-12-07T13:56:02.3249197Z",
            "Updated": "2020-12-07T13:56:02.3249197Z",
            "RecentTopicTitle": "Sample topic",
            "RecentTopicId": 1234
          }
        ]
      }
    ]
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <Categories>
      <Id>0</Id>
      <Title>Sample title</Title>
      <Created>2020-12-07T13:56:02.3459179Z</Created>
      <Updated>2020-12-07T13:56:02.3459179Z</Updated>
      <Description>Sample category</Description>
      <Threads>
        <Id>10</Id>
        <Title>The Thread</Title>
        <UpdatedBy>
          <Id>00000000-0000-0000-0000-000000000000</Id>
          <DisplayName>Mike Zanyatski</DisplayName>
          <Title>Manager</Title>
          <AvatarSmall>url to small avatar</AvatarSmall>
          <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
        </UpdatedBy>
        <Description>Sample thread</Description>
        <Created>2020-12-07T13:56:02.3249197Z</Created>
        <Updated>2020-12-07T13:56:02.3249197Z</Updated>
        <RecentTopicTitle>Sample topic</RecentTopicTitle>
        <RecentTopicId>1234</RecentTopicId>
      </Threads>
    </Categories>
  </response>
</result>