---
title: "Add a new post"
method: POST
path: "/posts/add"
tags: ["Posts"]
---

# Add a new post

`POST /posts/add`

## Request

- Base URL: `https://dummyjson.com`
- URL: `https://dummyjson.com/posts/add`
- Auth: none required

## Query parameters

- `delay` integer

## Request body

- object
  - `title` string
  - `body` string
  - `userId` integer, required
  - `tags` string[]
  - `reactions` object
    - `likes` integer
    - `dislikes` integer

## Response `201`

Created post

- Post
  - `id` integer
  - `title` string
  - `body` string
  - `tags` string[]
  - `reactions` object
    - `likes` integer
    - `dislikes` integer
  - `views` integer
  - `userId` integer

---

[API](https://skmtc.dev/dummyjson/apis/dummyjson-api.md) - [All operations](https://skmtc.dev/dummyjson/apis/dummyjson-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dummyjson/apis/dummyjson-api/revisions/5e704f33a559?raw)
