curl --request POST \
--url https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"phone_1": "5125551212"
}
'import requests
url = "https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping"
payload = {
"email": "user@example.com",
"phone_1": "5125551212"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'user@example.com', phone_1: '5125551212'})
};
fetch('https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping', 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://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping",
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([
'email' => 'user@example.com',
'phone_1' => '5125551212'
]),
CURLOPT_HTTPHEADER => [
"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 := "https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping"
payload := strings.NewReader("{\n \"email\": \"user@example.com\",\n \"phone_1\": \"5125551212\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"user@example.com\",\n \"phone_1\": \"5125551212\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"user@example.com\",\n \"phone_1\": \"5125551212\"\n}"
response = http.request(request)
puts response.read_body{
"outcome": "success",
"reason": "lead.phone must have valid format",
"price": 20
}{
"message": "Inbound integration does not support ping"
}Ping a source within a flow with a request body
Same as the GET form, with the lead fields sent in the request body as JSON, XML, or
form encoding (set the Content-Type header accordingly). See GET for the behavior
and the error cases.
curl --request POST \
--url https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"phone_1": "5125551212"
}
'import requests
url = "https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping"
payload = {
"email": "user@example.com",
"phone_1": "5125551212"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'user@example.com', phone_1: '5125551212'})
};
fetch('https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping', 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://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping",
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([
'email' => 'user@example.com',
'phone_1' => '5125551212'
]),
CURLOPT_HTTPHEADER => [
"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 := "https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping"
payload := strings.NewReader("{\n \"email\": \"user@example.com\",\n \"phone_1\": \"5125551212\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"user@example.com\",\n \"phone_1\": \"5125551212\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/flows/{flow_id}/sources/{source_id}/ping")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"user@example.com\",\n \"phone_1\": \"5125551212\"\n}"
response = http.request(request)
puts response.read_body{
"outcome": "success",
"reason": "lead.phone must have valid format",
"price": 20
}{
"message": "Inbound integration does not support ping"
}Path Parameters
The ID of the flow 24 character alpha-numeric BSON identifier
^[0-9a-fA-F]{24}$"5fd4371e940df5a34a3888b2"
The ID of the source within the flow 24 character alpha-numeric BSON identifier
^[0-9a-fA-F]{24}$"5fd4371e940df5a34a3888b2"
Body
The lead data to evaluate, as key-value pairs. A partial lead is fine.
Response
The ping was evaluated. Check outcome to see whether the flow would accept the lead.
The result of a ping. Same shape as a submission response, without the lead
object because a ping does not create a lead.
Whether the flow would accept the lead.
success, failure, error Why the lead would not be accepted. Absent or null when the outcome is success.
"lead.phone must have valid format"
The price the flow would pay for the lead. 0 when it would not be accepted or the source has no pricing.
20