---
title: "Retrieve Certificate Insights"
method: POST
path: "/{cert_id_}"
tags: ["Retrieving Insights"]
---

# Retrieve Certificate Insights

`POST /{cert_id_}`

Account holders using TrustedForm Insights who are receiving certified leads can use the following request to retrieve TrustedForm metadata for the lead contained in a TrustedForm certificate.

## Path parameters

- `cert_id_` string, required

## Request body

- DataServiceRequest
  - `email` string — When using the data service on a certificate, you may pass an optional email (or email_1, email_2, etc) parameter. TrustedForm will extract the email value and perform fingerprinting against the available data.
  - `fingerprint` string — Calculated lead fingerprint values using the email and phone number received in the lead data accompanying the certificate. Each fingerprint value is an SHA1 hash of an email or phone value. Each fingerprint value should be provided in a fingerprint parameter. If none of the fingerprints you provide match a fingerprint collected on the certificate, then "none of the provided fingerprints match" will be included in the warnings field and outcome will be "failure". This indicates that the lead data collected on the form does not match the lead data that you received.
  - `forbidden_scan_terms` string — Use this parameter to perform a scan of the page for text that must not be present. TrustedForm will then perform a case and whitespace insensitive search for the string. If the string is found in the HTML document, then "string found in snapshot" will be included in the warnings key of the response and the outcome with be "failure". This parameter may be included multiple times
  - `forbidden_scan_terms[]` string[] — Use this parameter to perform a scan of the page for text that must not be present. TrustedForm will then perform a case and whitespace insensitive search for the string. If the string is found in the HTML document, then "string found in snapshot" will be included in the warnings key of the response and the outcome with be "failure". This parameter may be included multiple times
  - `phone_1` string — When using the data service on a certificate, you may pass an optional phone (or phone_1, phone_2, etc) parameter. TrustedForm will extract the phone number value and perform fingerprinting against the available data.
  - `required_scan_terms` string — Use this parameter to perform a scan of the page for required text. TrustedForm will then perform a case and whitespace insensitive search for the string. If the string is not found in the HTML document, then "string not found in snapshot" will be included in the warnings key of the response and the outcome will be "failure". This parameter may be included multiple times
  - `required_scan_terms[]` string[] — Use this parameter to perform a scan of the page for required text. TrustedForm will then perform a case and whitespace insensitive search for the string. If the string is not found in the HTML document, then "string not found in snapshot" will be included in the warnings key of the response and the outcome will be "failure". This parameter may be included multiple times
  - `scan_delimiter` string — You can provide your own delimiter to use when wrapping wildcards or tempate variablies. Your choice of delimiter must be homogeneous (i.e. the beginning and end are the same character(s)), such as `|`, `==`, or `|||`.

## Response `200`

Success

- DataServiceConsentAndDataResponse — Data Service Consent+Data Response
  - `cert` DataServiceCert, required
    - `age_seconds` integer, required — Number of seconds since the last user interaction with the certificate
    - `approx_ip_geo` object, nullable, required — Approximate geolocation based on IP
      - `city` string, nullable — City Name
      - `country_code` string, nullable — Country Code
      - `lat` number, nullable — Latitude
      - `lon` number, nullable — Longitude
      - `postal_code` string, nullable — Mailing address postal code
      - `state` string, nullable — State/Province or Political Subdivision abbreviation
      - `time_zone` string, nullable — Timezone name
    - `browser` object, nullable, required — Browser parsed from the user-agent, when known
      - `full` string — A human-friendly version of the browser parsed from the user-agent
      - `name` string — Browser name
      - `version` object — Browser version
        - `full` string — A String containing the version
        - `major` string — A String containing the major version
        - `minor` string — A String containing the minor version
        - `patch` string — A String containing the patch version
    - `created_at` string, date-time, required — The UTC ISO8601 formatted date and time when the TrustedForm script was loaded
    - `domain` string, nullable, required — The domain of the page url
    - `event_duration_ms` integer, nullable, required — The time in milliseconds between when the script was loaded and when the most recent event was received
    - `expires_at` string, date-time, required — The UTC ISO8601 formatted date and time when the claim period for the certificate will expire
    - `form_input_method` string[], nullable, required — The detected input method or methods the consumer used to fill out the form * `autofill`: The form was filled out using browser autofill. * `paste`: The form was filled out pasting text. * `typing`: The form was filled out typing.
    - `ip` string, nullable, required — The consumer's public IP address
    - `is_framed` boolean, nullable, required — A boolean indicating that the form was displayed within an iframe
    - `is_mobile` boolean, nullable, required — A boolean indicating that the form was filled out on a mobile device or tablet, based on user-agent
    - `kpm` number, nullable, required — Approximate calculated words per minute
    - `operating_system` object, nullable, required — Operating system information parsed from the user-agent, when known
      - `full` string — A human-friendly version of the operating system information parsed from the user-agent
      - `name` string — Operating system name
      - `version` object — Operating system version
        - `full` string — A String containing the version
        - `major` string — A String containing the major version
        - `minor` string — A String containing the minor version
        - `patch` string — A String containing the patch version
    - `page_id` string, nullable, required — The account based unique page id
    - `page_url` string, url, nullable, required — The URL of the page hosting the TrustedForm script
    - `parent_page_url` string, url, nullable, required — The parent URL of the page hosting the TrustedForm script, if framed
    - `user_agent` string, nullable, required — The consumer's browser user-agent
    - `wpm` number, nullable, required — Approximate calculated key presses per minute
  - `fingerprints` Fingerprints, required
    - `matching` string[] — Requested fingerprints that match fingerprints collected with the certificate
    - `not_matching` string[] — Fingerprints that do not match fingerprints collected with the certificate
  - `is_masked` boolean, required — A boolean indicating whether the certificate is masked
  - `outcome` 'success' | 'failure' | 'error', required — The result of the attempt to verify consent. Success indicates that the request did not generate any warnings related to consent verification. Failure indicates that the requests generated warnings because no fingerprints matched, forbidden scan terms were found or required scan terms were missing. Error indicates that the request was not successfull and the request should be reviewed and potentially retried.
  - `reason` string — Provides an explanation for failure or error. Only used for `outcome` of `failure` or `error`.
  - `scans` PageScans, required
    - `forbidden_found` string[], required — Requested required text found on page
    - `forbidden_not_found` string[], required — Requested required text not found on page
    - `required_found` string[], required — Requested required text found on page
    - `required_not_found` string[], required — Requested required text not found on page
  - `warnings` string[] — An array of strings indicating possible issues with the certificate * `none of the provided fingerprints match`: No fingerprints matched. * `string not found in snapshot`: A required page scan text was not found. * `string found in snapshot`: A forbidden page scan text was found.

## Other responses

- `400` — Malformed Certificate URL
- `401` — Unauthorized
- `402` — Account is inactive or out of funds
- `404` — TrustedForm certificate has expired or could not be found
- `405` — Attempted to claim a 'sandboxed' certificate
- `422` — The certificate has been claimed too many times

---

[API](https://skmtc.net/activeprospect/apis/trustedform-claiming-api.md) · [All operations](https://skmtc.net/activeprospect/apis/trustedform-claiming-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/activeprospect/trustedform-claiming-api/versions/d6b59eb89306/schema)
