{"openapi":"3.1.0","info":{"title":"aura+ Public API","version":"1.0.0","summary":"Read your brand's AI-visibility report data programmatically.","description":"The aura+ Public API gives your systems read access to the same report data you see\nin the aura+ app — overview, visibility, sentiment, citations, competitors, agentic\nreadiness, action plan, and industry snapshot — for the brands in your workspace.\n\n## Authentication\nEvery request needs an API key in the `Authorization` header:\n\n```\nAuthorization: Bearer aura_live_xxxxxxxxxxxxxxxxxxxxxxxx\n```\n\nKeys are created and revoked in **Settings → API** by your workspace's account owner.\nA key is shown **once** at creation — store it in a secrets manager. Keys are for\n**server-to-server** use only; never embed one in a website or mobile app.\n\n## What a key can access\nA key belongs to your workspace and can read the brands your workspace **owns** — all\nof them by default, or only the brands chosen when the key was created. Brands that\nare merely shared with you are not accessible. Requesting any other brand returns\n`404 not_found`.\n\n## Conventions\n- Field names are `camelCase`. Timestamps are ISO-8601 in UTC.\n- Scores and rates are **integers from 0 to 100** unless stated otherwise.\n- Engines are `chatgpt`, `claude`, and `gemini`.\n- Every successful response is `{ \"data\": …, \"meta\": … }`. `meta` tells you which\n  brand, focus, and run the data came from, and when it was measured.\n- Data reflects the **latest completed run** unless you pass `run=`. The API is\n  read-only and never starts a new run.\n- Fields may be **added** within v1; existing fields are never renamed or removed.\n  Ignore fields you don't recognise.\n\n## Focuses and runs\nA brand's **Full brand** report and each **focus** (a product or segment) are measured\nseparately. Pass `focus=full` (the default) or a focus id from `GET /v1/brands`.\nPass `run=latest` (the default) or a run id from `GET /v1/brands/{brandId}/runs`.\n\n## Selecting fields\nMost endpoints accept `fields=` — a comma-separated list of top-level keys of `data`\nto return (for example `fields=byEngine,byStage`). Unknown field names return `400`.\n\n## Rate limits and quota\nEach key has a per-minute rate limit, and your workspace has a monthly request quota.\nEvery response includes `X-RateLimit-*` and `X-Quota-*` headers. Exceeding either\nreturns `429` with code `rate_limited` or `quota_exceeded`. Check usage any time with\n`GET /v1/usage`.\n\n## Errors\nErrors are `{ \"error\": { \"code\": \"…\", \"message\": \"…\" } }`. Branch on `code`, not on\n`message`.\n\n| HTTP | code | Meaning |\n|---|---|---|\n| 400 | `invalid_request` | A parameter is missing or invalid |\n| 401 | `unauthorized` | Missing, malformed, revoked, or expired key |\n| 403 | `api_disabled` | API access is turned off for this workspace |\n| 404 | `not_found` | Unknown brand/run/focus, or not accessible to this key |\n| 404 | `no_completed_run` | The brand/focus has no completed run yet |\n| 429 | `rate_limited` | Per-minute rate limit exceeded — retry after `X-RateLimit-Reset` |\n| 429 | `quota_exceeded` | Monthly quota used up — resets at `X-Quota-Reset` |\n| 500 | `internal_error` | Something went wrong on our side |\n\n## Versioning\nThe version is in the path (`/api/v1`). Within v1 we only make **additive** changes:\nnew endpoints, new optional parameters, new fields in responses, and new values in\nlists that are documented as growing. We never rename or remove a field, change its\ntype, or change what a value means without releasing a new version. If v2 ships, v1\nkeeps working, and we'll give workspace owners notice before it's retired.\n","contact":{"name":"aura+ support"}},"servers":[{"url":"https://{host}/api/v1","description":"Production","variables":{"host":{"default":"aura.chartis.io"}}}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Brands"},{"name":"Overview"},{"name":"Visibility"},{"name":"Sentiment"},{"name":"Citations"},{"name":"Competitors"},{"name":"Readiness"},{"name":"Action plan"},{"name":"Industry"},{"name":"Runs & history"},{"name":"Usage"}],"paths":{"/brands":{"get":{"tags":["Brands"],"operationId":"listBrands","summary":"List the brands this key can access","responses":{"200":{"description":"Brands accessible to this key.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Brand"}},"meta":{"$ref":"#/components/schemas/ListMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}":{"get":{"tags":["Brands"],"operationId":"getBrand","summary":"Get one brand","parameters":[{"$ref":"#/components/parameters/BrandId"}],"responses":{"200":{"description":"The brand.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/Brand"},"meta":{"$ref":"#/components/schemas/ListMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/overview":{"get":{"tags":["Overview"],"operationId":"getOverview","summary":"Headline scores for a run","description":"The aura+ index, its four pillars, competitive rank, and what moved since the previous run.","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Focus"},{"$ref":"#/components/parameters/Run"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"Overview.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/Overview"},"meta":{"$ref":"#/components/schemas/RunMeta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/visibility":{"get":{"tags":["Visibility"],"operationId":"getVisibility","summary":"How often AI engines surface the brand","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Focus"},{"$ref":"#/components/parameters/Run"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"Visibility.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/Visibility"},"meta":{"$ref":"#/components/schemas/RunMeta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/visibility/prompts":{"get":{"tags":["Visibility"],"operationId":"listPromptResults","summary":"One row per prompt, with per-engine results","description":"Every prompt measured in the run, with how each engine answered it. Filter by\ntheme, journey stage, or prompt type, and page through results with `cursor`.\nEngine sources and raw answers are large, so they're only returned when requested\nwith `include=`.\n","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Focus"},{"$ref":"#/components/parameters/Run"},{"name":"theme","in":"query","description":"Only prompts in this theme (exact theme name).","schema":{"type":"string"}},{"name":"stage","in":"query","schema":{"$ref":"#/components/schemas/JourneyStage"}},{"name":"type","in":"query","schema":{"$ref":"#/components/schemas/PromptType"}},{"name":"include","in":"query","description":"Comma-separated extras to include — `sources`, `answers`.","schema":{"type":"string","example":"sources"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"A page of prompt results.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PromptResult"}},"meta":{"allOf":[{"$ref":"#/components/schemas/RunMeta"},{"type":"object","required":["pagination"],"properties":{"pagination":{"$ref":"#/components/schemas/Pagination"}}}]}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/sentiment":{"get":{"tags":["Sentiment"],"operationId":"getSentiment","summary":"How positively AI engines describe the brand","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Focus"},{"$ref":"#/components/parameters/Run"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"Sentiment.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/Sentiment"},"meta":{"$ref":"#/components/schemas/RunMeta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/citations":{"get":{"tags":["Citations"],"operationId":"getCitations","summary":"How often answers substantiate the brand, and which sources they cite","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Focus"},{"$ref":"#/components/parameters/Run"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"Citations.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/Citations"},"meta":{"$ref":"#/components/schemas/RunMeta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/competitors":{"get":{"tags":["Competitors"],"operationId":"getCompetitors","summary":"Competitive scoreboard and competitor profiles","description":"The scoreboard ranks the brand against its tracked competitors. Each row's `basis`\nsays where its numbers come from: a competitor's own aura+ run (on its own prompts)\nor an estimate. Rows measured on different prompt sets are not like-for-like.\n","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Focus"},{"$ref":"#/components/parameters/Run"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"Competitors.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/Competitors"},"meta":{"$ref":"#/components/schemas/RunMeta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/readiness":{"get":{"tags":["Readiness"],"operationId":"getReadiness","summary":"Agentic readiness — can AI agents find, understand, and act on the brand","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Focus"},{"$ref":"#/components/parameters/Run"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"Readiness.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/Readiness"},"meta":{"$ref":"#/components/schemas/RunMeta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/action-plan":{"get":{"tags":["Action plan"],"operationId":"getActionPlan","summary":"Recommended moves to improve the brand's AI performance","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Focus"},{"$ref":"#/components/parameters/Run"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"Action plan.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/ActionPlan"},"meta":{"$ref":"#/components/schemas/RunMeta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/industry":{"get":{"tags":["Industry"],"operationId":"getIndustrySnapshot","summary":"The brand's industry snapshot","description":"Industry research for the brand's category — seven research dimensions plus\nhypotheses to validate. One snapshot per brand (focuses share it), generated on\nrequest in the app, so `focus` and `run` don't apply. If none has been generated,\n`data.status` is `not_generated`.\n","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Fields"}],"responses":{"200":{"description":"Industry snapshot.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/IndustrySnapshot"},"meta":{"$ref":"#/components/schemas/ListMeta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/runs":{"get":{"tags":["Runs & history"],"operationId":"listRuns","summary":"Completed and in-progress runs, newest first","parameters":[{"$ref":"#/components/parameters/BrandId"},{"name":"focus","in":"query","description":"Only runs for this focus (`full` or a focus id). Omit for all.","schema":{"type":"string"}},{"$ref":"#/components/parameters/Limit"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"description":"A page of runs.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Run"}},"meta":{"allOf":[{"$ref":"#/components/schemas/ListMeta"},{"type":"object","required":["pagination"],"properties":{"pagination":{"$ref":"#/components/schemas/Pagination"}}}]}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/brands/{brandId}/history":{"get":{"tags":["Runs & history"],"operationId":"getHistory","summary":"A metric over time, one point per completed run","parameters":[{"$ref":"#/components/parameters/BrandId"},{"$ref":"#/components/parameters/Focus"},{"name":"metric","in":"query","required":true,"schema":{"$ref":"#/components/schemas/HistoryMetric"}},{"name":"from","in":"query","description":"Earliest run completion time to include (ISO-8601).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"Latest run completion time to include (ISO-8601).","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Time series.","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/History"},"meta":{"$ref":"#/components/schemas/ListMeta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"}}}},"/usage":{"get":{"tags":["Usage"],"operationId":"getUsage","summary":"Your workspace's API usage this month","description":"Requests used against the monthly quota, broken down by key and endpoint. Calling this endpoint does not count against your quota.","responses":{"200":{"description":"Usage.","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"$ref":"#/components/schemas/Usage"},"meta":{"$ref":"#/components/schemas/ListMeta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/ApiDisabled"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"aura_live_…","description":"A workspace API key from Settings → API."}},"parameters":{"BrandId":{"name":"brandId","in":"path","required":true,"description":"A brand id from `GET /v1/brands`.","schema":{"type":"string","format":"uuid"}},"Focus":{"name":"focus","in":"query","description":"`full` (the Full-brand report, default) or a focus id from `GET /v1/brands`.","schema":{"type":"string","default":"full"}},"Run":{"name":"run","in":"query","description":"`latest` (the latest completed run, default) or a run id from `GET /v1/brands/{brandId}/runs`.","schema":{"type":"string","default":"latest"}},"Fields":{"name":"fields","in":"query","description":"Comma-separated top-level keys of `data` to return. Omit for everything.","schema":{"type":"string","example":"aiVisibility,byEngine"}},"Limit":{"name":"limit","in":"query","description":"Page size.","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},"Cursor":{"name":"cursor","in":"query","description":"The `nextCursor` from the previous page.","schema":{"type":"string"}}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed per minute for this key.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Unix time (seconds) when the per-minute window resets.","schema":{"type":"integer"}},"X-Quota-Limit":{"description":"Monthly request quota for the workspace.","schema":{"type":"integer"}},"X-Quota-Remaining":{"description":"Requests left this month.","schema":{"type":"integer"}},"X-Quota-Reset":{"description":"ISO-8601 time when the monthly quota resets.","schema":{"type":"string","format":"date-time"}}},"responses":{"BadRequest":{"description":"Invalid parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"invalid_request","message":"Unknown field(s): bogus. Valid fields: indexScore, pillars, rank, aiVisibility, citationRate, netSentiment, readinessLevel, insights, whatMoved."}}}}},"Unauthorized":{"description":"Missing, malformed, revoked, or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"unauthorized","message":"Missing, malformed, revoked, or expired API key."}}}}},"ApiDisabled":{"description":"API access is turned off for this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"api_disabled","message":"API access is not enabled for this workspace. Contact aura+ support."}}}}},"NotFound":{"description":"Not found, not accessible to this key, or no completed run yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"notFound":{"value":{"error":{"code":"not_found","message":"Brand not found."}}},"noRun":{"value":{"error":{"code":"no_completed_run","message":"This brand has no completed run for that focus yet."}}}}}}},"RateLimited":{"description":"Rate limit or monthly quota exceeded.","headers":{"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"X-Quota-Reset":{"$ref":"#/components/headers/X-Quota-Reset"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"rateLimited":{"value":{"error":{"code":"rate_limited","message":"Rate limit exceeded. Retry after the time in X-RateLimit-Reset."}}},"quotaExceeded":{"value":{"error":{"code":"quota_exceeded","message":"Monthly API quota reached. It resets at the time in X-Quota-Reset."}}}}}}}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","unauthorized","api_disabled","not_found","no_completed_run","rate_limited","quota_exceeded","internal_error"]},"message":{"type":"string"}}}}},"ListMeta":{"type":"object","required":["apiVersion"],"properties":{"apiVersion":{"type":"string","const":"v1"}}},"RunMeta":{"type":"object","required":["apiVersion","brandId","focusId","runId","measuredAt"],"properties":{"apiVersion":{"type":"string","const":"v1"},"brandId":{"type":"string","format":"uuid"},"focusId":{"type":["string","null"],"description":"The focus id, or `null` for the Full-brand report."},"runId":{"type":"string","format":"uuid"},"measuredAt":{"type":"string","format":"date-time","description":"When the run completed."}}},"Pagination":{"type":"object","required":["nextCursor","limit"],"properties":{"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; `null` when there are no more."},"limit":{"type":"integer"},"total":{"type":"integer","description":"Total items across all pages."}}},"Engine":{"type":"string","enum":["chatgpt","claude","gemini"]},"EngineScores":{"type":"object","description":"One 0–100 value per engine.","required":["chatgpt","claude","gemini"],"properties":{"chatgpt":{"$ref":"#/components/schemas/Score"},"claude":{"$ref":"#/components/schemas/Score"},"gemini":{"$ref":"#/components/schemas/Score"}}},"Score":{"type":"integer","minimum":0,"maximum":100},"JourneyStage":{"type":"string","enum":["awareness","consideration","decision"]},"PromptType":{"type":"string","enum":["branded","nonbranded"]},"Lean":{"type":"string","enum":["positive","mixed","negative"]},"Brand":{"type":"object","required":["id","name","domain","industry","focuses"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"domain":{"type":["string","null"],"description":"The website assessed in the audit."},"industry":{"type":["string","null"]},"focuses":{"type":"array","description":"Product or segment focuses, each measured separately from the Full brand.","items":{"type":"object","required":["id","label"],"properties":{"id":{"type":"string","format":"uuid"},"label":{"type":"string","example":"A5"}}}}}},"Overview":{"type":"object","required":["indexScore","pillars","rank","aiVisibility","citationRate","netSentiment","readinessLevel","insights","whatMoved"],"properties":{"indexScore":{"$ref":"#/components/schemas/Score","description":"The aura+ index — a weighted roll-up of the four pillars."},"pillars":{"type":"object","required":["presence","authority","action","resilience"],"properties":{"presence":{"$ref":"#/components/schemas/Score"},"authority":{"$ref":"#/components/schemas/Score"},"action":{"$ref":"#/components/schemas/Score"},"resilience":{"$ref":"#/components/schemas/Score"}}},"rank":{"$ref":"#/components/schemas/Rank"},"aiVisibility":{"$ref":"#/components/schemas/Score"},"citationRate":{"$ref":"#/components/schemas/Score"},"netSentiment":{"$ref":"#/components/schemas/Score"},"readinessLevel":{"type":"integer","minimum":0,"maximum":5,"description":"Agentic maturity level, 0–5."},"insights":{"type":"array","items":{"type":"string"}},"whatMoved":{"type":"array","items":{"type":"object","required":["label","detail"],"properties":{"label":{"type":"string"},"detail":{"type":"string"},"delta":{"type":["integer","null"],"description":"Change in points since the previous run."}}}}}},"Rank":{"type":"object","required":["position","total"],"properties":{"position":{"type":"integer","minimum":1,"description":"1 = highest AI visibility among the brand and its competitors."},"total":{"type":"integer","minimum":1}}},"Visibility":{"type":"object","required":["aiVisibility","byEngine","byStage","discovery","themes","insights"],"properties":{"aiVisibility":{"$ref":"#/components/schemas/Score","description":"Average presence across ChatGPT, Claude, and Gemini."},"byEngine":{"$ref":"#/components/schemas/EngineScores"},"byStage":{"type":"object","required":["awareness","consideration","decision"],"properties":{"awareness":{"$ref":"#/components/schemas/Score"},"consideration":{"$ref":"#/components/schemas/Score"},"decision":{"$ref":"#/components/schemas/Score"}}},"discovery":{"type":"object","description":"Share of visibility coming from branded vs. non-branded prompts (sums to 100).","required":["brandedShare","nonbrandedShare"],"properties":{"brandedShare":{"$ref":"#/components/schemas/Score"},"nonbrandedShare":{"$ref":"#/components/schemas/Score"}}},"themes":{"type":"object","required":["owned","contested","open"],"properties":{"owned":{"type":"array","items":{"type":"string"},"description":"Themes where the brand leads."},"contested":{"type":"array","items":{"type":"string"},"description":"Themes shared with competitors."},"open":{"type":"array","items":{"type":"string"},"description":"Themes no one owns yet."}}},"coverage":{"type":"object","description":"How much of the prompt set this run measured.","properties":{"promptsScored":{"type":"integer"},"promptsTotal":{"type":"integer"},"themesScored":{"type":"integer"},"themesTotal":{"type":"integer"}}},"insights":{"type":"array","items":{"type":"string"}},"marketRead":{"type":["object","null"],"description":"A grounded narrative read of the category, when available.","properties":{"discoverySignals":{"type":"array","items":{"type":"string"}},"authorityProfile":{"type":"array","items":{"type":"string"}},"strategicNarrative":{"type":"string"},"categoryContext":{"type":"string"},"sources":{"type":"array","items":{"type":"string","format":"uri"}}}}}},"PromptResult":{"type":"object","required":["id","prompt","theme","type","stage","status","engines","overallScore","competitorsMentioned"],"properties":{"id":{"type":"string","format":"uuid"},"prompt":{"type":"string"},"theme":{"type":"string"},"type":{"$ref":"#/components/schemas/PromptType"},"stage":{"$ref":"#/components/schemas/JourneyStage"},"intent":{"type":["string","null"]},"status":{"type":"string","enum":["scored","pending"],"description":"`pending` prompts belong to themes not yet measured; their engine results are `null`."},"engines":{"type":"object","required":["chatgpt","claude","gemini"],"properties":{"chatgpt":{"$ref":"#/components/schemas/EngineResult"},"claude":{"$ref":"#/components/schemas/EngineResult"},"gemini":{"$ref":"#/components/schemas/EngineResult"}}},"overallScore":{"type":["integer","null"],"minimum":0,"maximum":100,"description":"Average of the three engine scores; `null` when pending."},"competitorsMentioned":{"type":"array","items":{"type":"string"}},"sources":{"type":"object","description":"Only with `include=sources`. Source URLs each engine cited.","properties":{"chatgpt":{"type":"array","items":{"type":"string","format":"uri"}},"claude":{"type":"array","items":{"type":"string","format":"uri"}},"gemini":{"type":"array","items":{"type":"string","format":"uri"}}}},"answers":{"type":"object","description":"Only with `include=answers`. Each engine's answer text.","properties":{"chatgpt":{"type":["string","null"]},"claude":{"type":["string","null"]},"gemini":{"type":["string","null"]}}}}},"EngineResult":{"type":["object","null"],"required":["present","score","cited","sentiment"],"properties":{"present":{"type":"boolean","description":"Whether the brand appeared in the answer."},"score":{"$ref":"#/components/schemas/Score"},"cited":{"type":"boolean","description":"Whether the answer substantiated the brand with concrete evidence (a named source, statistic, review, or specific capability). A link is not required."},"sentiment":{"$ref":"#/components/schemas/Score","description":"How positively the answer described the brand (50 = neutral)."}}},"Sentiment":{"type":"object","required":["net","distribution","byEngine","insights","drivers","reputationSignals"],"properties":{"net":{"$ref":"#/components/schemas/Score","description":"Overall sentiment (50 = neutral, higher = more positive)."},"distribution":{"type":"object","description":"Share of mentions by tone (sums to 100).","required":["positive","neutral","negative"],"properties":{"positive":{"$ref":"#/components/schemas/Score"},"neutral":{"$ref":"#/components/schemas/Score"},"negative":{"$ref":"#/components/schemas/Score"}}},"byEngine":{"$ref":"#/components/schemas/EngineScores"},"insights":{"type":"array","items":{"type":"string"}},"drivers":{"type":"object","required":["positive","negative"],"properties":{"positive":{"type":"array","items":{"$ref":"#/components/schemas/SentimentDriver"}},"negative":{"type":"array","items":{"$ref":"#/components/schemas/SentimentDriver"}}}},"reputationSignals":{"type":"array","items":{"type":"object","required":["source","lean","note","verified"],"properties":{"source":{"type":"string","example":"Trustpilot"},"lean":{"$ref":"#/components/schemas/Lean"},"note":{"type":"string"},"rating":{"type":["number","null"]},"count":{"type":["string","null"],"example":"361 reviews"},"url":{"type":["string","null"],"format":"uri"},"verified":{"type":"boolean","description":"True when grounded in a live search result."}}}},"promiseVsReality":{"type":"array","items":{"type":"object","required":["promise","reality","lean"],"properties":{"promise":{"type":"string"},"reality":{"type":"string"},"lean":{"$ref":"#/components/schemas/Lean"},"proof":{"type":["string","null"]}}}}}},"SentimentDriver":{"type":"object","required":["label","note"],"properties":{"label":{"type":"string"},"note":{"type":"string"},"strength":{"type":["string","null"]},"move":{"type":["string","null"],"description":"The action that reinforces the driver or closes the gap."}}},"Citations":{"type":"object","required":["citationRate","sourcedRate","byEngine","topSources"],"properties":{"citationRate":{"$ref":"#/components/schemas/Score","description":"Share of answers that substantiated the brand with concrete evidence (a link is not required)."},"sourcedRate":{"$ref":"#/components/schemas/Score","description":"Stricter — share of answers that included at least one real source URL."},"byEngine":{"$ref":"#/components/schemas/EngineScores","description":"Citation rate per engine."},"topSources":{"type":"array","description":"The domains engines cited most often, most-cited first.","items":{"type":"object","required":["domain","citations","engines"],"properties":{"domain":{"type":"string","example":"wikipedia.org"},"citations":{"type":"integer","description":"Number of answers citing this domain."},"engines":{"type":"array","items":{"$ref":"#/components/schemas/Engine"}}}}}}},"Competitors":{"type":"object","required":["rank","scoreboard","profiles","insights"],"properties":{"rank":{"$ref":"#/components/schemas/Rank"},"scoreboard":{"type":"array","items":{"$ref":"#/components/schemas/ScoreboardRow"}},"profiles":{"type":"array","items":{"$ref":"#/components/schemas/CompetitorProfile"}},"insights":{"type":"array","items":{"type":"string"}}}},"ScoreboardRow":{"type":"object","required":["name","isYou","aiVisibility","citationRate","sentiment","readiness","basis"],"properties":{"name":{"type":"string"},"isYou":{"type":"boolean"},"indexScore":{"type":["integer","null"],"minimum":0,"maximum":100},"aiVisibility":{"$ref":"#/components/schemas/Score"},"citationRate":{"$ref":"#/components/schemas/Score"},"sentiment":{"$ref":"#/components/schemas/Score"},"readiness":{"$ref":"#/components/schemas/Score"},"maturityLabel":{"type":["string","null"],"example":"L3 · Answerable"},"agentReady":{"type":["string","null"],"enum":["Bookable","Partial","Not bookable",null]},"domain":{"type":["string","null"]},"basis":{"type":"object","description":"Where this row's numbers come from. Rows on different bases are not directly comparable.","required":["kind"],"properties":{"kind":{"type":"string","enum":["own_run","estimate","pending"],"description":"`own_run` = measured in that brand's own aura+ run on its own prompts; `estimate` = modelled; `pending` = not measured yet."},"promptsScored":{"type":["integer","null"],"description":"Prompts behind an `own_run` measurement."},"measuredAt":{"type":["string","null"],"format":"date-time"}}}}},"CompetitorProfile":{"type":"object","required":["name","summary","strengths","weaknesses","ownedThemes","openThemes","visibilitySignals"],"properties":{"name":{"type":"string"},"summary":{"type":"string"},"strengths":{"type":"array","items":{"type":"string"}},"weaknesses":{"type":"array","items":{"type":"string"}},"ownedThemes":{"type":"array","items":{"type":"string"}},"openThemes":{"type":"array","items":{"type":"string"}},"visibilitySignals":{"type":"array","items":{"type":"object","required":["type","strength","detail"],"properties":{"type":{"type":"string","example":"Third-Party Validation"},"strength":{"type":"string","enum":["High","Moderate","Low"]},"detail":{"type":"string"}}}}}},"Readiness":{"type":"object","required":["level","label","summary","urgency","technicalScore","citationLikelihood","gaps","checks"],"properties":{"level":{"type":"integer","minimum":0,"maximum":5},"label":{"type":"string","example":"Answerable"},"summary":{"type":"string"},"urgency":{"type":"string","enum":["High","Medium","Low"]},"technicalScore":{"$ref":"#/components/schemas/Score","description":"Weighted roll-up of the technical checks."},"citationLikelihood":{"type":"integer","minimum":0,"maximum":10},"auditedUrl":{"type":["string","null"],"format":"uri"},"gaps":{"type":"array","items":{"type":"string"}},"checks":{"type":"array","items":{"type":"object","required":["key","name","category","status","score","weight","validated","detail"],"properties":{"key":{"type":"string"},"name":{"type":"string"},"category":{"type":"string","enum":["Discoverability","Interactivity","Transactionability"]},"status":{"type":"string","enum":["strong","partial","weak","missing"]},"score":{"$ref":"#/components/schemas/Score"},"weight":{"type":"number"},"validated":{"type":"boolean","description":"True when measured against the live site; false when estimated."},"detail":{"type":"string"}}}},"aiUnderstanding":{"type":["object","null"],"description":"How AI engines understand and can cite the brand.","properties":{"entityDefinition":{"type":"string"},"topAttributes":{"type":"array","items":{"type":"string"}},"answerStructure":{"type":"string"},"knowledgeGaps":{"type":"string"},"trustedSources":{"type":"array","items":{"type":"object","required":["name"],"properties":{"name":{"type":"string"},"url":{"type":["string","null"],"format":"uri"},"verified":{"type":"boolean"}}}}}}}},"ActionPlan":{"type":"object","required":["moves","trustRecommendations"],"properties":{"moves":{"type":"array","items":{"type":"object","required":["title","detail","effort"],"properties":{"title":{"type":"string"},"detail":{"type":"string"},"area":{"type":["string","null"],"enum":["visibility","sentiment","citation","competitors","readiness",null]},"effort":{"type":"string","enum":["Low","Med","High"]},"impact":{"type":["string","null"],"enum":["Low","Med","High",null]}}}},"trustRecommendations":{"type":"array","description":"Off-site moves on platforms the brand doesn't control (reviews, forums, press).","items":{"type":"object","required":["platformCategory","title","detail","rationale"],"properties":{"platformCategory":{"type":"string"},"title":{"type":"string"},"detail":{"type":"string"},"rationale":{"type":"string"}}}}}},"IndustrySnapshot":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["available","not_generated"]},"generatedAt":{"type":["string","null"],"format":"date-time"},"scope":{"type":["object","null"],"properties":{"industry":{"type":"string"},"category":{"type":"string"},"geography":{"type":"string"},"customerGroups":{"type":"array","items":{"type":"string"}},"timeHorizon":{"type":"string"}}},"dimensions":{"type":"array","items":{"$ref":"#/components/schemas/IndustryDimension"}},"hypotheses":{"type":"array","description":"Open questions worth deeper research.","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"string","format":"uri"}}}},"IndustryDimension":{"type":"object","required":["key","title","available","summary","metrics","findings","ranked"],"properties":{"key":{"type":"string","enum":["market","customer","structure","competition","trends","innovation","experience"]},"title":{"type":"string","example":"Market landscape & economics"},"available":{"type":"boolean","description":"False when sourced research couldn't be gathered for this dimension."},"summary":{"type":"string"},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/IndustryFinding"}},"findings":{"type":"array","items":{"$ref":"#/components/schemas/IndustryFinding"}},"ranked":{"type":"array","items":{"type":"object","required":["label"],"properties":{"label":{"type":"string"},"note":{"type":["string","null"]}}}}}},"IndustryFinding":{"type":"object","required":["text","claimType","confidence"],"properties":{"text":{"type":"string"},"metric":{"type":["string","null"],"example":"$24.0B (2025)"},"source":{"type":["string","null"],"description":"Publisher","report or title":null,"and year.":null},"url":{"type":["string","null"],"format":"uri"},"period":{"type":["string","null"]},"claimType":{"type":"string","enum":["fact","estimate","forecast","hypothesis"]},"confidence":{"type":"string","enum":["high","medium","low"]}}},"Run":{"type":"object","required":["id","focusId","status","startedAt","completedAt","indexScore"],"properties":{"id":{"type":"string","format":"uuid"},"focusId":{"type":["string","null"],"description":"`null` for the Full-brand report."},"focusLabel":{"type":["string","null"]},"status":{"type":"string","enum":["queued","running","done","error"]},"startedAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"},"indexScore":{"type":["integer","null"],"minimum":0,"maximum":100}}},"HistoryMetric":{"type":"string","enum":["indexScore","aiVisibility","citationRate","netSentiment","presence","authority","action","resilience"]},"History":{"type":"object","required":["metric","focusId","points"],"properties":{"metric":{"$ref":"#/components/schemas/HistoryMetric"},"focusId":{"type":["string","null"]},"points":{"type":"array","description":"Oldest first.","items":{"type":"object","required":["runId","measuredAt","value"],"properties":{"runId":{"type":"string","format":"uuid"},"measuredAt":{"type":"string","format":"date-time"},"value":{"$ref":"#/components/schemas/Score"}}}}}},"Usage":{"type":"object","required":["periodStart","periodEnd","requestsUsed","requestLimit","byKey","byEndpoint"],"properties":{"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"},"requestsUsed":{"type":"integer"},"requestLimit":{"type":["integer","null"],"description":"`null` = unlimited."},"byKey":{"type":"array","items":{"type":"object","required":["keyId","name","last4","requests"],"properties":{"keyId":{"type":"string","format":"uuid"},"name":{"type":"string"},"last4":{"type":"string"},"requests":{"type":"integer"}}}},"byEndpoint":{"type":"array","items":{"type":"object","required":["endpoint","requests"],"properties":{"endpoint":{"type":"string","example":"GET /v1/brands/{brandId}/visibility"},"requests":{"type":"integer"}}}}}}}}}