Skip to main content

Create Elemental

POST/v1/user/elemental

Properties

NameTypeRequiredDescription
titlestringTitle of the elemental
type_idnumberType of the elemental
templatestringTemplate of the elemental
descriptionstringDescription of the elemental
commandstringCommand of the elemental
visibilitynumberVisibility of the elemental
category_idnumberCategory of the elemental
topic_idsnumber[]Topics related to the elemental, if its a prompt its need to send at least one topic
lists_to_saveObject[]Lists to save
lists_to_save.list_idnumberID of the list
is_premiumbooleanIndicates if the elemental is premium
is_fixed_pricebooleanIndicates if the elemental has a fixed price
pricenumberPrice of the elemental
price_originalnumberOriginal price of the elemental
avatarObjectAvatar of the elemental
avatar.file_namestringName of the avatar
avatar.file_buffernumber[]Buffer of the avatar
cover_imagesObject[]Cover images of the elemental. 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 elemental. Up to 3 images
images.file_namestringName of the image
images.file_buffernumber[]Buffer of the image
filesObject[]Files of the elemental
files.file_namestringName of the file
files.file_buffernumber[]Buffer of the file
video_urlstringVideo URL of the elemental
tagIdsstring[]Tags of the elemental
tutorial_stepsObject[]Tutorial steps of the elemental
tutorial_steps.titlestringTitle of the tutorial step
tutorial_steps.descriptionstringDescription of the tutorial step
tutorial_steps.video_urlstringVideo URL of the tutorial step
settingsObjectSettings of the elemental
settings.is_knowledge_basebooleanIndicates if the elemental is a knowledge base
settings.is_templatebooleanIndicates if the elemental is a template

Example

{
"title": "My First Prompt",
"type_id": 1,
"description": "<p>Snack Prompt is awesome!</p>"
}

CURL Example

curl -X POST "https://api-integrations.snackprompt.com/v1/user/elemental" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"title":"My First Prompt","type_id":1,"description":"<p>Snack Prompt is awesome!</p>"}'