Skip to main content

Create a new list

Create a new list.

POST/v1/user/list

Properties

NameTypeRequiredDescription
descriptionstringDescription of the list
titlestringTitle of the list
visibilitynumberVisibility of the list
item_idsObject[]Item IDs associated with the list
item_ids.prompt_idstringPrompt ID of the item
item_ids.list_idnumberList ID of the item
is_premiumbooleanIndicates if the list is premium
is_fixed_pricebooleanIndicates if the list has a fixed price
pricenumberPrice of the list
price_originalnumberOriginal price of the list
avatarObjectAvatar of the list
avatar.file_namestringName of the avatar
avatar.file_buffernumber[]Buffer of the avatar
cover_imagesObject[]Cover images of the list. Up to 3 images
cover_images.file_namestringName of the cover image
cover_images.file_buffernumber[]Buffer of the cover image
imagesObject[]Images of the list. Up to 3 images
images.file_namestringName of the image
images.file_buffernumber[]Buffer of the image
video_urlstringVideo URL of the list
tagIdsnumber[]Tag IDs of the list
tutorial_stepsObject[]Tutorial steps of the list
tutorial_steps.titlestringTitle of the tutorial step
tutorial_steps.descriptionstringDescription of the tutorial step
tutorial_steps.video_urlstringVideo URL of the tutorial step
tableObject[]List content in the table
table.{crossed_list_id}ObjectCell in the table
table.{crossed_list_id}.contentObject[]Content of the cell

Example

{
"title": "My First List",
"description": "I will add all my favorite prompts here"
}

CURL Example

curl -X POST "https://api-integrations.snackprompt.com/v1/user/list" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"title":"My First List","description":"I will add all my favorite prompts here"}'
note

The response header will return "list_URL" which is the URL of the updated list.