Post by Slug

Get post by Slug

POST
/posts/slug

Post by Slug request body

slugstring
userId?string
Formatuuid

Response Body

curl -X POST "http://localhost:8000/api/v1/posts/slug" \  -H "Content-Type: application/json" \  -d '{    "slug": null  }'
{
  "post": {
    "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"
      }
    },
    "slugId": "string"
  }
}
{
  "message": "Post not found",
  "code": "POST_NOT_FOUND"
}
{
  "message": "Something went wrong!",
  "code": "SERVER_ERROR"
}