Skip to main content

Generate Prompt

Generate a prompt for a list.

note

The prompt generated will be saved to the list if the save parameter is set to true.

  • Anyone can generate a prompt for a list.
  • Anyone can save a prompt for a list if the prompt field is empty.
  • The owner of the list can generate and save a prompt any time.
POST/v1/user/list/{id}/generate-prompt

Properties

NameTypeRequiredDescription
idstringID of the list

Example

/v1/user/list/your-list-id/generate-prompt

CURL Example

curl -X POST "https://api-integrations.snackprompt.com/v1/user/list/{id}/generate-prompt?save=true" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY"