Skip to content

    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

    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
    NameWhereTypeRequiredDescription
    Idempotency-KeyheaderstringYesFor 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
    NameTypeRequiredDescription
    aliasesarray of string | nullNo
    business_profileobject | nullNoBusiness details the audit compares with websites and listings.
    business_profile.address_line1string | nullNo
    business_profile.address_line2string | nullNo
    business_profile.citystring | nullNo
    business_profile.countrystring | nullNo
    business_profile.hoursobject | nullNo
    business_profile.hours.[key]array of stringNoValue for each key.
    business_profile.latitudenumber | nullNo
    business_profile.longitudenumber | nullNo
    business_profile.phonestring | nullNo
    business_profile.postal_codestring | nullNo
    business_profile.price_rangestring | nullNo
    business_profile.regionstring | nullNo
    business_profile.same_asarray of stringNo
    business_profile.servicesarray of stringNo
    business_profile.website_urlstring | nullNo
    category_idsarray of string | nullYes
    competitorsarray of objectNo
    competitors[].aliasesarray of string | nullConditional
    competitors[].domainsarray of string | nullConditional
    competitors[].idstring (uuid)Conditional
    competitors[].namestring | nullConditional
    domainsarray of string | nullYes
    locationsarray of objectNo
    locations[].address_line1string | nullNo
    locations[].address_line2string | nullNo
    locations[].categoriesarray of string | objectNo
    locations[].categories[].category_idstring | nullNo
    locations[].categories[].namestringConditional
    locations[].citystringConditional
    locations[].countrystringConditional
    locations[].hoursobjectNo
    locations[].hours.special_datesobjectNo
    locations[].hours.special_dates.[key]array of objectNoValue for each key.
    locations[].hours.weeklyobjectNo
    locations[].hours.weekly.[key]array of objectNoValue for each key.
    locations[].idstring (uuid) | nullNo
    locations[].latitudenumber | nullNo
    locations[].longitudenumber | nullNo
    locations[].namestringConditional
    locations[].phonestring | nullNo
    locations[].postal_codestring | nullNo
    locations[].radius_kmnumber | nullNo
    locations[].regionstring | nullNo
    locations[].service_areaarray of objectNo
    locations[].service_area[].citystring | nullNo
    locations[].service_area[].postal_codestring | nullNo
    locations[].service_area[].regionstring | nullNo
    locations[].status"active" | "paused" | "archived"No
    locations[].store_codestringConditional
    locations[].website_urlstring (uri) | nullNo
    marketsarray of objectYes
    markets[].citystring | null | nullNo
    markets[].countrystringYes
    markets[].languagestringYes
    markets[].regionstring | null | nullNo
    namestring | nullYes
    promptsarray of stringNoLiteral prompts in the submitted order. Account limits apply. The prompts use the brand's categories and first market.
    scheduleobject | object | nullNoOptional managed schedule. When enabled, it uses the first domain in `domains`.
    schedule.all_locationsbooleanNo
    schedule.allow_country_levelbooleanNoAllow a country-level answer when the source cannot apply the requested location.
    schedule.cadence_days1 | 3 | 7 | 14 | 30Conditional
    schedule.enabledbooleanConditional
    schedule.location_idsarray of string (uuid)No
    schedule.marketobjectConditional``components.schemas.Market``.
    schedule.market.citystring | nullNo
    schedule.market.countrystringConditional
    schedule.market.languagestringConditional
    schedule.market.latitudenumber | nullNo
    schedule.market.location_idstring (uuid) | nullNo
    schedule.market.longitudenumber | nullNo
    schedule.market.postal_codestring | nullNo
    schedule.market.regionstring | nullNo
    schedule.max_credits_per_runintegerConditional
    schedule.sourceobjectConditionalBrave 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" | nullNo
    schedule.source.mode"ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search"ConditionalThe 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"ConditionalThe platform where the answer was observed.
    schedule.source.providerstring | nullNo
    schedule.enabledfalseConditional

    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.

    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
    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)
    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
    NameTypeRequiredDescription
    X-RateLimit-LimitintegerNoRequests in rate window.
    X-RateLimit-RemainingintegerNoRemaining request tokens.
    X-RateLimit-ResetintegerNoUTC Unix seconds when window resets.
    X-Request-Idstring (uuid)NoTrace identifier.
    X-Usage-UnitsintegerNoCU 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
    NameTypeRequiredDescription
    dataobjectYesThe requested result. See the fields below for its contents.
    data.aliasesarray of string | nullYes
    data.business_profileobjectNoBusiness details used as the reference for website and listing audits.
    data.business_profile.address_line1string | nullNo
    data.business_profile.address_line2string | nullNo
    data.business_profile.citystring | nullNo
    data.business_profile.countrystring | nullNo
    data.business_profile.hoursobject | nullNo
    data.business_profile.hours.[key]array of stringNoValue for each key.
    data.business_profile.latitudenumber | nullNo
    data.business_profile.longitudenumber | nullNo
    data.business_profile.phonestring | nullNo
    data.business_profile.postal_codestring | nullNo
    data.business_profile.price_rangestring | nullNo
    data.business_profile.regionstring | nullNo
    data.business_profile.same_asarray of stringNo
    data.business_profile.servicesarray of stringNo
    data.business_profile.website_urlstring | nullNo
    data.category_idsarray of string | nullYes
    data.competitorsarray of objectYes
    data.competitors[].aliasesarray of string | nullYes
    data.competitors[].domainsarray of string | nullYes
    data.competitors[].idstring (uuid)Yes
    data.competitors[].namestring | nullYes
    data.created_atstring (date-time)Yes
    data.domainsarray of string | nullYes
    data.factsarray of objectNo
    data.facts[].idstring (uuid)Conditional
    data.facts[].predicatestring | nullConditional
    data.facts[].source_urlsarray of string (uri)Conditional
    data.facts[].status"proposed" | "approved" | "inactive"Conditional
    data.facts[].subjectstring | nullConditional
    data.facts[].valid_fromstring (date-time)Conditional
    data.facts[].valid_tostring (date-time) | nullNo
    data.facts[].valuestringConditional
    data.idstring (uuid)Yes
    data.locationsarray of objectNo
    data.locations[].address_line1string | nullNo
    data.locations[].address_line2string | nullNo
    data.locations[].categoriesarray of string | objectNo
    data.locations[].categories[].category_idstring | nullNo
    data.locations[].categories[].namestringConditional
    data.locations[].citystringConditional
    data.locations[].countrystringConditional
    data.locations[].hoursobjectNo
    data.locations[].hours.special_datesobjectNo
    data.locations[].hours.special_dates.[key]array of objectNoValue for each key.
    data.locations[].hours.weeklyobjectNo
    data.locations[].hours.weekly.[key]array of objectNoValue for each key.
    data.locations[].idstring (uuid) | nullNo
    data.locations[].latitudenumber | nullNo
    data.locations[].longitudenumber | nullNo
    data.locations[].namestringConditional
    data.locations[].phonestring | nullNo
    data.locations[].postal_codestring | nullNo
    data.locations[].radius_kmnumber | nullNo
    data.locations[].regionstring | nullNo
    data.locations[].service_areaarray of objectNo
    data.locations[].service_area[].citystring | nullNo
    data.locations[].service_area[].postal_codestring | nullNo
    data.locations[].service_area[].regionstring | nullNo
    data.locations[].status"active" | "paused" | "archived"No
    data.locations[].store_codestringConditional
    data.locations[].website_urlstring (uri) | nullNo
    data.marketsarray of objectYes
    data.markets[].citystring | null | nullNo
    data.markets[].countrystringYes
    data.markets[].languagestringYes
    data.markets[].regionstring | null | nullNo
    data.namestring | nullYes
    data.prompt_idsarray of string (uuid)NoPrompt IDs in submitted order. Pass them with workflow collect and max_units to start a run.
    data.revisionintegerYes
    data.scheduleobject | nullNoThe created schedule, or null when the schedule was paused.
    data.schedule.all_locationsbooleanNo
    data.schedule.allow_country_levelbooleanNoAllow a country-level answer when the source cannot apply the requested location.
    data.schedule.brand_idstring (uuid)Conditional
    data.schedule.cadence_days1 | 3 | 7 | 14 | 30Conditional
    data.schedule.enabledbooleanConditional
    data.schedule.estimated_credits_per_runinteger | nullConditional
    data.schedule.idstring (uuid)Conditional
    data.schedule.location_idsarray of string (uuid)No
    data.schedule.marketobjectConditional
    data.schedule.market.citystring | null | nullNo
    data.schedule.market.countrystringConditional
    data.schedule.market.languagestringConditional
    data.schedule.market.latitudenumber | nullNo
    data.schedule.market.location_idstring (uuid) | nullNo
    data.schedule.market.longitudenumber | nullNo
    data.schedule.market.postal_codestring | nullNo
    data.schedule.market.regionstring | null | nullNo
    data.schedule.max_units_per_runintegerConditional
    data.schedule.maximum_recurring_credits_30_daysinteger | nullConditional
    data.schedule.next_run_atstring (date-time) | nullConditional
    data.schedule.prompt_idsarray of string (uuid)Conditional
    data.schedule.prompt_set_revisionstringConditional
    data.schedule.sourceobjectConditionalBrave 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" | nullNo
    data.schedule.source.mode"ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search"ConditionalThe 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"ConditionalThe platform where the answer was observed.
    data.schedule.source.providerstring | nullNo
    data.schedule.websitestring | nullConditional
    data.status"active" | "archived" | "deletion_pending"Yes
    data.updated_atstring (date-time)Yes
    metaobjectYesInformation about this response, including any warnings or pagination details.
    meta.as_ofstring (date-time)YesThe point in time that the response represents.
    meta.cohort_versionstring | nullNoIdentifies the version of the group used to calculate the results.
    meta.collected_atstring (date-time) | nullYesWhen the data was collected, if available.
    meta.metric_versionstring | nullNoThe version of the metric definition used for these results.
    meta.next_cursorstring | nullYesWhen present, pass this value as cursor to request the next page with the same filters.
    meta.next_refresh_atstring (date-time) | nullYes
    meta.request_idstring (uuid)YesKeep this ID when reporting a problem with the request.
    meta.restricted_fieldsarray of stringNoFields that your current access does not allow the API to return.
    meta.rights_filteredbooleanYesIndicates whether access rights affected the returned data.
    meta.schema_version"1.0"YesThe version of the response format.
    meta.stalebooleanYes
    meta.warningsarray of stringYesRead these notes for limitations that affect the results.

    Errors

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

    Brands, locations and connections reference