plusCreate a Elemental

Create new elementals

Create new prompts, snippets, and documents.

Create Multiple Elementals

post

Creates multiple elementals in a single request.

circle-info

Returns 201 Created if all succeed, or 206 Partial Content if some fail.

Authorizations
x-api-keystringRequired

API Key authentication. Get your key at snackprompt.com/api-keys.

Example: x-api-key: sk-your-api-key-here

Bodyobject[]
idstringOptional
titlestring · min: 10 · max: 100Required

Title (10-100 characters)

type_idinteger · enumRequired

1=Prompt, 2=Snippet, 3=Document

Possible values:
templatestringRequired

Content/template text with optional

template_overwrite_contentbooleanOptional
descriptionstringOptional
commandstringOptional
visibilityintegerOptional

1=Public, 2=Unlisted

Default: 1
category_idintegerRequired
topic_idsinteger[]Optional

Required for prompts (type_id=1)

is_premiumbooleanOptional
is_fixed_pricebooleanOptional
priceintegerOptional
price_originalintegerOptional
video_urlstringOptional
Responses
post
/v1/user/elementals
cURL

No content

Create Elemental

post

Creates a new elemental (prompt, snippet, or document).

circle-info

Template Tags For prompts, use # prefix for variable tags (e.g., #topic, #style). These can be replaced dynamically using the prepare endpoint.

Required Fields

Field
Type
Description

title

string

Title (10-100 characters, must contain at least one letter)

type_id

integer

1=Prompt, 2=Snippet, 3=Document

template

string

Content/template text (required for all types)

category_id

integer

Category ID

topic_ids

array

Array of topic IDs (required for prompts only)

Validation Rules

  • Title: Must be 10-100 characters, contain at least one letter

  • Template/Body Content: Required for prompt, snippet, or document types

  • Topic: Required for prompt type elementals

  • Snippets: Title must be unique per user

Authorizations
x-api-keystringRequired

API Key authentication. Get your key at snackprompt.com/api-keys.

Example: x-api-key: sk-your-api-key-here

Body
idstringOptional
titlestring · min: 10 · max: 100Required

Title (10-100 characters)

type_idinteger · enumRequired

1=Prompt, 2=Snippet, 3=Document

Possible values:
templatestringRequired

Content/template text with optional

template_overwrite_contentbooleanOptional
descriptionstringOptional
commandstringOptional
visibilityintegerOptional

1=Public, 2=Unlisted

Default: 1
category_idintegerRequired
topic_idsinteger[]Optional

Required for prompts (type_id=1)

is_premiumbooleanOptional
is_fixed_pricebooleanOptional
priceintegerOptional
price_originalintegerOptional
video_urlstringOptional
Responses
post
/v1/user/elemental

Last updated

Was this helpful?