Create a wishlist
curl --request POST \
--url https://web.onio.app/api/v1/wishlists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Birthday 2027",
"occasion": "other",
"notes": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Birthday 2027', occasion: 'other', notes: '<string>'})
};
fetch('https://web.onio.app/api/v1/wishlists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://web.onio.app/api/v1/wishlists"
payload = {
"title": "Birthday 2027",
"occasion": "other",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3f6c1a52-8d1e-4b7a-9c2e-1f5d7a9b0c41",
"title": "Birthday 2027",
"occasion": "birthday",
"notes": "Anything green is great.",
"status": "published",
"createdAt": "2026-11-02T09:15:00.000Z",
"updatedAt": "2026-11-10T18:42:00.000Z"
}{
"statusCode": 400,
"message": "Invalid request body: `title`: Too small: expected string to have >=1 characters",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Missing or invalid access token",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Access token lacks the required scope",
"error": "Forbidden"
}{
"statusCode": 409,
"message": "Your wishlists changed during the request. Try again.",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Wishlists
Create a wishlist
Creates a Private wishlist. Share it with POST /api/v1/wishlists/{wishlistId}/share.
Create a wishlist
curl --request POST \
--url https://web.onio.app/api/v1/wishlists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Birthday 2027",
"occasion": "other",
"notes": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Birthday 2027', occasion: 'other', notes: '<string>'})
};
fetch('https://web.onio.app/api/v1/wishlists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://web.onio.app/api/v1/wishlists"
payload = {
"title": "Birthday 2027",
"occasion": "other",
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "3f6c1a52-8d1e-4b7a-9c2e-1f5d7a9b0c41",
"title": "Birthday 2027",
"occasion": "birthday",
"notes": "Anything green is great.",
"status": "published",
"createdAt": "2026-11-02T09:15:00.000Z",
"updatedAt": "2026-11-10T18:42:00.000Z"
}{
"statusCode": 400,
"message": "Invalid request body: `title`: Too small: expected string to have >=1 characters",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Missing or invalid access token",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "Access token lacks the required scope",
"error": "Forbidden"
}{
"statusCode": 409,
"message": "Your wishlists changed during the request. Try again.",
"error": "Conflict"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Authorizations
Body
application/json
Response
The new wishlist