---
title: "Create a brand | Brands, locations and connections | AEO API"
description: "Supply the brand's domains, markets, competitors and locations. You can include prompts and a managed tracking schedule when you create the brand."
url: "https://aeoapi.dev/docs/features/brands-locations-and-connections/post-brands-default"
canonical: "https://aeoapi.dev/docs/features/brands-locations-and-connections/post-brands-default"
last_updated: "2026-11-30"
---

Brands, locations and connections

# Create a brand

Supply the brand's domains, markets, competitors and locations. You can include prompts and a managed tracking schedule when you create the brand.

[`POST /v2/brands`](https://aeoapi.dev/docs/api-reference#post-v2-brands)

## Authentication and access

**Authentication**

Bearer API key

**Scopes**

brands:write

**Roles**

editor, owner, service

**Plans**

Optimizer, Analyzer

**Credits**

No credit charge.

- **An inline schedule with enabled set to false.** Scopes collections:write. Roles editor, owner, service. Plans Optimizer, Analyzer.
- **One or more inline prompts.** Scopes prompts:write. Roles editor, owner, service. Plans Optimizer, Analyzer. Billing access required.
- **An enabled inline schedule.** Scopes collections:write, prompts:write. Roles editor, owner, service. Plans Optimizer, Analyzer.

## Parameters

Request parameters

| Name | Where | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | `string` | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |

## Request body

```
{
  "category_ids": [
    "gcid:plumber"
  ],
  "domains": [
    "example.com"
  ],
  "markets": [
    {
      "city": "Chicago",
      "country": "US",
      "language": "en"
    }
  ],
  "name": "Example Plumbing",
  "prompts": [
    "What should homeowners compare when choosing a plumber in Chicago?",
    "How do I find a plumber for an emergency repair in Chicago?"
  ],
  "schedule": {
    "enabled": false
  }
}
```

Request body fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `aliases` | `array of string \| null` | No |  |
| `business_profile` | `object \| null` | No | Business details the audit compares with websites and listings. |
| `business_profile.address_line1` | `string \| null` | No |  |
| `business_profile.address_line2` | `string \| null` | No |  |
| `business_profile.city` | `string \| null` | No |  |
| `business_profile.country` | `string \| null` | No |  |
| `business_profile.hours` | `object \| null` | No |  |
| `business_profile.hours.[key]` | `array of string` | No | Value for each key. |
| `business_profile.latitude` | `number \| null` | No |  |
| `business_profile.longitude` | `number \| null` | No |  |
| `business_profile.phone` | `string \| null` | No |  |
| `business_profile.postal_code` | `string \| null` | No |  |
| `business_profile.price_range` | `string \| null` | No |  |
| `business_profile.region` | `string \| null` | No |  |
| `business_profile.same_as` | `array of string` | No |  |
| `business_profile.services` | `array of string` | No |  |
| `business_profile.website_url` | `string \| null` | No |  |
| `category_ids` | `array of string \| null` | Yes |  |
| `competitors` | `array of object` | No |  |
| `competitors[].aliases` | `array of string \| null` | Conditional |  |
| `competitors[].domains` | `array of string \| null` | Conditional |  |
| `competitors[].id` | `string (uuid)` | Conditional |  |
| `competitors[].name` | `string \| null` | Conditional |  |
| `domains` | `array of string \| null` | Yes |  |
| `locations` | `array of object` | No |  |
| `locations[].address_line1` | `string \| null` | No |  |
| `locations[].address_line2` | `string \| null` | No |  |
| `locations[].categories` | `array of string \| object` | No |  |
| `locations[].categories[].category_id` | `string \| null` | No |  |
| `locations[].categories[].name` | `string` | Conditional |  |
| `locations[].city` | `string` | Conditional |  |
| `locations[].country` | `string` | Conditional |  |
| `locations[].hours` | `object` | No |  |
| `locations[].hours.special_dates` | `object` | No |  |
| `locations[].hours.special_dates.[key]` | `array of object` | No | Value for each key. |
| `locations[].hours.weekly` | `object` | No |  |
| `locations[].hours.weekly.[key]` | `array of object` | No | Value for each key. |
| `locations[].id` | `string (uuid) \| null` | No |  |
| `locations[].latitude` | `number \| null` | No |  |
| `locations[].longitude` | `number \| null` | No |  |
| `locations[].name` | `string` | Conditional |  |
| `locations[].phone` | `string \| null` | No |  |
| `locations[].postal_code` | `string \| null` | No |  |
| `locations[].radius_km` | `number \| null` | No |  |
| `locations[].region` | `string \| null` | No |  |
| `locations[].service_area` | `array of object` | No |  |
| `locations[].service_area[].city` | `string \| null` | No |  |
| `locations[].service_area[].postal_code` | `string \| null` | No |  |
| `locations[].service_area[].region` | `string \| null` | No |  |
| `locations[].status` | `"active" \| "paused" \| "archived"` | No |  |
| `locations[].store_code` | `string` | Conditional |  |
| `locations[].website_url` | `string (uri) \| null` | No |  |
| `markets` | `array of object` | Yes |  |
| `markets[].city` | `string \| null \| null` | No |  |
| `markets[].country` | `string` | Yes |  |
| `markets[].language` | `string` | Yes |  |
| `markets[].region` | `string \| null \| null` | No |  |
| `name` | `string \| null` | Yes |  |
| `prompts` | `array of string` | No | Literal prompts in the submitted order. Account limits apply. The prompts use the brand's categories and first market. |
| `schedule` | `object \| object \| null` | No | Optional managed schedule. When enabled, it uses the first domain in \`domains\`. |
| `schedule.all_locations` | `boolean` | No |  |
| `schedule.allow_country_level` | `boolean` | No | Allow a country-level answer when the source cannot apply the requested location. |
| `schedule.cadence_days` | `1 \| 3 \| 7 \| 14 \| 30` | Conditional |  |
| `schedule.enabled` | `boolean` | Conditional |  |
| `schedule.location_ids` | `array of string (uuid)` | No |  |
| `schedule.market` | `object` | Conditional | \`\`components.schemas.Market\`\`. |
| `schedule.market.city` | `string \| null` | No |  |
| `schedule.market.country` | `string` | Conditional |  |
| `schedule.market.language` | `string` | Conditional |  |
| `schedule.market.latitude` | `number \| null` | No |  |
| `schedule.market.location_id` | `string (uuid) \| null` | No |  |
| `schedule.market.longitude` | `number \| null` | No |  |
| `schedule.market.postal_code` | `string \| null` | No |  |
| `schedule.market.region` | `string \| null` | No |  |
| `schedule.max_credits_per_run` | `integer` | Conditional |  |
| `schedule.source` | `object` | Conditional | Brave AI summaries use brave and ai_overview. Brave Ask uses brave and ai_mode. Meta AI uses meta_ai and ui_normal. Grok uses grok and ui_normal. These four sources are available on Optimizer. |
| `schedule.source.device` | `"desktop" \| "mobile" \| "unknown" \| null` | No |  |
| `schedule.source.mode` | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search"` | Conditional | The mode used to collect the answer. The unverified value appears only in evidence. |
| `schedule.source.platform` | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | Conditional | The platform where the answer was observed. |
| `schedule.source.provider` | `string \| null` | No |  |
| `schedule.enabled` | `false` | Conditional |  |

## Request examples

Set `AEO_API_BASE_URL` to `https://api.aeoapi.dev` and `AEO_API_KEY` to your server-side API key. Set the other environment variables to the values for your request.

Save the JSON request body as `request.json`. Replace sample IDs, revisions and other values with your own.

```bash
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/brands" \
  -H "Authorization: Bearer $AEO_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @request.json
```

```python
import json
from pathlib import Path
from os import environ
from aeo_sdk import AeoClient

body = json.loads(Path("request.json").read_text())

with AeoClient(environ["AEO_API_KEY"], base_url=environ["AEO_API_BASE_URL"]) as client:
    response = client.v2_post_brands(
        body=body,
        idempotency_key=environ["IDEMPOTENCY_KEY"],
    )
    print(response.body)
```

```typescript
import { AeoClient } from "@aeoapi/aeo-sdk";
import { readFile } from "node:fs/promises";

const client = new AeoClient(process.env.AEO_API_KEY!, {
  baseUrl: process.env.AEO_API_BASE_URL!,
});
const body = JSON.parse(await readFile("request.json", "utf8"));
const response = await client.v2PostBrands(
  body,
  {
    idempotencyKey: process.env.IDEMPOTENCY_KEY!,
  },
);
console.log(response.body);
```

## Responses

#### HTTP 201

Create a brand result.

HTTP 201 headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `X-RateLimit-Limit` | `integer` | No | Requests in rate window. |
| `X-RateLimit-Remaining` | `integer` | No | Remaining request tokens. |
| `X-RateLimit-Reset` | `integer` | No | UTC Unix seconds when window resets. |
| `X-Request-Id` | `string (uuid)` | No | Trace identifier. |
| `X-Usage-Units` | `integer` | No | CU charged by this response; GET and account/usage always zero. |

`application/json`

```
{
  "data": {
    "aliases": [],
    "category_ids": [
      "example"
    ],
    "competitors": [],
    "created_at": "2026-11-06T00:00:00Z",
    "domains": [
      "example"
    ],
    "id": "00000000-0000-4000-8000-000000000001",
    "markets": [
      {
        "country": "US",
        "language": "example"
      }
    ],
    "name": "example",
    "revision": 1,
    "status": "active",
    "updated_at": "2026-11-06T00:00:00Z"
  },
  "meta": {
    "as_of": "2026-11-06T00:00:00Z",
    "collected_at": null,
    "next_cursor": null,
    "next_refresh_at": null,
    "request_id": "00000000-0000-4000-8000-000000000001",
    "rights_filtered": false,
    "schema_version": "1.0",
    "stale": false,
    "warnings": []
  }
}
```

HTTP 201 response fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | Yes | The requested result. See the fields below for its contents. |
| `data.aliases` | `array of string \| null` | Yes |  |
| `data.business_profile` | `object` | No | Business details used as the reference for website and listing audits. |
| `data.business_profile.address_line1` | `string \| null` | No |  |
| `data.business_profile.address_line2` | `string \| null` | No |  |
| `data.business_profile.city` | `string \| null` | No |  |
| `data.business_profile.country` | `string \| null` | No |  |
| `data.business_profile.hours` | `object \| null` | No |  |
| `data.business_profile.hours.[key]` | `array of string` | No | Value for each key. |
| `data.business_profile.latitude` | `number \| null` | No |  |
| `data.business_profile.longitude` | `number \| null` | No |  |
| `data.business_profile.phone` | `string \| null` | No |  |
| `data.business_profile.postal_code` | `string \| null` | No |  |
| `data.business_profile.price_range` | `string \| null` | No |  |
| `data.business_profile.region` | `string \| null` | No |  |
| `data.business_profile.same_as` | `array of string` | No |  |
| `data.business_profile.services` | `array of string` | No |  |
| `data.business_profile.website_url` | `string \| null` | No |  |
| `data.category_ids` | `array of string \| null` | Yes |  |
| `data.competitors` | `array of object` | Yes |  |
| `data.competitors[].aliases` | `array of string \| null` | Yes |  |
| `data.competitors[].domains` | `array of string \| null` | Yes |  |
| `data.competitors[].id` | `string (uuid)` | Yes |  |
| `data.competitors[].name` | `string \| null` | Yes |  |
| `data.created_at` | `string (date-time)` | Yes |  |
| `data.domains` | `array of string \| null` | Yes |  |
| `data.facts` | `array of object` | No |  |
| `data.facts[].id` | `string (uuid)` | Conditional |  |
| `data.facts[].predicate` | `string \| null` | Conditional |  |
| `data.facts[].source_urls` | `array of string (uri)` | Conditional |  |
| `data.facts[].status` | `"proposed" \| "approved" \| "inactive"` | Conditional |  |
| `data.facts[].subject` | `string \| null` | Conditional |  |
| `data.facts[].valid_from` | `string (date-time)` | Conditional |  |
| `data.facts[].valid_to` | `string (date-time) \| null` | No |  |
| `data.facts[].value` | `string` | Conditional |  |
| `data.id` | `string (uuid)` | Yes |  |
| `data.locations` | `array of object` | No |  |
| `data.locations[].address_line1` | `string \| null` | No |  |
| `data.locations[].address_line2` | `string \| null` | No |  |
| `data.locations[].categories` | `array of string \| object` | No |  |
| `data.locations[].categories[].category_id` | `string \| null` | No |  |
| `data.locations[].categories[].name` | `string` | Conditional |  |
| `data.locations[].city` | `string` | Conditional |  |
| `data.locations[].country` | `string` | Conditional |  |
| `data.locations[].hours` | `object` | No |  |
| `data.locations[].hours.special_dates` | `object` | No |  |
| `data.locations[].hours.special_dates.[key]` | `array of object` | No | Value for each key. |
| `data.locations[].hours.weekly` | `object` | No |  |
| `data.locations[].hours.weekly.[key]` | `array of object` | No | Value for each key. |
| `data.locations[].id` | `string (uuid) \| null` | No |  |
| `data.locations[].latitude` | `number \| null` | No |  |
| `data.locations[].longitude` | `number \| null` | No |  |
| `data.locations[].name` | `string` | Conditional |  |
| `data.locations[].phone` | `string \| null` | No |  |
| `data.locations[].postal_code` | `string \| null` | No |  |
| `data.locations[].radius_km` | `number \| null` | No |  |
| `data.locations[].region` | `string \| null` | No |  |
| `data.locations[].service_area` | `array of object` | No |  |
| `data.locations[].service_area[].city` | `string \| null` | No |  |
| `data.locations[].service_area[].postal_code` | `string \| null` | No |  |
| `data.locations[].service_area[].region` | `string \| null` | No |  |
| `data.locations[].status` | `"active" \| "paused" \| "archived"` | No |  |
| `data.locations[].store_code` | `string` | Conditional |  |
| `data.locations[].website_url` | `string (uri) \| null` | No |  |
| `data.markets` | `array of object` | Yes |  |
| `data.markets[].city` | `string \| null \| null` | No |  |
| `data.markets[].country` | `string` | Yes |  |
| `data.markets[].language` | `string` | Yes |  |
| `data.markets[].region` | `string \| null \| null` | No |  |
| `data.name` | `string \| null` | Yes |  |
| `data.prompt_ids` | `array of string (uuid)` | No | Prompt IDs in submitted order. Pass them with workflow collect and max_units to start a run. |
| `data.revision` | `integer` | Yes |  |
| `data.schedule` | `object \| null` | No | The created schedule, or null when the schedule was paused. |
| `data.schedule.all_locations` | `boolean` | No |  |
| `data.schedule.allow_country_level` | `boolean` | No | Allow a country-level answer when the source cannot apply the requested location. |
| `data.schedule.brand_id` | `string (uuid)` | Conditional |  |
| `data.schedule.cadence_days` | `1 \| 3 \| 7 \| 14 \| 30` | Conditional |  |
| `data.schedule.enabled` | `boolean` | Conditional |  |
| `data.schedule.estimated_credits_per_run` | `integer \| null` | Conditional |  |
| `data.schedule.id` | `string (uuid)` | Conditional |  |
| `data.schedule.location_ids` | `array of string (uuid)` | No |  |
| `data.schedule.market` | `object` | Conditional |  |
| `data.schedule.market.city` | `string \| null \| null` | No |  |
| `data.schedule.market.country` | `string` | Conditional |  |
| `data.schedule.market.language` | `string` | Conditional |  |
| `data.schedule.market.latitude` | `number \| null` | No |  |
| `data.schedule.market.location_id` | `string (uuid) \| null` | No |  |
| `data.schedule.market.longitude` | `number \| null` | No |  |
| `data.schedule.market.postal_code` | `string \| null` | No |  |
| `data.schedule.market.region` | `string \| null \| null` | No |  |
| `data.schedule.max_units_per_run` | `integer` | Conditional |  |
| `data.schedule.maximum_recurring_credits_30_days` | `integer \| null` | Conditional |  |
| `data.schedule.next_run_at` | `string (date-time) \| null` | Conditional |  |
| `data.schedule.prompt_ids` | `array of string (uuid)` | Conditional |  |
| `data.schedule.prompt_set_revision` | `string` | Conditional |  |
| `data.schedule.source` | `object` | Conditional | Brave AI summaries use brave and ai_overview. Brave Ask uses brave and ai_mode. Meta AI uses meta_ai and ui_normal. Grok uses grok and ui_normal. These four sources are available on Optimizer. |
| `data.schedule.source.device` | `"desktop" \| "mobile" \| "unknown" \| null` | No |  |
| `data.schedule.source.mode` | `"ui_normal" \| "ui_search" \| "api_normal" \| "api_web" \| "ai_mode" \| "ai_overview" \| "organic_search"` | Conditional | The mode used to collect the answer. The unverified value appears only in evidence. |
| `data.schedule.source.platform` | `"chatgpt" \| "gemini" \| "claude" \| "perplexity" \| "google" \| "bing" \| "brave" \| "meta_ai" \| "grok" \| "universal"` | Conditional | The platform where the answer was observed. |
| `data.schedule.source.provider` | `string \| null` | No |  |
| `data.schedule.website` | `string \| null` | Conditional |  |
| `data.status` | `"active" \| "archived" \| "deletion_pending"` | Yes |  |
| `data.updated_at` | `string (date-time)` | Yes |  |
| `meta` | `object` | Yes | Information about this response, including any warnings or pagination details. |
| `meta.as_of` | `string (date-time)` | Yes | The point in time that the response represents. |
| `meta.cohort_version` | `string \| null` | No | Identifies the version of the group used to calculate the results. |
| `meta.collected_at` | `string (date-time) \| null` | Yes | When the data was collected, if available. |
| `meta.metric_version` | `string \| null` | No | The version of the metric definition used for these results. |
| `meta.next_cursor` | `string \| null` | Yes | When present, pass this value as cursor to request the next page with the same filters. |
| `meta.next_refresh_at` | `string (date-time) \| null` | Yes |  |
| `meta.request_id` | `string (uuid)` | Yes | Keep this ID when reporting a problem with the request. |
| `meta.restricted_fields` | `array of string` | No | Fields that your current access does not allow the API to return. |
| `meta.rights_filtered` | `boolean` | Yes | Indicates whether access rights affected the returned data. |
| `meta.schema_version` | `"1.0"` | Yes | The version of the response format. |
| `meta.stale` | `boolean` | Yes |  |
| `meta.warnings` | `array of string` | Yes | Read these notes for limitations that affect the results. |

## Errors

Read `code` and `message` in the error response. Keep `request_id` when you contact support.

- HTTP 400 [`invalid_request`](https://aeoapi.dev/docs/errors#invalid_request)
- HTTP 401 [`unauthenticated`](https://aeoapi.dev/docs/errors#unauthenticated)
- HTTP 402 [`quota_exceeded`](https://aeoapi.dev/docs/errors#quota_exceeded)
- HTTP 403 [`forbidden`](https://aeoapi.dev/docs/errors#forbidden)
- HTTP 404 [`not_found`](https://aeoapi.dev/docs/errors#not_found)
- HTTP 409 [`conflict`](https://aeoapi.dev/docs/errors#conflict)
- HTTP 412 [`precondition_failed`](https://aeoapi.dev/docs/errors#precondition_failed)
- HTTP 422 [`validation_error`](https://aeoapi.dev/docs/errors#validation_error)
- HTTP 429 [`rate_limited`](https://aeoapi.dev/docs/errors#rate_limited)
- HTTP 500 [`internal_error`](https://aeoapi.dev/docs/errors#internal_error)
- HTTP 503 [`source_pending`](https://aeoapi.dev/docs/errors#source_pending), [`feature_not_offered`](https://aeoapi.dev/docs/errors#feature_not_offered)

[Brands, locations and connections reference](https://aeoapi.dev/docs/features/brands-locations-and-connections)
