GET
/
posts
/
feed
Get feed posts
curl --request GET \
  --url https://localhost:5000/posts/feed \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "posts": [
    {
      "image": "<string>",
      "image_public_id": "<string>",
      "author": "<string>",
      "_id": "<string>",
      "caption": "<string>",
      "likes": [
        "<string>"
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "isLiked": true,
      "isBookmarked": true,
      "likesCount": 123,
      "commentsCount": 123
    }
  ],
  "pagination": {
    "currentPage": 123,
    "totalPages": 123,
    "totalPosts": 123,
    "hasNextPage": true,
    "hasPrevPage": true
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page
integer
default:1

Page number

limit
integer
default:10

Number of posts per page

Response

Feed posts

success
boolean
Example:

true

posts
object[]
pagination
object