---
title: "Compute Protect Trust Index Score"
method: POST
path: "/protect/compute"
tags: ["plaid"]
---

# Compute Protect Trust Index Score

`POST /protect/compute`

Use this endpoint to compute a Protect Trust Index score and retrieve fraud attributes

## Request body

- ProtectComputeRequest — Request object for /protect/compute
  - `client_id` string — Your Plaid API `client_id`. The `client_id` is required and may be provided either in the `PLAID-CLIENT-ID` header or as part of a request body.
  - `secret` string — Your Plaid API `secret`. The `secret` is required and may be provided either in the `PLAID-SECRET` header or as part of a request body.
  - `model` string, required — The name of the Trust Index model to use for calculating the Trust Index Score, with an optional version suffix. Examples include `ti-link-session-2.0`, `ti-identity-2.0`, `ti-link-session`, and `ti-identity`. If the version suffix is not included, the most recent version of that model will be used. The model specified may require certain fields within `model_inputs`. For example, `ti-link-session-2.0` requires the `link` field to be provided in `model_inputs`.
  - `user` ProtectUser, required — Represents an end user for /protect/compute requests.
    - `user_id` string — The Plaid User ID returned from a previous call to `/user/create`. This or `client_user_id` can be provided, not both.
    - `client_user_id` string — A unique ID representing the end user. Maximum of 128 characters. Typically this will be a user ID number from your application. Personally identifiable information, such as an email address or phone number, should not be used in the `client_user_id`.
  - `model_inputs` ProtectModelInputs, nullable — Inputs for the Trust Index model. The `link` field is required for any link session model type.
    - `link` ProtectLinkModelInputs, nullable — Inputs for link session Trust Index models.
      - `link_session_id` string, required — A unique identifier for the Link session, used to compute a Trust Index score and fraud attributes.
      - `require_extracted_data` boolean — Whether to wait for data to be extracted before computing and returning a score. If set to `true` and `/protect/compute` is called before data has been extracted, an error will be returned indicating that data has not yet been extracted. If set to `false`, a score will be computed and returned regardless of whether data has been extracted. If `false` and data has been extracted, extracted data will still be included in the score computation. Defaults to `false`.

## Response `200`

OK

- ProtectComputeResponse — Response object for /protect/compute
  - `trust_index` TrustIndex, nullable — Represents a calculate Trust Index Score.
    - `score` integer, required — The overall trust index score.
    - `model` string, required — The versioned name of the Trust Index model used for scoring.
    - `subscores` TrustIndexSubscores, nullable, required — Contains sub-score metadata.
      - `device_and_connection` TrustIndexSubscore, nullable — Represents Trust Index Subscore.
        - `score` integer, required — The subscore score.
      - `bank_account_insights` TrustIndexSubscore, nullable — Represents Trust Index Subscore.
        - `score` integer, required — The subscore score.
  - `fraud_attributes` FraudAttributes, nullable — Event fraud attributes as an arbitrary set of key-value pairs.
  - `request_id` string, required — A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.

## Changes

- **2026-02-17** `cd6c86bfb523` — 1 info
  - endpoint added
- **2024-02-21** `5de70cc1e6ca` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/plaid/apis/the-plaid-api/changes/protect/compute/post.md)

---

[API](https://skmtc.dev/plaid/apis/the-plaid-api.md) · [All operations](https://skmtc.dev/plaid/apis/the-plaid-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/plaid/the-plaid-api/revisions/cd6c86bfb523/schema)
