> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://customerhub.com/api/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://customerhub.com/api/_mcp/server.

# Get Post Comments

GET https://api.customerhub.com/web_api/posts/{id}/comments

Get paginated comments for a post.

**Authentication:** Public with visitor fallback.

**Feature gate:** Requires `posts` feature enabled.

**Path parameters:**
- `id` (required) — Post ID

**Query parameters:**
- `page` (optional, default 1) — Page number (50 comments per page)

**Response:** Array of comment objects with author info, content, timestamps, and like counts.

**Errors:**
- `404` — Post not found

Reference: https://customerhub.com/api/api-reference/posts-feed/get-post-comments

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `id` (string, required) — Post ID

### Query parameters

- `page` (string, optional)

## Response

### 200

OK

## Examples

**Response**

```json
{
  "data": {
    "comments": [
      {
        "admin": null,
        "admin_comment": false,
        "admin_content": null,
        "admin_id": null,
        "app_id": "dc49d1a0-3ede-40fb-91c3-7198d7e9ebde",
        "attachments": [],
        "comments": [
          {
            "admin": null,
            "admin_comment": false,
            "admin_content": null,
            "admin_id": null,
            "app_id": "dc49d1a0-3ede-40fb-91c3-7198d7e9ebde",
            "attachments": [],
            "comments": [],
            "comments_count": 0,
            "content": "Welcome aboard.",
            "cosmic_id": "perseus-6401",
            "cosmic_tier": 1,
            "created_at": "2026-09-16T15:32:13Z",
            "date": "just now",
            "id": "42382bcc-dc14-4b6c-8aef-165f384acc53",
            "likes": [],
            "likes_count": 0,
            "parent_context": null,
            "parent_id": "ec04a840-cf99-4a89-a1d2-6e0608c6803d",
            "parent_type": "Comment",
            "pinned": false,
            "pinned_at": null,
            "updated_at": "2026-09-16T15:32:13Z",
            "user": {
              "avatar_media_id": null,
              "avatar_url": null,
              "bio": "Community member",
              "cdata": {},
              "cover_image_url": null,
              "created_at": "2026-09-16T15:32:12Z",
              "email": "user@example.com",
              "engagement_score": 0,
              "facebook": null,
              "first_name": "John",
              "goal": null,
              "goal_author": null,
              "goal_highlights": [],
              "goal_history": [],
              "goal_updated_at": null,
              "id": "c7358892-5f29-47db-a705-2c53d10da4bd",
              "initials": "JD",
              "instagram": null,
              "last_name": "Doe",
              "last_seen_at": null,
              "linkedin": null,
              "name": "John Doe",
              "otp_enabled": false,
              "phone": "+1 555 0100",
              "settings": {},
              "status": "active",
              "suspended_until": null,
              "updated_at": "2026-09-16T15:32:12Z",
              "website": "https://example.com",
              "x_twitter": null
            },
            "user_comment": false,
            "user_id": "c7358892-5f29-47db-a705-2c53d10da4bd"
          }
        ],
        "comments_count": 1,
        "content": "Great to be here!",
        "cosmic_id": "oort-4b7a",
        "cosmic_tier": 1,
        "created_at": "2026-09-16T15:32:13Z",
        "date": "just now",
        "id": "ec04a840-cf99-4a89-a1d2-6e0608c6803d",
        "likes": [],
        "likes_count": 0,
        "parent_context": {
          "slug": "welcome-post",
          "title": "Welcome to the community",
          "type": "Post"
        },
        "parent_id": "b6d25a7f-651e-4d8e-a21d-242f9851a15e",
        "parent_type": "Post",
        "pinned": false,
        "pinned_at": null,
        "updated_at": "2026-09-16T15:32:13Z",
        "user": {
          "avatar_media_id": null,
          "avatar_url": null,
          "bio": null,
          "cdata": {},
          "cover_image_url": null,
          "created_at": "2026-09-16T15:32:12Z",
          "email": "jane@example.com",
          "engagement_score": 0,
          "facebook": null,
          "first_name": "Jane",
          "goal": null,
          "goal_author": null,
          "goal_highlights": [],
          "goal_history": [],
          "goal_updated_at": null,
          "id": "506e87d8-d848-4730-832a-9602f19d671d",
          "initials": "JS",
          "instagram": null,
          "last_name": "Smith",
          "last_seen_at": null,
          "linkedin": null,
          "name": "Jane Smith",
          "otp_enabled": false,
          "phone": null,
          "settings": {},
          "status": "active",
          "suspended_until": null,
          "updated_at": "2026-09-16T15:32:12Z",
          "website": null,
          "x_twitter": null
        },
        "user_comment": false,
        "user_id": "506e87d8-d848-4730-832a-9602f19d671d"
      }
    ],
    "paging": {
      "count": 1,
      "next": null,
      "page": 1,
      "pages": 1,
      "per_page": 30,
      "previous": null
    }
  }
}
```

**SDK Code**

```python Posts & Feed_getPostComments_example
import requests

url = "https://api.customerhub.com/web_api/posts/id/comments"

querystring = {"page":"1"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Posts & Feed_getPostComments_example
const url = 'https://api.customerhub.com/web_api/posts/id/comments?page=1';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Posts & Feed_getPostComments_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.customerhub.com/web_api/posts/id/comments?page=1"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Posts & Feed_getPostComments_example
require 'uri'
require 'net/http'

url = URI("https://api.customerhub.com/web_api/posts/id/comments?page=1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Posts & Feed_getPostComments_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.customerhub.com/web_api/posts/id/comments?page=1")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Posts & Feed_getPostComments_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.customerhub.com/web_api/posts/id/comments?page=1', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Posts & Feed_getPostComments_example
using RestSharp;

var client = new RestClient("https://api.customerhub.com/web_api/posts/id/comments?page=1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Posts & Feed_getPostComments_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.customerhub.com/web_api/posts/id/comments?page=1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```