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

# GET /v1/score/{domain}

> Read the latest cached score for a company. Never triggers a cold run.

Cached-only score lookup. Returns the freshest stored record, or `404` if Kepler has never scored this domain.

## When to use it

* After a `202` from `POST /v1/score` — once `GET /v1/jobs/{job_id}` reports `status: "complete"`, call this endpoint (or use the `score_url` the job response hands you) to fetch the fresh score. The Python and TypeScript SDKs do this automatically inside `Kepler.score()`.
* To re-render an existing UI without using a cold-call slot — calls to this endpoint count against your cached quota, not cold.

## What it does NOT do

* Trigger a cold run. Even with no cached record, you get `404`, never a 60-second wait.
* Respect the freshness window. It returns the latest record regardless of age. If you care about freshness, check the `scored_at` timestamp yourself or use `POST /v1/score`.

## Example

```bash theme={null}
curl https://api.keplerinsights.us/v1/score/stripe.com \
  -H "X-API-Key: ki_live_..."
```

```json theme={null}
{
  "domain": "stripe.com",
  "scored_at": "2026-05-12T14:30:00Z",
  "ki_rating": "KI-1+",
  "composite_score": 78.2,
  "scale_premium": 6.4,
  "buckets": { ... },
  "rank": { "percentile": 99, "cohort_size": 541 },
  "x_kepler": {
    "tier": "growth",
    "cache_status": "cached",
    "freshness_window_hours": 6
  }
}
```


## OpenAPI

````yaml GET /v1/score/{domain}
openapi: 3.1.0
info:
  title: Kepler Insights API
  version: 1.0.0
  summary: Curated company-scoring intelligence over a 67-signal engine.
  description: >
    The Kepler Insights API exposes a curated subset of the Kepler scoring
    engine

    over a stable REST surface. Every score is a composite over 67 signals
    organized

    into 4 buckets (Team & Structure, Market Position, Momentum & Tailwinds,

    Financial Health), with a separate scale premium that lifts established

    companies whose underlying fundamentals justify a higher tier.


    **Authentication.** All requests require a single header: `X-API-Key`.

    Keys are issued from the developer console at
    `https://console.keplerinsights.us`.


    **Sandbox.** Test keys prefixed `ki_test_` accept only the four canned

    domains (`acme.test`, `unicorn.test`, `struggling.test`, `cohort.test`),

    never invoke fetchers, and return deterministic responses tagged with

    `mode: sandbox`. Live keys prefixed `ki_live_` reject test domains and

    run against the real engine.


    **Cold vs cached.** `GET /v1/score/{domain}` is always cached (404 if no

    recent record exists). `POST /v1/score` decides per-call based on your

    tier's freshness window: a fresh record returns inline (`200`), a stale

    or missing one queues a cold pipeline run and returns `202` with a

    `job_id` to poll. Cold spend is bounded by per-tier monthly caps +

    circuit breakers.
  contact:
    name: Kepler Insights API support
    email: noah@keplerinsights.us
  license:
    name: Proprietary
servers:
  - url: https://api.keplerinsights.us
    description: Production
security:
  - apiKey: []
tags:
  - name: scoring
    description: Score a company and retrieve the latest result.
  - name: history
    description: Time-series of past scoring runs for a single company.
  - name: company
    description: Per-company analytics (cohort, confidence).
  - name: universe
    description: Distribution + movers across the full scored universe.
  - name: meta
    description: Signal manifest + caller usage + async job tracking.
paths:
  /v1/score/{domain}:
    get:
      tags:
        - scoring
      summary: Get latest cached score for a company.
      description: |
        Cached-only path. Returns the most recent stored record for `domain`
        (no cold-run trigger). 404 if no record exists. Use this after a job
        from `POST /v1/score` reaches `status: complete` to fetch the actual
        scorecard.
      operationId: getScore
      parameters:
        - $ref: '#/components/parameters/DomainPath'
      responses:
        '200':
          description: Latest score.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScoreResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: No score on file. Trigger one with `POST /v1/score`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    DomainPath:
      in: path
      name: domain
      required: true
      schema:
        type: string
      example: stripe.com
      description: Bare hostname. Strips a leading `www.` and any URL scheme automatically.
  schemas:
    ScoreResponse:
      type: object
      required:
        - domain
        - scored_at
        - ki_rating
        - composite_score
        - buckets
      properties:
        mode:
          type: string
          description: Present and = `sandbox` only with a ki_test_ key.
        domain:
          type: string
        scored_at:
          type: string
          format: date-time
        ki_rating:
          type: string
          enum:
            - KI-1+
            - KI-1
            - KI-2+
            - KI-2
            - KI-3
            - KI-4
            - KI-5
        composite_score:
          type: number
          format: float
          minimum: 0
          maximum: 100
        scale_premium:
          type: number
          format: float
          minimum: 0
          maximum: 12
          description: >-
            Up to ~12 pts for established mega-caps; up to ~6 pts for growth
            profile.
        buckets:
          $ref: '#/components/schemas/Buckets'
        rank:
          $ref: '#/components/schemas/Rank'
        x_kepler:
          $ref: '#/components/schemas/XKeplerMeta'
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: unauthorized
        message:
          type: string
        reason:
          type: string
          description: Additional context for rate-limit responses.
    Buckets:
      type: object
      description: The 4 KI buckets. Each is 0–100.
      properties:
        team_structure:
          type: number
          format: float
          minimum: 0
          maximum: 100
        market_position:
          type: number
          format: float
          minimum: 0
          maximum: 100
        momentum_tailwinds:
          type: number
          format: float
          minimum: 0
          maximum: 100
        financial_health:
          type: number
          format: float
          minimum: 0
          maximum: 100
    Rank:
      type: object
      properties:
        percentile:
          type: integer
          minimum: 0
          maximum: 100
        cohort_size:
          type: integer
          minimum: 0
    XKeplerMeta:
      type: object
      description: Caller-facing metadata. Stable across versions.
      properties:
        tier:
          type: string
          enum:
            - free
            - starter
            - growth
            - scale
            - enterprise
        cache_status:
          type: string
          enum:
            - cached
          description: >-
            Today only `cached` is emitted — fresh cold-pipeline results are
            written to cache before the response is constructed. The enum is
            reserved for a future sync-cold response shape.
        freshness_window_hours:
          type: number
  responses:
    Unauthorized:
      description: Missing or invalid `X-API-Key`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        Live keys are prefixed `ki_live_`, test keys `ki_test_`. Issue + revoke

        keys at https://console.keplerinsights.us. Never embed a key in
        client-side

        code — every endpoint is backend-to-API only.

````