Submit a contact request from a generated customer website.
curl --request POST \
--url https://api.leadping.ai/contact/website \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'Name=<string>' \
--data 'Email=<string>' \
--data 'Phone=<string>' \
--data 'Message=<string>' \
--data SmsConsent=true \
--data 'ReturnUrl=<string>' \
--data 'CompanyWebsite=<string>'import requests
url = "https://api.leadping.ai/contact/website"
payload = {
"Name": "<string>",
"Email": "<string>",
"Phone": "<string>",
"Message": "<string>",
"SmsConsent": "true",
"ReturnUrl": "<string>",
"CompanyWebsite": "<string>"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/contact/website");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddParameter("Name", "<string>");
request.AddParameter("Email", "<string>");
request.AddParameter("Phone", "<string>");
request.AddParameter("Message", "<string>");
request.AddParameter("SmsConsent", "true");
request.AddParameter("ReturnUrl", "<string>");
request.AddParameter("CompanyWebsite", "<string>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.leadping.ai/contact/website")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("Name=%3Cstring%3E&Email=%3Cstring%3E&Phone=%3Cstring%3E&Message=%3Cstring%3E&SmsConsent=true&ReturnUrl=%3Cstring%3E&CompanyWebsite=%3Cstring%3E")
.asString();const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
Name: '<string>',
Email: '<string>',
Phone: '<string>',
Message: '<string>',
SmsConsent: 'true',
ReturnUrl: '<string>',
CompanyWebsite: '<string>'
})
};
fetch('https://api.leadping.ai/contact/website', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/contact/website"
payload := strings.NewReader("Name=%3Cstring%3E&Email=%3Cstring%3E&Phone=%3Cstring%3E&Message=%3Cstring%3E&SmsConsent=true&ReturnUrl=%3Cstring%3E&CompanyWebsite=%3Cstring%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/contact/website",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "Name=%3Cstring%3E&Email=%3Cstring%3E&Phone=%3Cstring%3E&Message=%3Cstring%3E&SmsConsent=true&ReturnUrl=%3Cstring%3E&CompanyWebsite=%3Cstring%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}Contact
Submit a contact request from a generated customer website.
Delivers the inquiry to the generated website’s provisioned support address, then redirects the visitor to the site’s confirmation state.
POST
/
contact
/
website
Submit a contact request from a generated customer website.
curl --request POST \
--url https://api.leadping.ai/contact/website \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'Name=<string>' \
--data 'Email=<string>' \
--data 'Phone=<string>' \
--data 'Message=<string>' \
--data SmsConsent=true \
--data 'ReturnUrl=<string>' \
--data 'CompanyWebsite=<string>'import requests
url = "https://api.leadping.ai/contact/website"
payload = {
"Name": "<string>",
"Email": "<string>",
"Phone": "<string>",
"Message": "<string>",
"SmsConsent": "true",
"ReturnUrl": "<string>",
"CompanyWebsite": "<string>"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/contact/website");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddParameter("Name", "<string>");
request.AddParameter("Email", "<string>");
request.AddParameter("Phone", "<string>");
request.AddParameter("Message", "<string>");
request.AddParameter("SmsConsent", "true");
request.AddParameter("ReturnUrl", "<string>");
request.AddParameter("CompanyWebsite", "<string>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.post("https://api.leadping.ai/contact/website")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("Name=%3Cstring%3E&Email=%3Cstring%3E&Phone=%3Cstring%3E&Message=%3Cstring%3E&SmsConsent=true&ReturnUrl=%3Cstring%3E&CompanyWebsite=%3Cstring%3E")
.asString();const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
Name: '<string>',
Email: '<string>',
Phone: '<string>',
Message: '<string>',
SmsConsent: 'true',
ReturnUrl: '<string>',
CompanyWebsite: '<string>'
})
};
fetch('https://api.leadping.ai/contact/website', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/contact/website"
payload := strings.NewReader("Name=%3Cstring%3E&Email=%3Cstring%3E&Phone=%3Cstring%3E&Message=%3Cstring%3E&SmsConsent=true&ReturnUrl=%3Cstring%3E&CompanyWebsite=%3Cstring%3E")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/contact/website",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "Name=%3Cstring%3E&Email=%3Cstring%3E&Phone=%3Cstring%3E&Message=%3Cstring%3E&SmsConsent=true&ReturnUrl=%3Cstring%3E&CompanyWebsite=%3Cstring%3E",
CURLOPT_HTTPHEADER => [
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}Body
application/x-www-form-urlencoded
Honeypot field that must remain empty for legitimate submissions.
Response
See Other
⌘I

