> ## Documentation Index
> Fetch the complete documentation index at: https://docs.surfais.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List brand summaries

> One-call rollup of every own brand.

Latest and previous AIS Score with delta, mean sentiment and share of voice on the latest date, and scan freshness — one row per own (non-archived) brand. No organisation composite is invented; aggregate client-side. `sov` = the brand's mentions ÷ (its own + its competitors') on its latest scored date, with BOTH HALVES COUNTED ON THIS BRAND'S OWN completed, non-preview runs that date rather than off any score row: those carry no record of which own brand it was scored for and hold whichever (own brand, candidate) pairing scored them last, which reaches the brand's own numerator too, since a competitor link is a link between BRANDS. Each point reports BOTH generations it was produced under — `score_version` (the scoring formula) and `panel_version` (the model set that measured it) — and `delta` is WITHHELD, with the case in `delta_reason`, whenever the two points do not agree on both.



## OpenAPI

````yaml /api-reference/openapi.json get /orgs/{orgId}/brands/summary
openapi: 3.1.0
info:
  title: Surfais API
  version: 1.0.0
  description: >-
    The Surfais API gives programmatic access to the AI-visibility data Surfais
    measures for your brands: organisations, brands and competitors, tracked
    prompts, per-run results and mentions, scores, share of voice and cited
    sources. It can also provision brands, manage prompts and competitors,
    request on-demand scans, and deliver signed webhooks when a scan completes
    or a score or sentiment threshold is crossed.


    Base URL: `https://api.surfais.com/v1`. Send your API key as a Bearer token
    (`Authorization: Bearer sfs_live_…`). Test keys (`sfs_test_…`) are rejected
    by the production API. Requests and responses are JSON: a success is `{
    "data": … }`, an error is `{ "error": { "code", "message" }, "request_id"
    }`.


    Guides for authentication, pagination, errors, rate limits, idempotency and
    webhooks are at https://docs.surfais.com/api/introduction.
  contact:
    name: Surfais support
    email: support@surfais.com
    url: https://docs.surfais.com/api/support
servers:
  - url: https://api.surfais.com/v1
    description: >-
      Production (the `/v1` prefix is part of the server URL; paths below are
      relative to it).
security:
  - bearerKey: []
tags:
  - name: orgs
    description: Organisations reachable by the key, their usage, and the partner link.
  - name: brands
    description: Own brands (properties) and competitor rows.
  - name: prompts
    description: 'Tracked prompts: reads, CRUD and the declarative sync.'
  - name: results
    description: Finalised run-level data.
  - name: scores
    description: Persisted scores, per-market history and share of voice.
  - name: sources
    description: Cited domains.
  - name: scans
    description: On-demand scan requests.
  - name: webhooks
    description: >-
      Outbound event delivery: endpoints, subscriptions, deliveries (partner
      keys).
externalDocs:
  description: Guides, concepts and webhooks
  url: https://docs.surfais.com/api/introduction
paths:
  /orgs/{orgId}/brands/summary:
    get:
      tags:
        - brands
      summary: List brand summaries
      description: >-
        One-call rollup of every own brand.


        Latest and previous AIS Score with delta, mean sentiment and share of
        voice on the latest date, and scan freshness — one row per own
        (non-archived) brand. No organisation composite is invented; aggregate
        client-side. `sov` = the brand's mentions ÷ (its own + its competitors')
        on its latest scored date, with BOTH HALVES COUNTED ON THIS BRAND'S OWN
        completed, non-preview runs that date rather than off any score row:
        those carry no record of which own brand it was scored for and hold
        whichever (own brand, candidate) pairing scored them last, which reaches
        the brand's own numerator too, since a competitor link is a link between
        BRANDS. Each point reports BOTH generations it was produced under —
        `score_version` (the scoring formula) and `panel_version` (the model set
        that measured it) — and `delta` is WITHHELD, with the case in
        `delta_reason`, whenever the two points do not agree on both.
      operationId: listBrandSummaries
      parameters:
        - in: path
          name: orgId
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            description: >-
              Organisation id. Org keys: the key's own org. Partner keys: any
              org with an active link. Anything else is 404.
          required: true
          description: >-
            Organisation id. Org keys: the key's own org. Partner keys: any org
            with an active link. Anything else is 404.
        - in: query
          name: limit
          schema:
            default: 50
            description: Page size (1–200). Default 50.
            type: integer
            minimum: 1
            maximum: 200
          description: Page size (1–200). Default 50.
        - in: query
          name: cursor
          schema:
            description: >-
              Opaque cursor from a previous page's `pagination.next_cursor`. It
              pins the walk — its sort anchor, the resolved date window and the
              FILTERS the first page ran under — so continue with the cursor
              alone: omitted filters are restored from it. Naming a different
              value for one of them is 400 `invalid_cursor` (`details.reason =
              "filter_changed"`, `details.parameter` the one that differs);
              start again from the first page to change a filter.
            type: string
            maxLength: 2048
          description: >-
            Opaque cursor from a previous page's `pagination.next_cursor`. It
            pins the walk — its sort anchor, the resolved date window and the
            FILTERS the first page ran under — so continue with the cursor
            alone: omitted filters are restored from it. Naming a different
            value for one of them is 400 `invalid_cursor` (`details.reason =
            "filter_changed"`, `details.parameter` the one that differs); start
            again from the first page to change a filter.
      responses:
        '200':
          description: Per-brand summaries.
          headers:
            X-Request-Id:
              required: true
              description: >-
                Correlation id for this request; equals `request_id` in an error
                envelope.
              schema:
                type: string
                description: >-
                  Correlation id for this request; equals `request_id` in an
                  error envelope.
            X-RateLimit-Limit:
              required: true
              description: >-
                Requests allowed per minute for this key. On a 429
                `rate_limited` from the failed-authentication gate: failed
                attempts allowed per minute for the client address.
              schema:
                type: string
                description: >-
                  Requests allowed per minute for this key. On a 429
                  `rate_limited` from the failed-authentication gate: failed
                  attempts allowed per minute for the client address.
            X-RateLimit-Remaining:
              required: true
              description: >-
                Requests left in the current minute window (0 on the
                failed-authentication 429).
              schema:
                type: string
                description: >-
                  Requests left in the current minute window (0 on the
                  failed-authentication 429).
            X-RateLimit-Reset:
              required: true
              description: Unix seconds at which the current minute window ends.
              schema:
                type: string
                description: Unix seconds at which the current minute window ends.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/BrandSummary'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
                required:
                  - data
                  - pagination
        '400':
          description: >-
            `body_not_allowed` — a GET or HEAD that declared a body, refused by
            the intake guard BEFORE the parser, which is the only 400 a read
            operation reaches by that route — or `validation_error` (with
            `details`), `invalid_cursor`, `invalid_json` or `invalid_body`, the
            last two reachable only where a body is accepted at all. All are
            raised after authentication and the minute charge (the body is
            parsed only for an authenticated, admitted request), so every 400
            carries the `X-RateLimit-*` trio and is metered.
          headers:
            X-Request-Id:
              required: true
              description: >-
                Correlation id for this request; equals `request_id` in an error
                envelope.
              schema:
                type: string
                description: >-
                  Correlation id for this request; equals `request_id` in an
                  error envelope.
            X-RateLimit-Limit:
              required: true
              description: >-
                Requests allowed per minute for this key. On a 429
                `rate_limited` from the failed-authentication gate: failed
                attempts allowed per minute for the client address.
              schema:
                type: string
                description: >-
                  Requests allowed per minute for this key. On a 429
                  `rate_limited` from the failed-authentication gate: failed
                  attempts allowed per minute for the client address.
            X-RateLimit-Remaining:
              required: true
              description: >-
                Requests left in the current minute window (0 on the
                failed-authentication 429).
              schema:
                type: string
                description: >-
                  Requests left in the current minute window (0 on the
                  failed-authentication 429).
            X-RateLimit-Reset:
              required: true
              description: Unix seconds at which the current minute window ends.
              schema:
                type: string
                description: Unix seconds at which the current minute window ends.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: '`invalid_api_key` — uniform for every authentication failure.'
          headers:
            X-Request-Id:
              required: true
              description: >-
                Correlation id for this request; equals `request_id` in an error
                envelope.
              schema:
                type: string
                description: >-
                  Correlation id for this request; equals `request_id` in an
                  error envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: >-
            `tier_not_entitled` — the org key's organisation left an
            API-entitled tier. The request is charged to the key's minute
            allowance (so it carries the `X-RateLimit-*` trio, and an exhausted
            allowance answers 429 first) and is metered.
          headers:
            X-Request-Id:
              required: true
              description: >-
                Correlation id for this request; equals `request_id` in an error
                envelope.
              schema:
                type: string
                description: >-
                  Correlation id for this request; equals `request_id` in an
                  error envelope.
            X-RateLimit-Limit:
              required: true
              description: >-
                Requests allowed per minute for this key. On a 429
                `rate_limited` from the failed-authentication gate: failed
                attempts allowed per minute for the client address.
              schema:
                type: string
                description: >-
                  Requests allowed per minute for this key. On a 429
                  `rate_limited` from the failed-authentication gate: failed
                  attempts allowed per minute for the client address.
            X-RateLimit-Remaining:
              required: true
              description: >-
                Requests left in the current minute window (0 on the
                failed-authentication 429).
              schema:
                type: string
                description: >-
                  Requests left in the current minute window (0 on the
                  failed-authentication 429).
            X-RateLimit-Reset:
              required: true
              description: Unix seconds at which the current minute window ends.
              schema:
                type: string
                description: Unix seconds at which the current minute window ends.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: >-
            `not_found` — the org is not reachable by this key or a nested id is
            not in it. Raised after authentication and the minute charge, so it
            carries the `X-RateLimit-*` trio and is metered.
          headers:
            X-Request-Id:
              required: true
              description: >-
                Correlation id for this request; equals `request_id` in an error
                envelope.
              schema:
                type: string
                description: >-
                  Correlation id for this request; equals `request_id` in an
                  error envelope.
            X-RateLimit-Limit:
              required: true
              description: >-
                Requests allowed per minute for this key. On a 429
                `rate_limited` from the failed-authentication gate: failed
                attempts allowed per minute for the client address.
              schema:
                type: string
                description: >-
                  Requests allowed per minute for this key. On a 429
                  `rate_limited` from the failed-authentication gate: failed
                  attempts allowed per minute for the client address.
            X-RateLimit-Remaining:
              required: true
              description: >-
                Requests left in the current minute window (0 on the
                failed-authentication 429).
              schema:
                type: string
                description: >-
                  Requests left in the current minute window (0 on the
                  failed-authentication 429).
            X-RateLimit-Reset:
              required: true
              description: Unix seconds at which the current minute window ends.
              schema:
                type: string
                description: Unix seconds at which the current minute window ends.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '413':
          description: >-
            `payload_too_large` — a JSON body over 1 MB. The body is parsed only
            for an authenticated, admitted request, so this carries the
            `X-RateLimit-*` trio and is metered.
          headers:
            X-Request-Id:
              required: true
              description: >-
                Correlation id for this request; equals `request_id` in an error
                envelope.
              schema:
                type: string
                description: >-
                  Correlation id for this request; equals `request_id` in an
                  error envelope.
            X-RateLimit-Limit:
              required: true
              description: >-
                Requests allowed per minute for this key. On a 429
                `rate_limited` from the failed-authentication gate: failed
                attempts allowed per minute for the client address.
              schema:
                type: string
                description: >-
                  Requests allowed per minute for this key. On a 429
                  `rate_limited` from the failed-authentication gate: failed
                  attempts allowed per minute for the client address.
            X-RateLimit-Remaining:
              required: true
              description: >-
                Requests left in the current minute window (0 on the
                failed-authentication 429).
              schema:
                type: string
                description: >-
                  Requests left in the current minute window (0 on the
                  failed-authentication 429).
            X-RateLimit-Reset:
              required: true
              description: Unix seconds at which the current minute window ends.
              schema:
                type: string
                description: Unix seconds at which the current minute window ends.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: >-
            `rate_limited` (per-minute limit, or too many failed authentications
            from this address) or `quota_exceeded`.
          headers:
            X-Request-Id:
              required: true
              description: >-
                Correlation id for this request; equals `request_id` in an error
                envelope.
              schema:
                type: string
                description: >-
                  Correlation id for this request; equals `request_id` in an
                  error envelope.
            Retry-After:
              required: true
              description: Seconds to wait before retrying — present on every 429 and 503.
              schema:
                type: string
                description: >-
                  Seconds to wait before retrying — present on every 429 and
                  503.
            X-RateLimit-Limit:
              required: true
              description: >-
                Requests allowed per minute for this key. On a 429
                `rate_limited` from the failed-authentication gate: failed
                attempts allowed per minute for the client address.
              schema:
                type: string
                description: >-
                  Requests allowed per minute for this key. On a 429
                  `rate_limited` from the failed-authentication gate: failed
                  attempts allowed per minute for the client address.
            X-RateLimit-Remaining:
              required: true
              description: >-
                Requests left in the current minute window (0 on the
                failed-authentication 429).
              schema:
                type: string
                description: >-
                  Requests left in the current minute window (0 on the
                  failed-authentication 429).
            X-RateLimit-Reset:
              required: true
              description: Unix seconds at which the current minute window ends.
              schema:
                type: string
                description: Unix seconds at which the current minute window ends.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '500':
          description: >-
            `internal_error` — quote `request_id`. A failure inside a route
            answers after the minute charge and carries the `X-RateLimit-*`
            trio; a failure before the limiter carries only `X-Request-Id`.
          headers:
            X-Request-Id:
              required: true
              description: >-
                Correlation id for this request; equals `request_id` in an error
                envelope.
              schema:
                type: string
                description: >-
                  Correlation id for this request; equals `request_id` in an
                  error envelope.
            X-RateLimit-Limit:
              description: >-
                Present when the failure occurred after the minute charge
                (inside a route); absent on a failure before the limiter.
                Requests allowed per minute for this key.
              schema:
                description: >-
                  Present when the failure occurred after the minute charge
                  (inside a route); absent on a failure before the limiter.
                  Requests allowed per minute for this key.
                type: string
            X-RateLimit-Remaining:
              description: >-
                Present when the failure occurred after the minute charge.
                Requests left in the current minute window.
              schema:
                description: >-
                  Present when the failure occurred after the minute charge.
                  Requests left in the current minute window.
                type: string
            X-RateLimit-Reset:
              description: >-
                Present when the failure occurred after the minute charge. Unix
                seconds at which the current minute window ends.
              schema:
                description: >-
                  Present when the failure occurred after the minute charge.
                  Unix seconds at which the current minute window ends.
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '503':
          description: >-
            `api_unavailable` (switched off; `Retry-After` is 60),
            `rate_limit_unavailable` (fail-closed limiter — its store, or a
            saturated failed-authentication gate; before the minute charge, so
            no `X-RateLimit-*` trio), or `store_unavailable` (a tenant-store
            call behind an authenticated request exceeded 15000 ms — raised
            after the minute charge, so it is counted and carries the trio).
          headers:
            X-Request-Id:
              required: true
              description: >-
                Correlation id for this request; equals `request_id` in an error
                envelope.
              schema:
                type: string
                description: >-
                  Correlation id for this request; equals `request_id` in an
                  error envelope.
            Retry-After:
              required: true
              description: Seconds to wait before retrying — present on every 429 and 503.
              schema:
                type: string
                description: >-
                  Seconds to wait before retrying — present on every 429 and
                  503.
            X-RateLimit-Limit:
              description: >-
                Present when the failure occurred after the minute charge
                (inside a route); absent on a failure before the limiter.
                Requests allowed per minute for this key.
              schema:
                description: >-
                  Present when the failure occurred after the minute charge
                  (inside a route); absent on a failure before the limiter.
                  Requests allowed per minute for this key.
                type: string
            X-RateLimit-Remaining:
              description: >-
                Present when the failure occurred after the minute charge.
                Requests left in the current minute window.
              schema:
                description: >-
                  Present when the failure occurred after the minute charge.
                  Requests left in the current minute window.
                type: string
            X-RateLimit-Reset:
              description: >-
                Present when the failure occurred after the minute charge. Unix
                seconds at which the current minute window ends.
              schema:
                description: >-
                  Present when the failure occurred after the minute charge.
                  Unix seconds at which the current minute window ends.
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    BrandSummary:
      type: object
      properties:
        brand_id:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: UUID.
        name:
          type: string
        domain:
          type: string
        external_ref:
          anyOf:
            - type: string
            - type: 'null'
        latest:
          anyOf:
            - type: object
              properties:
                date:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  description: Calendar date, `YYYY-MM-DD` (UTC).
                  format: date
                score:
                  anyOf:
                    - type: number
                    - type: 'null'
                  description: >-
                    AIS Score /100 (the headline score, on the all-market
                    aggregate).
                score_version:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Scoring model that PRODUCED this point — the generation
                    persisted with it when it was scored, never the model the
                    API is running today. Null for points written before
                    per-point generations were persisted.
                panel_version:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Measurement panel (model set) whose runs this point was
                    scored over. It moves INDEPENDENTLY of `score_version` — a
                    panel rollout re-measures without changing the formula — so
                    two points can name one scoring generation and still not be
                    comparable. Null for points recorded before this field
                    existed.
              required:
                - date
                - score
                - score_version
                - panel_version
            - type: 'null'
          description: >-
            Most recent non-preview aggregate score row; null before the first
            scoring pass.
        previous:
          anyOf:
            - type: object
              properties:
                date:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  description: Calendar date, `YYYY-MM-DD` (UTC).
                  format: date
                score:
                  anyOf:
                    - type: number
                    - type: 'null'
                  description: >-
                    AIS Score /100 (the headline score, on the all-market
                    aggregate).
                score_version:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Scoring model that PRODUCED this point — the generation
                    persisted with it when it was scored, never the model the
                    API is running today. Null for points written before
                    per-point generations were persisted.
                panel_version:
                  anyOf:
                    - type: string
                    - type: 'null'
                  description: >-
                    Measurement panel (model set) whose runs this point was
                    scored over. It moves INDEPENDENTLY of `score_version` — a
                    panel rollout re-measures without changing the formula — so
                    two points can name one scoring generation and still not be
                    comparable. Null for points recorded before this field
                    existed.
              required:
                - date
                - score
                - score_version
                - panel_version
            - type: 'null'
          description: The score row before `latest`, if any.
        delta:
          anyOf:
            - type: number
            - type: 'null'
          description: >-
            latest.score − previous.score, 1 dp. Null when either point is
            missing, and null when the subtraction would straddle two scoring
            generations or two measurement panels — see `delta_reason`, and the
            score-pinning rule in the data model guide
            (https://docs.surfais.com/api/data-model).
        delta_reason:
          anyOf:
            - type: string
              enum:
                - score_version_mismatch
                - score_version_unknown
                - panel_version_mismatch
                - panel_version_unknown
            - type: 'null'
          description: >-
            Why `delta` was withheld, when it was. `score_version_mismatch` —
            both points name a scoring generation and they differ;
            `score_version_unknown` — at least one carries none, so they cannot
            be shown to match; `panel_version_mismatch` — the formula is the
            same but the two points were measured by different model sets, which
            is what a panel rollout produces without touching `score_version`;
            `panel_version_unknown` — at least one point carries no panel. The
            scoring generation is tested first, so a pair that moved on both
            reports the `score_version_` case. Null when `delta` is served, and
            null when a point is simply absent (there is nothing to subtract).
        avg_sentiment:
          anyOf:
            - type: number
            - type: 'null'
          description: Mean sentiment (0–100) of mentions on the latest date.
        sov:
          anyOf:
            - type: number
            - type: 'null'
          description: >-
            Share of voice on the latest date, % (0–100): this brand's mentions
            ÷ (its mentions + its competitors' mentions). BOTH halves are
            counted on THIS brand's completed, non-preview runs on that date,
            never off a persisted score row. There is one such row per (brand,
            date), with no record of which own brand it was scored for, and a
            brand is scored once per (own brand, candidate) pairing, so it keeps
            whichever pairing wrote last — which reaches this brand's OWN
            numerator too, since a competitor link is a link between BRANDS and
            an agency may track one of its own brands as another's rival. Either
            way this brand's share moved when a SIBLING brand was scanned. Null
            when nothing was mentioned.
        last_scan_at:
          anyOf:
            - type: string
              description: RFC 3339 timestamp.
              format: date-time
            - type: 'null'
        last_scan_run_id:
          anyOf:
            - type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              description: UUID.
            - type: 'null'
          description: Id of the run `last_scan_at` refers to.
        changed_at:
          anyOf:
            - type: string
              description: RFC 3339 timestamp.
              format: date-time
            - type: 'null'
          description: >-
            Change token — the value a brand's detail publishes as
            `last_scan_changed_at`.
      required:
        - brand_id
        - name
        - domain
        - external_ref
        - latest
        - previous
        - delta
        - delta_reason
        - avg_sentiment
        - sov
        - last_scan_at
        - last_scan_run_id
        - changed_at
    Pagination:
      type: object
      properties:
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: Opaque cursor for the next page; null on the last page.
        has_more:
          type: boolean
      required:
        - next_cursor
        - has_more
    ErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable machine code — see the error list in the description.
            message:
              type: string
            details: {}
          required:
            - code
            - message
        request_id:
          type: string
          description: Echoed in the `X-Request-Id` header.
      required:
        - error
        - request_id
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      bearerFormat: sfs_live_… / sfs_test_…
      description: >-
        A Surfais API key — an organisation key or a partner key. Issued by
        Surfais; shown once. Rotate by creating a new key, then revoking the old
        one.

````