Create post

Create a new post

POST
/posts
AuthorizationBearer <token>

JWT Bearer token authentication

In: header

Create post request body

titlestring
contentMarkdown?string
boardId?string
roadmapId?string

Response Body

curl -X POST "http://localhost:8000/api/v1/posts" \  -H "Content-Type: application/json" \  -d '{    "title": "string"  }'
{
  "post": {
    "postId": "string",
    "title": "string",
    "slug": "string",
    "slugId": "string",
    "contentMarkdown": "string",
    "userId": "string",
    "createdAt": "2025-09-23T13:28:01.611Z",
    "updatedAt": "2025-09-23T13:28:01.611Z",
    "boardId": "string",
    "roadmap_id": "string"
  }
}
{
  "message": "You do not have permission to perform this action.",
  "code": "NOT_ENOUGH_PERMISSION"
}
{
  "message": "Something went wrong!",
  "code": "SERVER_ERROR"
}