Create a Brand
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
| Field | Type | Description |
|---|---|---|
id required | string | |
name required | string | |
domains required | string[] | Brand domains. The first entry is the primary website; remaining entries are additional domains. |
aliases | string[] | |
competitors | object[] | |
prompts | object[] | |
country | string | 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 |
language | string | 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 |
organizationId | string | Organization to create the brand in. |
Response
201 Brand created
| Field | Type | Description |
|---|---|---|
id | string | User-supplied brand identifier (e.g. "acme"). |
name | string | |
domains | string[] | Brand domains. The first entry is the primary website; remaining entries are additional domains. |
aliases | string[] | |
enabled | boolean | |
onboarded | boolean | |
createdAt | string | |
updatedAt | string | |
organizationId | string | The organization that owns this brand and is billed for it. |
enabledModels | array or null | Models this brand is tracked on. |
delayOverrideHours | integer or null | Sampling cadence override in hours. Null means the plan cadence. |
country | string | The country prompts are asked from unless they set their own. Defaults to |
language | string | The language prompts are written in unless they set their own. Defaults to |
Errors
400Invalid request data401Authentication required403The key is valid but doesn't have the access this request needs.409That brand id is already taken.429Per-key rate limit exceeded.500Internal server error