Help CenterVying
Open Vying
Menu

Create a Brand

POST/brands

A brand, its competitors and its prompts, created in one request. They are written together, so a request that fails leaves none of them behind, and the prompts are scheduled for execution as soon as the brand exists. A competitor with no domain other than the brand's own website is skipped.

Needs write access. About keys

Request

curl -X POST "https://app.vyingfor.com/api/v1/brands" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"acme","name":"Acme","domains":["acme.com"]}'

Body

FieldTypeDescription
id requiredstring
name requiredstring
domains requiredstring[]

Brand domains. The first entry is the primary website; remaining entries are additional domains.

aliasesstring[]
competitorsobject[]
promptsobject[]
countrystring

The country prompts are asked from unless they set their own. ISO 3166-1 alpha-2, from the supported list in the countries and languages guide. Defaults to US.

languagestring

The language prompts are written in unless they set their own. ISO 639-1, from the supported list in the countries and languages guide. Defaults to en.

organizationIdstring

Organization to create the brand in.

Response

201 Brand created

FieldTypeDescription
idstring

User-supplied brand identifier (e.g. "acme").

namestring
domainsstring[]

Brand domains. The first entry is the primary website; remaining entries are additional domains.

aliasesstring[]
enabledboolean
onboardedboolean
createdAtstring
updatedAtstring
organizationIdstring

The organization that owns this brand and is billed for it.

enabledModelsarray or null

Models this brand is tracked on.

delayOverrideHoursinteger or null

Sampling cadence override in hours. Null means the plan cadence.

countrystring

The country prompts are asked from unless they set their own. Defaults to US.

languagestring

The language prompts are written in unless they set their own. Defaults to en.

Errors