Skip to main content
GET
/
api
/
post
/
comments
cURL
curl --request GET \
  --url https://api.recoupable.com/api/post/comments \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "comments": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "post_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "social_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "comment": "<string>",
      "commented_at": "2023-11-07T05:31:56Z",
      "username": "<string>",
      "profile_url": "<string>",
      "post_url": "<string>",
      "avatar": "<string>",
      "region": "<string>",
      "bio": "<string>",
      "follower_count": 123,
      "following_count": 123
    }
  ],
  "pagination": {
    "total_count": 123,
    "page": 123,
    "limit": 123,
    "total_pages": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

post_id
string<uuid>
required

The unique identifier of the post to fetch comments for

page
integer
default:1

The page number to retrieve (default: 1)

limit
integer
default:20

The number of records per page (default: 20, max: 100)

Required range: x <= 100

Response

Post comments retrieved successfully

status
enum<string>
required

Status of the request

Available options:
success
comments
object[]
required

List of comments for the specified post

pagination
object
required

Pagination metadata for the response