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.

Brand ids are chosen by the caller and unique across the instance: an id that is already taken answers 409, without saying who holds it. A competitor with no domain other than the brand's own website is skipped.

Authorization

BearerAuth write
headerAuthorizationBearer <token>

An organization key (citerank_…) issued from the dashboard.

Scope: write

Request Body

application/json
  1. body

Create a brand. Skips onboarding. The first entry in domains is treated as the brand's primary website; the rest are stored as additional domains.

id*string
Length1 <= length
name*string
Length1 <= length
domains*array<string>

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

Items1 <= items
aliases?array<string>
competitors?array<>
prompts?array<>
organizationId?string

Organization to create the brand in.

OmittedPresent
Organization keycreates in the key's own organizationmust name the key's own organization; any other value is a 400
Admin keyprovisions a new organization named after the brand idcreates in the named organization, which must already exist (404 if it does not)

An admin key omitting this field is currently the only way to create an organization over the API.

Length1 <= length

Response Body

Brand created

application/json
  1. response
id*string

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

name*string
domains*array<string>

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

aliases*array<string>
enabled*boolean
onboarded*boolean
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
organizationId*string

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

enabledModels*array<string>|

Models this brand is tracked on. Null means the deployment default.

delayOverrideHours*|

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

Example Request
curl -X POST 'https://app.citerank.com/api/v1/brands' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "string",
  "name": "string",
  "domains": [
    "string"
  ]
}'
Example Response
{
  "id": "string",
  "name": "string",
  "domains": [
    "string"
  ],
  "aliases": [
    "string"
  ],
  "enabled": true,
  "onboarded": true,
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "organizationId": "string",
  "enabledModels": [
    "string"
  ],
  "delayOverrideHours": 0
}