Create a new referral
curl --request POST \
--url https://zeropath.com/api/v1/referral/create \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"mobilePhone": "<string>",
"companyName": "<string>",
"referrerFirstName": "<string>",
"referrerLastName": "<string>",
"referrerEmail": "jsmith@example.com",
"type": "DEMO",
"notes": "<string>"
}
'import requests
url = "https://zeropath.com/api/v1/referral/create"
payload = {
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"mobilePhone": "<string>",
"companyName": "<string>",
"referrerFirstName": "<string>",
"referrerLastName": "<string>",
"referrerEmail": "jsmith@example.com",
"type": "DEMO",
"notes": "<string>"
}
headers = {
"X-ZeroPath-API-Token-Id": "<api-key>",
"X-ZeroPath-API-Token-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-ZeroPath-API-Token-Id': '<api-key>',
'X-ZeroPath-API-Token-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
firstName: '<string>',
lastName: '<string>',
email: 'jsmith@example.com',
mobilePhone: '<string>',
companyName: '<string>',
referrerFirstName: '<string>',
referrerLastName: '<string>',
referrerEmail: 'jsmith@example.com',
type: 'DEMO',
notes: '<string>'
})
};
fetch('https://zeropath.com/api/v1/referral/create', 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://zeropath.com/api/v1/referral/create",
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([
'firstName' => '<string>',
'lastName' => '<string>',
'email' => 'jsmith@example.com',
'mobilePhone' => '<string>',
'companyName' => '<string>',
'referrerFirstName' => '<string>',
'referrerLastName' => '<string>',
'referrerEmail' => 'jsmith@example.com',
'type' => 'DEMO',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-ZeroPath-API-Token-Id: <api-key>",
"X-ZeroPath-API-Token-Secret: <api-key>"
],
]);
$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://zeropath.com/api/v1/referral/create"
payload := strings.NewReader("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"mobilePhone\": \"<string>\",\n \"companyName\": \"<string>\",\n \"referrerFirstName\": \"<string>\",\n \"referrerLastName\": \"<string>\",\n \"referrerEmail\": \"jsmith@example.com\",\n \"type\": \"DEMO\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-ZeroPath-API-Token-Id", "<api-key>")
req.Header.Add("X-ZeroPath-API-Token-Secret", "<api-key>")
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://zeropath.com/api/v1/referral/create")
.header("X-ZeroPath-API-Token-Id", "<api-key>")
.header("X-ZeroPath-API-Token-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"mobilePhone\": \"<string>\",\n \"companyName\": \"<string>\",\n \"referrerFirstName\": \"<string>\",\n \"referrerLastName\": \"<string>\",\n \"referrerEmail\": \"jsmith@example.com\",\n \"type\": \"DEMO\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://zeropath.com/api/v1/referral/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-ZeroPath-API-Token-Id"] = '<api-key>'
request["X-ZeroPath-API-Token-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"mobilePhone\": \"<string>\",\n \"companyName\": \"<string>\",\n \"referrerFirstName\": \"<string>\",\n \"referrerLastName\": \"<string>\",\n \"referrerEmail\": \"jsmith@example.com\",\n \"type\": \"DEMO\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"referralId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"error": "<string>"
}Referrals
Create a new referral
Submit a referral for a demo. This is an unauthenticated endpoint.
POST
/
api
/
v1
/
referral
/
create
Create a new referral
curl --request POST \
--url https://zeropath.com/api/v1/referral/create \
--header 'Content-Type: application/json' \
--header 'X-ZeroPath-API-Token-Id: <api-key>' \
--header 'X-ZeroPath-API-Token-Secret: <api-key>' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"mobilePhone": "<string>",
"companyName": "<string>",
"referrerFirstName": "<string>",
"referrerLastName": "<string>",
"referrerEmail": "jsmith@example.com",
"type": "DEMO",
"notes": "<string>"
}
'import requests
url = "https://zeropath.com/api/v1/referral/create"
payload = {
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"mobilePhone": "<string>",
"companyName": "<string>",
"referrerFirstName": "<string>",
"referrerLastName": "<string>",
"referrerEmail": "jsmith@example.com",
"type": "DEMO",
"notes": "<string>"
}
headers = {
"X-ZeroPath-API-Token-Id": "<api-key>",
"X-ZeroPath-API-Token-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-ZeroPath-API-Token-Id': '<api-key>',
'X-ZeroPath-API-Token-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
firstName: '<string>',
lastName: '<string>',
email: 'jsmith@example.com',
mobilePhone: '<string>',
companyName: '<string>',
referrerFirstName: '<string>',
referrerLastName: '<string>',
referrerEmail: 'jsmith@example.com',
type: 'DEMO',
notes: '<string>'
})
};
fetch('https://zeropath.com/api/v1/referral/create', 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://zeropath.com/api/v1/referral/create",
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([
'firstName' => '<string>',
'lastName' => '<string>',
'email' => 'jsmith@example.com',
'mobilePhone' => '<string>',
'companyName' => '<string>',
'referrerFirstName' => '<string>',
'referrerLastName' => '<string>',
'referrerEmail' => 'jsmith@example.com',
'type' => 'DEMO',
'notes' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-ZeroPath-API-Token-Id: <api-key>",
"X-ZeroPath-API-Token-Secret: <api-key>"
],
]);
$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://zeropath.com/api/v1/referral/create"
payload := strings.NewReader("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"mobilePhone\": \"<string>\",\n \"companyName\": \"<string>\",\n \"referrerFirstName\": \"<string>\",\n \"referrerLastName\": \"<string>\",\n \"referrerEmail\": \"jsmith@example.com\",\n \"type\": \"DEMO\",\n \"notes\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-ZeroPath-API-Token-Id", "<api-key>")
req.Header.Add("X-ZeroPath-API-Token-Secret", "<api-key>")
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://zeropath.com/api/v1/referral/create")
.header("X-ZeroPath-API-Token-Id", "<api-key>")
.header("X-ZeroPath-API-Token-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"mobilePhone\": \"<string>\",\n \"companyName\": \"<string>\",\n \"referrerFirstName\": \"<string>\",\n \"referrerLastName\": \"<string>\",\n \"referrerEmail\": \"jsmith@example.com\",\n \"type\": \"DEMO\",\n \"notes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://zeropath.com/api/v1/referral/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-ZeroPath-API-Token-Id"] = '<api-key>'
request["X-ZeroPath-API-Token-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"mobilePhone\": \"<string>\",\n \"companyName\": \"<string>\",\n \"referrerFirstName\": \"<string>\",\n \"referrerLastName\": \"<string>\",\n \"referrerEmail\": \"jsmith@example.com\",\n \"type\": \"DEMO\",\n \"notes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"referralId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
application/json
First name of the referred person
Required string length:
1 - 100Last name of the referred person
Required string length:
1 - 100Email address of the referred person
Mobile phone number of the referred person
Required string length:
10 - 20Company name of the referred person
Required string length:
1 - 200First name of the person making the referral
Required string length:
1 - 100Last name of the person making the referral
Required string length:
1 - 100Email address of the person making the referral
Type of referral
Available options:
DEMO Optional notes about the referral
Maximum string length:
1000Was this page helpful?
⌘I