Prompts

Create prompts

Adds a batch of prompts to a prompt set and returns the created prompts. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

POST/v1/projects/{project_id}/prompt-sets/{prompt_set_id}/prompts

Needs the prompts:write scope

Adds a batch of prompts to a prompt set and returns the created prompts. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

Path parameters

Path parameters
Parameter
project_idstring (uuid)pathrequired
prompt_set_idstring (uuid)pathrequired

Headers

Headers
Parameter
Idempotency-Keystringheaderrequired

Request body

Request body
ParameterDescription
promptsobject[]bodyrequired
prompts.textstringbodyrequired
prompts.themestringbody
Default""
prompts.intentstringbody
Default""
prompts.buyer_stageBuyerStagebody
Default""
prompts.personastringbody
Default""
prompts.cohortPromptCohortbody
prompts.enabledbooleanbody
Defaulttrue
prompts.topic_idstring (uuid) | nullbody

Response 201

Response 201
Parameter
promptsPrompt[]required