---
title: "Create a wishlist item"
method: POST
path: "/wishlists"
tags: ["Wishlist"]
---

# Create a wishlist item

`POST /wishlists`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/wishlists`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/wishlists/post.ts> (a function with typed inputs; its response is checked against the schema)

Add a product to the customer's wishlist.

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Request body

- object
  - `productId` integer, required

## Response `201`

Product added to wishlist.

## Other responses

- `400`: Invalid input
- `422`: Missing/invalid productId.

---

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