Help CenterVying
Open Vying
Menu

Create a New Prompt

POST/prompts

Create a new prompt for a brand. This will automatically schedule the prompt for execution.

Needs write access. About keys

Request

curl -X POST "https://app.vyingfor.com/api/v1/prompts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brandId":"BRAND_ID","value":"best project management tools for small teams"}'

Body

FieldTypeDescription
brandId requiredstring

Brand identifier this prompt belongs to.

value requiredstring

The prompt text.

tagsstring[]

User-defined tags for categorizing this prompt.

parentIdstring

The id of an existing prompt in the same brand, to add this prompt as a variant of it. Naming a variant adds this one beside it, under the same parent.

countrystring or null

Country to ask the prompt from. ISO 3166-1 alpha-2 country, from the supported list in the countries and languages guide. Omit or send null to follow the brand. Each model uses it where its provider accepts a country.

languagestring or null

Language the prompt is written in. ISO 639-1 language, from the supported list in the countries and languages guide. Omitted, it is detected from the text when that is clearly not the brand's language; send null to follow the brand regardless. The text is sent as written; it is not translated.

Response

201 Prompt created successfully

FieldTypeDescription
idstring

Unique identifier for the prompt.

brandIdstring

Brand identifier this prompt belongs to.

valuestring

The actual prompt text.

parentIdstring or null

Set on a variant: the prompt whose question this one asks in other words. Each variant is tracked and billed as its own prompt. Null on a prompt that isn't a variant. Variants are one level deep, and when a parent is disabled or deleted its oldest enabled variant becomes the parent of the rest.

countrystring or null

The country this prompt sets for itself. Null follows the brand's country.

languagestring or null

The language this prompt sets for itself. Null follows the brand's language.

effectiveCountrystring

The country the prompt is asked from: its own country, or the brand's where it sets none. Read-only.

effectiveLanguagestring

The language the prompt is written in: its own language, or the brand's where it sets none. Read-only.

enabledboolean

Whether the prompt is currently enabled.

tagsstring[]

User-defined tags for categorizing this prompt.

systemTagsstring[]

Auto-computed system tags (e.g., 'branded', 'unbranded'). Read-only.

createdAtstring

Timestamp when the prompt was created.

updatedAtstring

Timestamp when the prompt was last updated.

premiumModelsstring[]

Models this prompt is tracked on grounded. Each entry spends one premium pairing.

Errors