Topolo Docs Topolo Platform
Open workspace

List contact score history

List one contact's lead score changes, newest first (up to 200): each entry has fit, behaviour, total, the change (delta), whether it qualified, the model version, the cause (event:<type>, model:v<n>, recompute or decay) and the rule contributions behind it.

Outcome

List one contact's lead score changes, newest first (up to 200): each entry has fit, behaviour, total, the change (delta), whether it qualified, the model version, the cause (event:<type>, model:v<n>, recompute or decay) and the rule contributions behind it.

Before you start

  • Verify identity and pin the intended organization and environment before discovering the action.
  • Discover a granted Nurture workspace. The application permission is workspace:read; required workspace access is read. A permission alone does not supply a workspace grant.
  • Organization and workspace come from verified context. Select resourceType/resourceId separately from action input; body fields cannot grant a different organization or workspace. The first authorized product action can initialize an identity-only workspace mirror.

Discover the target

topolo whoami --json
topolo actions get app_topolo_nurture.contact_scores.history --detail --json
topolo resources topolo-nurture --json
topolo workspaces list topolo-nurture --json
topolo actions get app_topolo_nurture.contacts.list --detail --json
  • id: Nurture contact id in the selected workspace.

Request

GET /api/contacts/{id}/score/history

Save action input as payload.json. The reviewed plan separates path identifiers, query fields and HTTP body. Set NURTURE_WORKSPACE_ID from granted resource discovery; it is separate from action input.

Inspect and test this action in the signed action console. A test response still requires the verification below.

Input fields

FieldRequiredTypeConstraints
idRequiredstringNurture contact id in the selected workspace. {"minLength":1,"maxLength":64}
limitOptionalinteger{"minimum":1,"maximum":200}

Exact input schema:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}

Effects

  • Reads score history without changing state.

Interpret the response

The returned identifier path is $.history[].id for contact_score. Empty lists do not discover a target.

Confirm entries are ordered newest first.

Exact success schema:

{
  "type": "object",
  "required": [
    "contactId",
    "history"
  ],
  "properties": {
    "contactId": {
      "type": "string"
    },
    "history": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "total",
          "delta",
          "cause",
          "recordedAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "modelVersion": {
            "type": "integer"
          },
          "fit": {
            "type": "number"
          },
          "behaviour": {
            "type": "number"
          },
          "total": {
            "type": "number"
          },
          "delta": {
            "type": "number"
          },
          "qualified": {
            "type": "boolean"
          },
          "cause": {
            "type": "string"
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "ruleId",
                "kind",
                "points"
              ],
              "properties": {
                "ruleId": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "fit",
                    "behaviour"
                  ]
                },
                "points": {
                  "type": "number"
                },
                "events": {
                  "type": "integer"
                },
                "capped": {
                  "type": "boolean"
                }
              }
            }
          },
          "recordedAt": {
            "type": "string"
          }
        }
      }
    }
  }
}

Worked examples

Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Replace synthetic identifiers using credential-scoped discovery. A local success is not evidence of a deployed effect, configured provider or delivered message.

Successful request

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "nct_70cedb4615994c268c8f4c72e750cf13"
}

CLI:

topolo actions validate app_topolo_nurture.contact_scores.history --data @payload.json --json
topolo actions plan app_topolo_nurture.contact_scores.history --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.contact_scores.history --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_nurture.contact_scores.history",
    "input": {
      "id": "nct_70cedb4615994c268c8f4c72e750cf13"
    },
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "contactId": "nct_70cedb4615994c268c8f4c72e750cf13",
  "history": [
    {
      "id": "scr_296d61de02e84fe09b8499bbf964b8d3",
      "modelVersion": 1,
      "fit": 20,
      "behaviour": 60,
      "total": 80,
      "delta": 20,
      "qualified": true,
      "cause": "event:feature_used",
      "reasons": [
        {
          "ruleId": "saas",
          "kind": "fit",
          "points": 20
        },
        {
          "ruleId": "pricing",
          "kind": "behaviour",
          "points": 60,
          "events": 3
        }
      ],
      "recordedAt": "2026-10-01T09:00:00.000Z"
    },
    {
      "id": "scr_7e27d3f44100413ea426a4327fac9126",
      "modelVersion": 1,
      "fit": 20,
      "behaviour": 40,
      "total": 60,
      "delta": 20,
      "qualified": true,
      "cause": "event:feature_used",
      "reasons": [
        {
          "ruleId": "saas",
          "kind": "fit",
          "points": 20
        },
        {
          "ruleId": "pricing",
          "kind": "behaviour",
          "points": 40,
          "events": 2
        }
      ],
      "recordedAt": "2026-10-01T09:00:00.000Z"
    },
    {
      "id": "scr_89f839b0534347cd8961b82215dd140e",
      "modelVersion": 1,
      "fit": 20,
      "behaviour": 20,
      "total": 40,
      "delta": 40,
      "qualified": false,
      "cause": "model:v1",
      "reasons": [
        {
          "ruleId": "saas",
          "kind": "fit",
          "points": 20
        },
        {
          "ruleId": "pricing",
          "kind": "behaviour",
          "points": 20,
          "events": 1
        }
      ],
      "recordedAt": "2026-10-01T09:00:00.000Z"
    }
  ]
}

HTTP 200. Confirm entries are ordered newest first.

Another supported request

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "nct_70cedb4615994c268c8f4c72e750cf13",
  "limit": 1
}

CLI:

topolo actions validate app_topolo_nurture.contact_scores.history --data @payload.json --json
topolo actions plan app_topolo_nurture.contact_scores.history --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.contact_scores.history --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

MCP tool and arguments:

{
  "tool": "topolo_read_action",
  "arguments": {
    "actionId": "app_topolo_nurture.contact_scores.history",
    "input": {
      "id": "nct_70cedb4615994c268c8f4c72e750cf13",
      "limit": 1
    },
    "resourceType": "workspace",
    "resourceId": "<identifier returned by resource discovery>"
  }
}

Captured local response · HTTP 200:

{
  "contactId": "nct_70cedb4615994c268c8f4c72e750cf13",
  "history": [
    {
      "id": "scr_296d61de02e84fe09b8499bbf964b8d3",
      "modelVersion": 1,
      "fit": 20,
      "behaviour": 60,
      "total": 80,
      "delta": 20,
      "qualified": true,
      "cause": "event:feature_used",
      "reasons": [
        {
          "ruleId": "saas",
          "kind": "fit",
          "points": 20
        },
        {
          "ruleId": "pricing",
          "kind": "behaviour",
          "points": 60,
          "events": 3
        }
      ],
      "recordedAt": "2026-10-01T09:00:00.000Z"
    }
  ]
}

HTTP 200. Confirm entries are ordered newest first.

Refused request · not_found

Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.

Input · payload.json:

{
  "id": "nct_missing"
}

CLI:

topolo actions validate app_topolo_nurture.contact_scores.history --data @payload.json --json
topolo actions plan app_topolo_nurture.contact_scores.history --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json

Captured local response · HTTP 404:

{
  "error": {
    "code": "not_found",
    "message": "Contact was not found in this workspace."
  }
}

HTTP 404. Preserve the refusal details and do not claim success.

Verify the result

  • Confirm entries are ordered newest first.

Errors and recovery

  • organization_required (HTTP 403): Select an organization available to the verified caller before choosing a Nurture workspace.
  • permission_denied (HTTP 403): Grant the credential the required Nurture workspace permission.
  • workspace_required (HTTP 409): Create a Nurture workspace, or pass the workspace resource context.
  • invalid_input (HTTP 422): Correct the fields named in error.details using inputSchema, then retry.
  • not_found (HTTP 404): List contacts to find a valid id in this workspace.

Auth or gateway failures may precede this handler. Preserve the exact response shape, error string/code, request id and credential context; no synthetic fixture establishes live credential access.

Recovery boundary

This action does not change service state.

  • Get contact lead score: Read one contact's current lead score (fit, behaviour, total, qualified, per-rule reasons, model version, when it first qualified) with the current MQL threshold and its lead handoffs. score is null until the contact has been scored against a published model.

Evidence

Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Test scenario and capture digests are retained with each fixture.