List all posts

Get all the posts

POST
/posts/get

Filter post request body

userId?stringDeprecated
Formatuuid
boardId?array<string>

Posts will be searched from the list of provided board IDs. If a value is not provided, it defaults to empty array and posts are searched from all the boards.

roadmapId?string
Formatuuid
pagenumber

Page number of the results to fetch.

limit?number

"Number of posts to return in a single request. Default is 10."

createdstring

Sort posts by creation date in 'asc' or 'desc' order.

Response Body

curl -X POST "http://localhost:8000/api/v1/posts/get" \  -H "Content-Type: application/json" \  -d '{    "page": 1,    "created": "desc"  }'
{
  "posts": [
    {
      "postId": "string",
      "title": "string",
      "slug": "string",
      "contentMarkdown": "string",
      "createdAt": "2025-09-23T13:28:01.611Z",
      "updatedAt": "2025-09-23T13:28:01.611Z",
      "board": {
        "boardId": "11c14790-b4d3-4689-942c-55548cfdd8a6",
        "name": "🔗 Integrations",
        "color": "4A90E2",
        "url": "integrations-dsgksdIUYO",
        "createdAt": "2025-09-23T13:28:01.611Z"
      },
      "author": {
        "userId": "string",
        "name": "string",
        "avatar": "string",
        "username": "string"
      },
      "roadmap": {
        "id": {},
        "name": {},
        "url": {},
        "color": {}
      },
      "voters": {
        "votes": [
          {
            "voteId": "string",
            "userId": "string",
            "postId": "string",
            "createdAt": "2025-09-23T13:28:01.611Z",
            "name": "string",
            "username": "string",
            "avatar": "string"
          }
        ],
        "votesCount": 10,
        "viewerVote": {
          "voteId": "string",
          "userId": "string",
          "postId": "string",
          "createdAt": "2025-09-23T13:28:01.611Z"
        }
      }
    }
  ]
}
Empty
{
  "message": "Something went wrong!",
  "code": "SERVER_ERROR"
}