Prompts
Generate, save, list and tag the prompts you track for a brand.
How prompts work
A prompt is a question a buyer might ask an AI engine. MoltMentions tracks a set of them per brand and measures every one on every engine you pick. You can generate prompts without saving them, review the list, then save only the ones you want.
Generating prompts uses LLM work and is billed. Saving, listing and tagging are free. Use POST /v1/wallet/quote to price a plan first.
Generate prompts
POST /v1/prompts/generate-for-topics
Generate prompts for the topics you send, without saving them. Billed per topic
A topic comes back with about eleven prompts, and the price does not depend on how many. Keep the ones you want with PUT /v1/prompts. Times out after 1m30s.
| Parameter | In | Required | Description |
|---|---|---|---|
Idempotency-Key | header | No | A retry with the same key is answered from the stored response and charged once. |
Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
brand_domain | string | Yes | |
topics | array of string | Yes | The topics to write prompts for. Billed per topic. Required. Up to 5 items |
branding_mode | string | No | Whether the prompts name the brand. Leave it out for the brand's saved choice. One of: non_branded, branded, blended |
brand_name | string | No | The brand's display name, used when the prompts name the brand. Up to 100 characters |
Returns 200. The prompts, grouped by topic.
curl -X POST https://api.thrivestack.ai/v1/prompts/generate-for-topics \
-H 'Authorization: Bearer tsk_live_YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"brand_domain": "acme.com", "topics": ["project management for agencies"]}'
POST /v1/prompts/generate
Generate prompts for one topic, without saving them. Billed per prompt
Nothing is charged for a prompt that was not returned. Times out after 1m30s.
| Parameter | In | Required | Description |
|---|---|---|---|
Idempotency-Key | header | No | A retry with the same key is answered from the stored response and charged once. |
Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
brand_domain | string | Yes | |
topic | string | Yes | Up to 200 characters |
count | integer | Yes | Exactly how many prompts to generate. Required. Range 1-20 |
existing_prompts | array of string | No | Prompts to avoid duplicating. Up to 200 items |
Returns 200. The prompts, added.
POST /v1/prompts
Generate prompts for one topic and save them. Billed per prompt
Times out after 1m30s.
| Parameter | In | Required | Description |
|---|---|---|---|
Idempotency-Key | header | No | A retry with the same key is answered from the stored response and charged once. |
Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
brand_domain | string | Yes | |
topic | string | Yes | Up to 200 characters |
count | integer | Yes | How many prompts to generate and save. Required. Range 1-25 |
Returns 200. The prompts added.
POST /v1/topics
Add topics for the brand. Billed per topic
No prompts are generated. Times out after 30s.
| Parameter | In | Required | Description |
|---|---|---|---|
Idempotency-Key | header | No | A retry with the same key is answered from the stored response and charged once. |
Body (JSON)
| Field | Type | Required | Description |
|---|---|---|---|
brand_domain | string | Yes | |
count | integer | Yes | How many topics to add. Required. Range 1-25 |
Returns 200. The topics added.
Save, list and tag
PUT /v1/prompts
Save the brand's prompt list. Free
| Parameter | In | Required | Description |
|---|---|---|---|
Idempotency-Key | header | No | A retry with the same key is answered from the stored response and charged once. |
Returns 200. Saved.
GET /v1/prompts
List the brand's prompts. Free
| Parameter | In | Required | Description |
|---|---|---|---|
brand_domain | query | No | The brand's domain, as listed on the key. |
Returns 200. The prompts.
GET /v1/prompts/{id}
Get one prompt. Free
| Parameter | In | Required | Description |
|---|---|---|---|
id | path | Yes | The id returned when it was created. |
brand_domain | query | No | The brand's domain, as listed on the key. |
Returns 200. The prompt.
POST /v1/prompts/tags
Set tags on prompts. Free
| Parameter | In | Required | Description |
|---|---|---|---|
Idempotency-Key | header | No | A retry with the same key is answered from the stored response and charged once. |
Returns 200. Updated.