Certificate URL

Each Certificate URL acts as the endpoint to a simple RPC API. The HTTP methods listed in this section are used to interact with an individual certificate. Certificate URLs follow a common format, though the format of a certificate ID depends on how the certificate was issued.

https://cert.trustedform.com/eb9fc4dd9bed9ad451a5648946cf4bf09b5bb947

Run Certificate Operations

The TrustedForm Certificate API is able to perform multiple operations based on the parameters sent in the request. Each operation is demonstrated in the request body documentation. The overall outcome of the operations is revealed by the outcome property. Best practice is to base your purchase decision on this property.

Separate documentation about the parameters and results of each operation is available in the Operations reference. and can be used alone or in tandem with another operation. The match_lead operation is required when running the retain operation.

SecurityBasic
Request
path Parameters
cert_id
required
string <= 255 characters

The certificate ID format varies depending on the type of certificate. Certificate ID length will not exceed 255 characters.

Example: eb9fc4dd9bed9ad451a5648946cf4bf09b5bb947
header Parameters
Content-Type
required
string

application/json

Api-Version
string
If your account is configured to use an earlier api-version,
optionally include this header to override the

default behavior and force usage of v4.0. Defaults to your currently
configured API version, visible in
[your settings](https://app.trustedform.com/settings).
Example: 4.0
Request Body schema: application/json
optional
MatchLeadEmailParameters (object) or MatchLeadPhoneParameters (object) or MatchLeadPhoneEmailParameters (object) (MatchLeadParameters)
object (RetainParameters)
Though both `retain` parameters are optional, we strongly recommend
using them. Doing so will record additional

metadata on your stored certificate which is often of use down the road.
object (InsightsParameters)
Request individual Insights data points (`properties`) to be returned
and terms for which to scan for in a

certificate session replay.
object (VerifyParameters)

The advertiser_name parameter is optional

The advertiser_name parameter only applies to the One to One Consent value (returned as one_to_one). It has no effect on any other values returned by the Verify call.

Responses
200

OK

400

Bad Request

401

Incorrect API key

402

Account is inactive or out of funds

403

Uavailable operation requested

404

TrustedForm certificate has expired or could not be found

405

Attempted to claim a 'sandboxed' certificate

422

Unprocessable Entity

post/{cert_id}
Request samples
application/json
{
  • "match_lead": {
    • "email": "janedoe@gmail.com"
    },
  • "retain": {
    • "reference": "1128238382829",
    • "vendor": "Acme Co."
    },
  • "insights": {
    • "properties": [
      • "approx_ip_geo",
      • "domain",
      • "form_input_method",
      • "ip",
      • "seconds_on_page"
      ],
    • "scans": {
      • "forbidden": [
        • "free",
        • "ipad"
        ],
      • "required": [
        • "home security system"
        ]
      }
    },
  • "verify": {
    • "advertiser_name": "Acme Inc."
    }
}
Response samples
application/json
{
  • "outcome": "success",
  • "reason": "null",
  • "match_lead": {
    • "email": "janedoe@gmail.com",
    • "phone": "51125551212",
    • "result": {
      • "email_match": true,
      • "phone_match": true,
      • "success": true
      }
    },
  • "retain": {
    • "reference": "1128238382829",
    • "result": {
      • "expires_at": "2023-07-18T12:03:52Z",
      • "masked_cert_url": "string",
      • "previously_retained": "false"
      },
    • "vendor": "Acme Co."
    },
  • "insights": {
    • "properties": {
      • "approx_ip_geo": {
        • "city": "Austin",
        • "country_code": "US",
        • "lat": 39.8858,
        • "lon": -75.3654,
        • "postal_code": "78704",
        • "state": "TX",
        • "time_zone": "America/Chicago"
        },
      • "bot_detected": false,
      • "domain": "lendingtree.com",
      • "form_input_method": [
        • "typing",
        • "autofill"
        ],
      • "ip": "192.168.1.1",
      • "seconds_on_page": 142
      },
    • "scans": {
      • "forbidden": [
        • "free",
        • "ipad"
        ],
      • "required": [
        • "home security system"
        ],
      • "result": {
        • "forbidden": {
          • "found": [ ],
          • "not_found": [
            • "ipad",
            • "free"
            ]
          },
        • "required": {
          • "found": [
            • "home security system"
            ],
          • "not_found": [ ]
          },
        • "success": true
        }
      }
    },
  • "verify": {
    • "languages": [
      • {
        • "text": "By clicking on the 'Get Rates' button below, I consent to be contacted"
        }
      ],
    • "result": {
      • "language_approved": true,
      • "one_to_one": true,
      • "success": true
      }
    }
}