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

# How the unified company score is computed for this account

> The pillars behind `score` on company rows (fit, intent, persona, activity), their effective weights, the active ICP Builder and Intent Builder profiles (each company gets its best match among them), the engagement model and a short reading guide. Meant for explaining the score to users; per-company reasons live on `/trackers/{code}/companies/{id}/score`.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/scoring-model
openapi: 3.1.0
info:
  title: Leadinfo Data API
  version: 0.1.0
  x-logo:
    url: https://asset.leadinfo.com/assets/email_logo.png
servers:
  - url: https://data.leadinfo.com
    description: Production
security: []
paths:
  /v1/scoring-model:
    get:
      tags:
        - profiles
      summary: How the unified company score is computed for this account
      description: >-
        The pillars behind `score` on company rows (fit, intent, persona,
        activity), their effective weights, the active ICP Builder and Intent
        Builder profiles (each company gets its best match among them), the
        engagement model and a short reading guide. Meant for explaining the
        score to users; per-company reasons live on
        `/trackers/{code}/companies/{id}/score`.
      operationId: get_scoring_model_v1_scoring_model_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScoringModel'
        '401':
          description: Invalid credentials.
      security:
        - HTTPBearer: []
components:
  schemas:
    ScoringModel:
      properties:
        weights:
          additionalProperties:
            type: integer
          type: object
          title: Weights
          description: Configured weights before renormalisation.
        pillars:
          items:
            $ref: '#/components/schemas/ScoringPillarInfo'
          type: array
          title: Pillars
        icp_profile:
          anyOf:
            - $ref: '#/components/schemas/ProfileOut'
            - type: 'null'
          description: The first active ICP Builder profile; see icp_profiles.
        intent_profile:
          anyOf:
            - $ref: '#/components/schemas/ProfileOut'
            - type: 'null'
          description: The first active Intent Builder profile; see intent_profiles.
        icp_profiles:
          items:
            $ref: '#/components/schemas/ProfileOut'
          type: array
          title: Icp Profiles
        intent_profiles:
          items:
            $ref: '#/components/schemas/ProfileOut'
          type: array
          title: Intent Profiles
        engagement:
          $ref: '#/components/schemas/EngagementModel'
        reading_guide:
          items:
            type: string
          type: array
          title: Reading Guide
      type: object
      required:
        - weights
        - pillars
        - engagement
        - reading_guide
      title: ScoringModel
    ScoringPillarInfo:
      properties:
        pillar:
          type: string
          enum:
            - fit
            - intent
            - engagement
            - people
          title: Pillar
        source:
          type: string
          title: Source
          description: icp_builder for fit; intent_builder; signals; persona_builder.
        weight:
          type: integer
          title: Weight
          description: >-
            Points this pillar can add to the 0-100 score once absent pillars
            are renormalised.
        description:
          type: string
          title: Description
      type: object
      required:
        - pillar
        - source
        - weight
        - description
      title: ScoringPillarInfo
    ProfileOut:
      properties:
        id:
          type: integer
          title: Id
        kind:
          type: string
          enum:
            - icp
            - intent
            - persona
          title: Kind
        customer_id:
          type: integer
          title: Customer Id
        name:
          type: string
          title: Name
        rules:
          items:
            anyOf:
              - $ref: '#/components/schemas/ProfileRule'
              - $ref: '#/components/schemas/PersonaRule'
          type: array
          title: Rules
        is_active:
          type: boolean
          title: Is Active
          description: >-
            Whether the profile scores; with several active profiles each
            company gets its best match. Always false for personas, which all
            count.
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - kind
        - customer_id
        - name
        - rules
        - is_active
      title: ProfileOut
    EngagementModel:
      properties:
        window_days:
          type: integer
          title: Window Days
        half_life_days:
          type: integer
          title: Half Life Days
        tiers:
          additionalProperties:
            type: integer
          type: object
          title: Tiers
      type: object
      required:
        - window_days
        - half_life_days
        - tiers
      title: EngagementModel
    ProfileRule:
      properties:
        field:
          type: string
          enum:
            - name
            - domain
            - country
            - city
            - province
            - postal_code
            - employee_range
            - branch_local
            - branch_international
            - legal_form
            - description
            - region
            - employees
            - branch_code
            - sales_volume
            - founded_year
            - sessions
            - pages
            - duration
            - unique_visitors
            - active_days
            - visitors
            - persona_visitors
            - form_submissions
            - leadbot_submissions
            - sessions_total
            - pages_total
            - duration_total
            - is_new
            - is_returning
            - lead_score
            - is_ai_agent
            - in_crm
            - is_shared_network
            - engagement_score
            - icp_score
            - intent_score
            - score
            - first_seen
            - last_seen
            - source
            - medium
            - campaign
            - term
            - content
            - referrer
            - referrer_host
            - click_provider
            - paid_source
            - organic_source
            - social_source
            - ai_source
            - url
            - page_title
            - tag
          title: Field
          description: >-
            Intent rules match the page path for url (e.g. /pricing, without
            domain or query string) or the page title for page_title.
        operator:
          type: string
          enum:
            - equals
            - not_equals
            - contains
            - not_contains
            - starts_with
            - not_starts_with
            - ends_with
            - not_ends_with
            - in
            - not_in
            - all
            - greater_than
            - greater_than_or_equal
            - less_than
            - less_than_or_equal
            - between
            - not_between
            - is_known
            - is_unknown
            - less_than_x_units_ago
            - more_than_x_units_ago
          title: Operator
        value:
          anyOf:
            - {}
            - type: 'null'
          title: Value
        unit:
          anyOf:
            - type: string
              enum:
                - hours
                - days
                - weeks
                - months
            - type: 'null'
          title: Unit
        weight:
          type: integer
          maximum: 100
          minimum: 1
          title: Weight
          description: >-
            Intent only: how much a match contributes; one matched rule of
            weight 10 gives intent about 50, two about 75. Not editable yet:
            every rule counts 10. ICP rules carry no weight: an ICP matches when
            all its rules match.
          default: 10
        label:
          anyOf:
            - type: string
              maxLength: 80
            - type: 'null'
          title: Label
          description: Shown in score explanations, e.g. 'Benelux' or 'Pricing page'.
      type: object
      required:
        - field
        - operator
      title: ProfileRule
    PersonaRule:
      properties:
        field:
          type: string
          enum:
            - job_title
            - country
          title: Field
          description: >-
            job_title matches the person's job title, country their ISO-2
            country.
        operator:
          type: string
          enum:
            - in_array
            - contains
            - starts_with
            - not_in_array
          title: Operator
          description: >-
            job_title: in_array (exact titles, case-insensitive), contains (any
            of the words), starts_with (any of the prefixes) or not_in_array;
            country: in_array.
        value:
          items:
            type: string
          type: array
          title: Value
          description: >-
            Titles, words or ISO-2 country codes; a comma-separated string is
            split.
        label:
          anyOf:
            - type: string
              maxLength: 80
            - type: 'null'
          title: Label
      type: object
      required:
        - field
        - operator
        - value
      title: PersonaRule
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.