Check a website’s privacy policy, terms and opt-in page for SMS registration
curl --request POST \
--url http://localhost:8080/sms/site-check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"form": {
"legalName": "<string>",
"tradeName": "<string>",
"taxId": "<string>",
"stockExchange": "<string>",
"stockTicker": "<string>",
"addressStreet": "<string>",
"addressStreet2": "<string>",
"addressCity": "<string>",
"addressState": "<string>",
"addressPostalCode": "<string>",
"websiteUrl": "<string>",
"contactFirstName": "<string>",
"contactLastName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"contactTitle": "<string>",
"description": "<string>",
"samples": [
"<string>"
],
"hasLinks": true,
"hasPhoneNumbers": true,
"dailyVolume": 50000000,
"optInDescription": "<string>",
"optInProofUrls": [
"<string>"
],
"privacyPolicyUrl": "<string>",
"termsUrl": "<string>"
},
"kind": "us_toll_free"
}
'import requests
url = "http://localhost:8080/sms/site-check"
payload = {
"form": {
"legalName": "<string>",
"tradeName": "<string>",
"taxId": "<string>",
"stockExchange": "<string>",
"stockTicker": "<string>",
"addressStreet": "<string>",
"addressStreet2": "<string>",
"addressCity": "<string>",
"addressState": "<string>",
"addressPostalCode": "<string>",
"websiteUrl": "<string>",
"contactFirstName": "<string>",
"contactLastName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"contactTitle": "<string>",
"description": "<string>",
"samples": ["<string>"],
"hasLinks": True,
"hasPhoneNumbers": True,
"dailyVolume": 50000000,
"optInDescription": "<string>",
"optInProofUrls": ["<string>"],
"privacyPolicyUrl": "<string>",
"termsUrl": "<string>"
},
"kind": "us_toll_free"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
form: {
legalName: '<string>',
tradeName: '<string>',
taxId: '<string>',
stockExchange: '<string>',
stockTicker: '<string>',
addressStreet: '<string>',
addressStreet2: '<string>',
addressCity: '<string>',
addressState: '<string>',
addressPostalCode: '<string>',
websiteUrl: '<string>',
contactFirstName: '<string>',
contactLastName: '<string>',
contactEmail: '<string>',
contactPhone: '<string>',
contactTitle: '<string>',
description: '<string>',
samples: ['<string>'],
hasLinks: true,
hasPhoneNumbers: true,
dailyVolume: 50000000,
optInDescription: '<string>',
optInProofUrls: ['<string>'],
privacyPolicyUrl: '<string>',
termsUrl: '<string>'
},
kind: 'us_toll_free'
})
};
fetch('http://localhost:8080/sms/site-check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/sms/site-check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'form' => [
'legalName' => '<string>',
'tradeName' => '<string>',
'taxId' => '<string>',
'stockExchange' => '<string>',
'stockTicker' => '<string>',
'addressStreet' => '<string>',
'addressStreet2' => '<string>',
'addressCity' => '<string>',
'addressState' => '<string>',
'addressPostalCode' => '<string>',
'websiteUrl' => '<string>',
'contactFirstName' => '<string>',
'contactLastName' => '<string>',
'contactEmail' => '<string>',
'contactPhone' => '<string>',
'contactTitle' => '<string>',
'description' => '<string>',
'samples' => [
'<string>'
],
'hasLinks' => true,
'hasPhoneNumbers' => true,
'dailyVolume' => 50000000,
'optInDescription' => '<string>',
'optInProofUrls' => [
'<string>'
],
'privacyPolicyUrl' => '<string>',
'termsUrl' => '<string>'
],
'kind' => 'us_toll_free'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/sms/site-check"
payload := strings.NewReader("{\n \"form\": {\n \"legalName\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"taxId\": \"<string>\",\n \"stockExchange\": \"<string>\",\n \"stockTicker\": \"<string>\",\n \"addressStreet\": \"<string>\",\n \"addressStreet2\": \"<string>\",\n \"addressCity\": \"<string>\",\n \"addressState\": \"<string>\",\n \"addressPostalCode\": \"<string>\",\n \"websiteUrl\": \"<string>\",\n \"contactFirstName\": \"<string>\",\n \"contactLastName\": \"<string>\",\n \"contactEmail\": \"<string>\",\n \"contactPhone\": \"<string>\",\n \"contactTitle\": \"<string>\",\n \"description\": \"<string>\",\n \"samples\": [\n \"<string>\"\n ],\n \"hasLinks\": true,\n \"hasPhoneNumbers\": true,\n \"dailyVolume\": 50000000,\n \"optInDescription\": \"<string>\",\n \"optInProofUrls\": [\n \"<string>\"\n ],\n \"privacyPolicyUrl\": \"<string>\",\n \"termsUrl\": \"<string>\"\n },\n \"kind\": \"us_toll_free\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:8080/sms/site-check")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"form\": {\n \"legalName\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"taxId\": \"<string>\",\n \"stockExchange\": \"<string>\",\n \"stockTicker\": \"<string>\",\n \"addressStreet\": \"<string>\",\n \"addressStreet2\": \"<string>\",\n \"addressCity\": \"<string>\",\n \"addressState\": \"<string>\",\n \"addressPostalCode\": \"<string>\",\n \"websiteUrl\": \"<string>\",\n \"contactFirstName\": \"<string>\",\n \"contactLastName\": \"<string>\",\n \"contactEmail\": \"<string>\",\n \"contactPhone\": \"<string>\",\n \"contactTitle\": \"<string>\",\n \"description\": \"<string>\",\n \"samples\": [\n \"<string>\"\n ],\n \"hasLinks\": true,\n \"hasPhoneNumbers\": true,\n \"dailyVolume\": 50000000,\n \"optInDescription\": \"<string>\",\n \"optInProofUrls\": [\n \"<string>\"\n ],\n \"privacyPolicyUrl\": \"<string>\",\n \"termsUrl\": \"<string>\"\n },\n \"kind\": \"us_toll_free\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/sms/site-check")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"form\": {\n \"legalName\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"taxId\": \"<string>\",\n \"stockExchange\": \"<string>\",\n \"stockTicker\": \"<string>\",\n \"addressStreet\": \"<string>\",\n \"addressStreet2\": \"<string>\",\n \"addressCity\": \"<string>\",\n \"addressState\": \"<string>\",\n \"addressPostalCode\": \"<string>\",\n \"websiteUrl\": \"<string>\",\n \"contactFirstName\": \"<string>\",\n \"contactLastName\": \"<string>\",\n \"contactEmail\": \"<string>\",\n \"contactPhone\": \"<string>\",\n \"contactTitle\": \"<string>\",\n \"description\": \"<string>\",\n \"samples\": [\n \"<string>\"\n ],\n \"hasLinks\": true,\n \"hasPhoneNumbers\": true,\n \"dailyVolume\": 50000000,\n \"optInDescription\": \"<string>\",\n \"optInProofUrls\": [\n \"<string>\"\n ],\n \"privacyPolicyUrl\": \"<string>\",\n \"termsUrl\": \"<string>\"\n },\n \"kind\": \"us_toll_free\"\n}"
response = http.request(request)
puts response.read_body{
"website": {
"url": "<string>",
"loaded": true,
"title": "<string>"
},
"privacyPolicy": {
"url": "<string>",
"source": "given"
},
"terms": {
"url": "<string>",
"source": "given"
},
"optIn": {
"url": "<string>",
"source": "given"
},
"ready": true,
"checks": [
{
"id": "<string>",
"severity": "blocker",
"field": "<string>",
"passed": true,
"message": "<string>",
"fix": "<string>"
}
]
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}AI SMS
Check a website’s privacy policy, terms and opt-in page for SMS registration
Find and check a website’s privacy policy, terms and opt-in page for SMS registration.
POST
/
sms
/
site-check
Check a website’s privacy policy, terms and opt-in page for SMS registration
curl --request POST \
--url http://localhost:8080/sms/site-check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"form": {
"legalName": "<string>",
"tradeName": "<string>",
"taxId": "<string>",
"stockExchange": "<string>",
"stockTicker": "<string>",
"addressStreet": "<string>",
"addressStreet2": "<string>",
"addressCity": "<string>",
"addressState": "<string>",
"addressPostalCode": "<string>",
"websiteUrl": "<string>",
"contactFirstName": "<string>",
"contactLastName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"contactTitle": "<string>",
"description": "<string>",
"samples": [
"<string>"
],
"hasLinks": true,
"hasPhoneNumbers": true,
"dailyVolume": 50000000,
"optInDescription": "<string>",
"optInProofUrls": [
"<string>"
],
"privacyPolicyUrl": "<string>",
"termsUrl": "<string>"
},
"kind": "us_toll_free"
}
'import requests
url = "http://localhost:8080/sms/site-check"
payload = {
"form": {
"legalName": "<string>",
"tradeName": "<string>",
"taxId": "<string>",
"stockExchange": "<string>",
"stockTicker": "<string>",
"addressStreet": "<string>",
"addressStreet2": "<string>",
"addressCity": "<string>",
"addressState": "<string>",
"addressPostalCode": "<string>",
"websiteUrl": "<string>",
"contactFirstName": "<string>",
"contactLastName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"contactTitle": "<string>",
"description": "<string>",
"samples": ["<string>"],
"hasLinks": True,
"hasPhoneNumbers": True,
"dailyVolume": 50000000,
"optInDescription": "<string>",
"optInProofUrls": ["<string>"],
"privacyPolicyUrl": "<string>",
"termsUrl": "<string>"
},
"kind": "us_toll_free"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
form: {
legalName: '<string>',
tradeName: '<string>',
taxId: '<string>',
stockExchange: '<string>',
stockTicker: '<string>',
addressStreet: '<string>',
addressStreet2: '<string>',
addressCity: '<string>',
addressState: '<string>',
addressPostalCode: '<string>',
websiteUrl: '<string>',
contactFirstName: '<string>',
contactLastName: '<string>',
contactEmail: '<string>',
contactPhone: '<string>',
contactTitle: '<string>',
description: '<string>',
samples: ['<string>'],
hasLinks: true,
hasPhoneNumbers: true,
dailyVolume: 50000000,
optInDescription: '<string>',
optInProofUrls: ['<string>'],
privacyPolicyUrl: '<string>',
termsUrl: '<string>'
},
kind: 'us_toll_free'
})
};
fetch('http://localhost:8080/sms/site-check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/sms/site-check",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'form' => [
'legalName' => '<string>',
'tradeName' => '<string>',
'taxId' => '<string>',
'stockExchange' => '<string>',
'stockTicker' => '<string>',
'addressStreet' => '<string>',
'addressStreet2' => '<string>',
'addressCity' => '<string>',
'addressState' => '<string>',
'addressPostalCode' => '<string>',
'websiteUrl' => '<string>',
'contactFirstName' => '<string>',
'contactLastName' => '<string>',
'contactEmail' => '<string>',
'contactPhone' => '<string>',
'contactTitle' => '<string>',
'description' => '<string>',
'samples' => [
'<string>'
],
'hasLinks' => true,
'hasPhoneNumbers' => true,
'dailyVolume' => 50000000,
'optInDescription' => '<string>',
'optInProofUrls' => [
'<string>'
],
'privacyPolicyUrl' => '<string>',
'termsUrl' => '<string>'
],
'kind' => 'us_toll_free'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/sms/site-check"
payload := strings.NewReader("{\n \"form\": {\n \"legalName\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"taxId\": \"<string>\",\n \"stockExchange\": \"<string>\",\n \"stockTicker\": \"<string>\",\n \"addressStreet\": \"<string>\",\n \"addressStreet2\": \"<string>\",\n \"addressCity\": \"<string>\",\n \"addressState\": \"<string>\",\n \"addressPostalCode\": \"<string>\",\n \"websiteUrl\": \"<string>\",\n \"contactFirstName\": \"<string>\",\n \"contactLastName\": \"<string>\",\n \"contactEmail\": \"<string>\",\n \"contactPhone\": \"<string>\",\n \"contactTitle\": \"<string>\",\n \"description\": \"<string>\",\n \"samples\": [\n \"<string>\"\n ],\n \"hasLinks\": true,\n \"hasPhoneNumbers\": true,\n \"dailyVolume\": 50000000,\n \"optInDescription\": \"<string>\",\n \"optInProofUrls\": [\n \"<string>\"\n ],\n \"privacyPolicyUrl\": \"<string>\",\n \"termsUrl\": \"<string>\"\n },\n \"kind\": \"us_toll_free\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:8080/sms/site-check")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"form\": {\n \"legalName\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"taxId\": \"<string>\",\n \"stockExchange\": \"<string>\",\n \"stockTicker\": \"<string>\",\n \"addressStreet\": \"<string>\",\n \"addressStreet2\": \"<string>\",\n \"addressCity\": \"<string>\",\n \"addressState\": \"<string>\",\n \"addressPostalCode\": \"<string>\",\n \"websiteUrl\": \"<string>\",\n \"contactFirstName\": \"<string>\",\n \"contactLastName\": \"<string>\",\n \"contactEmail\": \"<string>\",\n \"contactPhone\": \"<string>\",\n \"contactTitle\": \"<string>\",\n \"description\": \"<string>\",\n \"samples\": [\n \"<string>\"\n ],\n \"hasLinks\": true,\n \"hasPhoneNumbers\": true,\n \"dailyVolume\": 50000000,\n \"optInDescription\": \"<string>\",\n \"optInProofUrls\": [\n \"<string>\"\n ],\n \"privacyPolicyUrl\": \"<string>\",\n \"termsUrl\": \"<string>\"\n },\n \"kind\": \"us_toll_free\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/sms/site-check")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"form\": {\n \"legalName\": \"<string>\",\n \"tradeName\": \"<string>\",\n \"taxId\": \"<string>\",\n \"stockExchange\": \"<string>\",\n \"stockTicker\": \"<string>\",\n \"addressStreet\": \"<string>\",\n \"addressStreet2\": \"<string>\",\n \"addressCity\": \"<string>\",\n \"addressState\": \"<string>\",\n \"addressPostalCode\": \"<string>\",\n \"websiteUrl\": \"<string>\",\n \"contactFirstName\": \"<string>\",\n \"contactLastName\": \"<string>\",\n \"contactEmail\": \"<string>\",\n \"contactPhone\": \"<string>\",\n \"contactTitle\": \"<string>\",\n \"description\": \"<string>\",\n \"samples\": [\n \"<string>\"\n ],\n \"hasLinks\": true,\n \"hasPhoneNumbers\": true,\n \"dailyVolume\": 50000000,\n \"optInDescription\": \"<string>\",\n \"optInProofUrls\": [\n \"<string>\"\n ],\n \"privacyPolicyUrl\": \"<string>\",\n \"termsUrl\": \"<string>\"\n },\n \"kind\": \"us_toll_free\"\n}"
response = http.request(request)
puts response.read_body{
"website": {
"url": "<string>",
"loaded": true,
"title": "<string>"
},
"privacyPolicy": {
"url": "<string>",
"source": "given"
},
"terms": {
"url": "<string>",
"source": "given"
},
"optIn": {
"url": "<string>",
"source": "given"
},
"ready": true,
"checks": [
{
"id": "<string>",
"severity": "blocker",
"field": "<string>",
"passed": true,
"message": "<string>",
"fix": "<string>"
}
]
}{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Loads
form.websiteUrl, finds the privacy policy, terms and opt-in page among its links, and runs the free check’s rules on them. Pages already given in form are checked as they are. Each page comes back with source: given, found or missing. Nothing is saved.Authorizations
Body
application/json
Response
Default Response
Was this page helpful?