PAI Chat·Endpoint
POST
/promptCreate a new prompt
Create a new prompt
GET/prompt/{promptId}arrow_forwardupload
Request body
namerequired
stringThe name of the prompt
type
string · dynamic | static | conditionalThe type of the prompt
trigger
stringThe trigger string for the prompt (required for dynamic and conditional types)
contentrequired
stringThe content of the prompt
active
booleanWhether the prompt is active
section
string · communication_style | context_and_clarification | content_and_sources | spam | otherThe section this prompt belongs to
double_arrow
Returns 201
idrequired
string (uuid)The generated UUID for the new prompt
namerequired
stringThe name of the prompt
triggerrequired
stringThe trigger string for the prompt
contentrequired
stringThe content of the prompt
activerequired
booleanWhether the prompt is active
typerequired
enumThe type of the prompt
section
enumThe section this prompt belongs to
createdAtrequired
string (date-time)updatedAtrequired
string (date-time)report
Errors