Generate Ping URL
curl --request GET \
--url https://cert.trustedform.com/{cert_id}/ping_urlimport requests
url = "https://cert.trustedform.com/{cert_id}/ping_url"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cert.trustedform.com/{cert_id}/ping_url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cert.trustedform.com/{cert_id}/ping_url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cert.trustedform.com/{cert_id}/ping_url"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cert.trustedform.com/{cert_id}/ping_url")
.asString();require 'uri'
require 'net/http'
url = URI("https://cert.trustedform.com/{cert_id}/ping_url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"url": "https://ping.staging.trustedform.com/0.S1e4PrusJ8cXX47dWF_-yCn48kqaFkw4wf_8Ek8T8-uQrpvXakULNXFG0I5DpJVGU7FBmmjq.3UU-IBw5F8Ophz5cf2fzRw.IYJOyb_I7vkQbT3rDVm6wQ"
}{
"errors": {
"detail": "Malformed certificate id"
},
"message": "Malformed certificate id",
"outcome": "error",
"reason": "Malformed certificate id"
}Ping
Generate Ping URL
deprecated
When a lead vendor only provides a TrustedForm Certificate URL, you can
generate a new Ping URL for the Certificate. Simply append /ping_url to
the Certificate URL and perform an unauthenticated GET.
Each call to this endpoint will generate a new Ping URL, they are all equally valid.
A successful call to this endpoint does not guarantee that the Certificate URL you have provided is valid and unexpired. The standard Certificate expiration window still applies.
GET
/
{cert_id}
/
ping_url
Generate Ping URL
curl --request GET \
--url https://cert.trustedform.com/{cert_id}/ping_urlimport requests
url = "https://cert.trustedform.com/{cert_id}/ping_url"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cert.trustedform.com/{cert_id}/ping_url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cert.trustedform.com/{cert_id}/ping_url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://cert.trustedform.com/{cert_id}/ping_url"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://cert.trustedform.com/{cert_id}/ping_url")
.asString();require 'uri'
require 'net/http'
url = URI("https://cert.trustedform.com/{cert_id}/ping_url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"url": "https://ping.staging.trustedform.com/0.S1e4PrusJ8cXX47dWF_-yCn48kqaFkw4wf_8Ek8T8-uQrpvXakULNXFG0I5DpJVGU7FBmmjq.3UU-IBw5F8Ophz5cf2fzRw.IYJOyb_I7vkQbT3rDVm6wQ"
}{
"errors": {
"detail": "Malformed certificate id"
},
"message": "Malformed certificate id",
"outcome": "error",
"reason": "Malformed certificate id"
}