Posts

Public Posts

Create a new public post

post

Each post begins as a draft. A user can only have one active draft at a time. If a draft already exists, it must be published or deleted before a new one can be created.

Body
titlestringOptionalExample: My First Post
descriptionstringOptionalExample: This is the content of my first post.
tagsstring[]OptionalExample: ["example","firstPost"]
postTypestringOptionalExample: blog
Responses
post
/posts

Retrieve a list of public posts

get

Retrieves a list of public posts with optional filtering. Users can filter by tags, creation date, status (draft or published), or post type.

Query parameters
tagsstring[]Optional

Filter posts by specific tags

statusstring · enumOptional

Filter posts by status

Possible values:
createdAfterstring · date-timeOptional

Filter posts created after a specific date

postTypestringOptional

Filter posts by a specific type from the predefined list

Responses
200

A list of posts

application/json
get
/posts
200

A list of posts

Retrieve a public post by ID

get

Retrieves the details of a public post by its unique identifier.

Path parameters
idstringRequired
Responses
200

Post found

application/json
get
/posts/{id}

Update an existing public post

put

Updates the title, content, tags, or post type of an existing public post.

Path parameters
idstringRequired
Body
titlestringOptionalExample: Updated Title
descriptionstringOptionalExample: Updated content of the post.
tagsstring[]OptionalExample: ["updated","post"]
postTypestringOptionalExample: news
Responses
200

Updated successfully

application/json
put
/posts/{id}

Delete a public post by ID

delete

Deletes a public post by its ID. This action is irreversible.

Path parameters
idstringRequired
Responses
delete
/posts/{id}

No content

Create a new private post

post

Identical to creating a public post, but this post is private.

Body
titlestringOptionalExample: My First Private Post
descriptionstringOptionalExample: This is the content of my first private post.
tagsstring[]OptionalExample: ["example","privatePost"]
postTypestringOptionalExample: privateBlog
Responses
post
/private/posts

Retrieve a list of private posts

get

Retrieves a list of private posts with optional filtering. Users can filter by tags, creation date, status (draft or published), or post type.

Query parameters
tagsstring[]Optional

Filter posts by specific tags

statusstring · enumOptional

Filter posts by status

Possible values:
createdAfterstring · date-timeOptional

Filter posts created after a specific date

postTypestringOptional

Filter posts by a specific type from the predefined list

Responses
200

A list of private posts

application/json
get
/private/posts
200

A list of private posts

Retrieve a private post by ID

get

Retrieves the details of a private post by its unique identifier.

Path parameters
idstringRequired
Responses
200

Post found

application/json
get
/private/posts/{id}

Update an existing private post

put

Updates the title, content, tags, or post type of an existing private post.

Path parameters
idstringRequired
Body
titlestringOptionalExample: Updated Private Title
descriptionstringOptionalExample: Updated content of the private post.
tagsstring[]OptionalExample: ["updated","privatePost"]
postTypestringOptionalExample: privateNews
Responses
200

Updated successfully

application/json
put
/private/posts/{id}

Delete a private post by ID

delete

Deletes a private post by its ID. This action is irreversible.

Path parameters
idstringRequired
Responses
delete
/private/posts/{id}

No content

Last updated