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
| Parameter |
|---|
project_id |
prompt_set_id |
Headers
| Parameter |
|---|
Idempotency-Key |
Request body
| Parameter | Description |
|---|---|
prompts | |
prompts.text | |
prompts.theme | Default "" |
prompts.intent | Default "" |
prompts.buyer_stage | Default "" |
prompts.persona | Default "" |
prompts.cohort | |
prompts.enabled | Default true |
prompts.topic_id |
Response 201
| Parameter |
|---|
prompts |