API Reference
Add one prompt to a topic of the domain
Appends a single prompt, leaving every other prompt of the topic untouched. Takes the topic it goes to, so a client holding one page of a multi-topic table never has to send a prompt list back.
POST
header
AuthorizationBearer <JWT>Session JWT signed with HS256. Verification pins the algorithm and rejects expired tokens, per RFC8725.
domainId*stringDomain the prompts belong to
application/json- body
topicId*stringTopic the prompt is written to
text*stringPrompt text
type?stringWhich analysis the prompt belongs to; defaults to visibility
Value in
"visibility""competition"modules?array<>Modules the prompt feeds; defaults to visibility and shopping. Ads Radar is assigned by your CSM and cannot be set here.
Prompt created
application/json- response
id*stringtext*stringmodules*array<>Modules the prompt feeds; ads is present only when your CSM assigned it to Ads Radar
criterion?stringtopicId*stringtopicName*stringcreatedAt?stringFormat
date-timeupdatedAt?stringFormat
date-timecurl -X POST 'https://api.getmint.ai/api/domains/3fa85f64-5717-4562-b3fc-2c963f66afa6/topic-prompts' \ -H 'Content-Type: application/json' \ -d '{ "topicId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "text": "best refurbished iPhone"}'Example Response
{ "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "text": "best refurbished iPhone", "modules": [ "visibility", "shopping" ], "criterion": "pricing", "topicId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "topicName": "Refurbished smartphones", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}