API reference

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.

ParameterInRequiredDescription
Idempotency-KeyheaderNoA retry with the same key is answered from the stored response and charged once.

Body (JSON)

FieldTypeRequiredDescription
brand_domainstringYes
topicsarray of stringYesThe topics to write prompts for. Billed per topic. Required. Up to 5 items
branding_modestringNoWhether the prompts name the brand. Leave it out for the brand's saved choice. One of: non_branded, branded, blended
brand_namestringNoThe brand's display name, used when the prompts name the brand. Up to 100 characters

Returns 200. The prompts, grouped by topic.

Request
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.

ParameterInRequiredDescription
Idempotency-KeyheaderNoA retry with the same key is answered from the stored response and charged once.

Body (JSON)

FieldTypeRequiredDescription
brand_domainstringYes
topicstringYesUp to 200 characters
countintegerYesExactly how many prompts to generate. Required. Range 1-20
existing_promptsarray of stringNoPrompts 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.

ParameterInRequiredDescription
Idempotency-KeyheaderNoA retry with the same key is answered from the stored response and charged once.

Body (JSON)

FieldTypeRequiredDescription
brand_domainstringYes
topicstringYesUp to 200 characters
countintegerYesHow 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.

ParameterInRequiredDescription
Idempotency-KeyheaderNoA retry with the same key is answered from the stored response and charged once.

Body (JSON)

FieldTypeRequiredDescription
brand_domainstringYes
countintegerYesHow 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

ParameterInRequiredDescription
Idempotency-KeyheaderNoA 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

ParameterInRequiredDescription
brand_domainqueryNoThe brand's domain, as listed on the key.

Returns 200. The prompts.

GET /v1/prompts/{id}

Get one prompt. Free

ParameterInRequiredDescription
idpathYesThe id returned when it was created.
brand_domainqueryNoThe brand's domain, as listed on the key.

Returns 200. The prompt.

POST /v1/prompts/tags

Set tags on prompts. Free

ParameterInRequiredDescription
Idempotency-KeyheaderNoA retry with the same key is answered from the stored response and charged once.

Returns 200. Updated.