Leads
Get lead
Retrieve a specific lead by ID
GET
/
v1
/
leads
/
{id}
Get lead
curl --request GET \
--url https://api.example.com/v1/leads/{id}import requests
url = "https://api.example.com/v1/leads/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/leads/{id}', 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://api.example.com/v1/leads/{id}",
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://api.example.com/v1/leads/{id}"
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://api.example.com/v1/leads/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/leads/{id}")
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{
"data": {
"id": 44,
"status": "submitted",
"created_at": "2025-05-16",
"lead_info": {
"name": "Alice Brown",
"email": "[email protected]"
},
"converted_to": null,
"submitter": {
"id": "partner_123",
"name": "John Doe",
"email": "[email protected]"
},
"submission_form": [
{
"question": "Name",
"answer": "Alice Brown"
},
{
"question": "Email address",
"answer": "[email protected]"
},
{
"question": "Company",
"answer": "Acme Inc"
},
{
"question": "Budget",
"answer": "$10,000+"
}
],
"can_be_converted": true,
"can_be_rejected": true
},
"status": 1
}
Endpoint
GET https://api.partnero.com/v1/leads/{id}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Lead’s unique ID |
Request
cURL
curl --location 'https://api.partnero.com/v1/leads/44' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY'
Response
{
"data": {
"id": 44,
"status": "submitted",
"created_at": "2025-05-16",
"lead_info": {
"name": "Alice Brown",
"email": "[email protected]"
},
"converted_to": null,
"submitter": {
"id": "partner_123",
"name": "John Doe",
"email": "[email protected]"
},
"submission_form": [
{
"question": "Name",
"answer": "Alice Brown"
},
{
"question": "Email address",
"answer": "[email protected]"
},
{
"question": "Company",
"answer": "Acme Inc"
},
{
"question": "Budget",
"answer": "$10,000+"
}
],
"can_be_converted": true,
"can_be_rejected": true
},
"status": 1
}
Response Fields
| Field | Type | Description |
|---|---|---|
data.id | integer | Unique lead ID |
data.status | string | Lead status: submitted, converted, rejected |
data.lead_info | object | Basic lead information |
data.lead_info.name | string | Lead’s name |
data.lead_info.email | string | Lead’s email |
data.submitter | object | Partner who submitted the lead |
data.submitter.id | string | Partner ID |
data.submitter.name | string | Partner name |
data.submitter.email | string | Partner email |
data.submission_form | array | Custom form field responses |
data.converted_to | object | null | Customer data if converted |
data.can_be_converted | boolean | Whether lead can be converted to customer |
data.can_be_rejected | boolean | Whether lead can be rejected |
Previous
CreateSubmit leads programmatically for partner attribution. Track B2B referrals with custom fields and conversion tracking.
Next
⌘I
Get lead
curl --request GET \
--url https://api.example.com/v1/leads/{id}import requests
url = "https://api.example.com/v1/leads/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/leads/{id}', 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://api.example.com/v1/leads/{id}",
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://api.example.com/v1/leads/{id}"
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://api.example.com/v1/leads/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/leads/{id}")
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{
"data": {
"id": 44,
"status": "submitted",
"created_at": "2025-05-16",
"lead_info": {
"name": "Alice Brown",
"email": "[email protected]"
},
"converted_to": null,
"submitter": {
"id": "partner_123",
"name": "John Doe",
"email": "[email protected]"
},
"submission_form": [
{
"question": "Name",
"answer": "Alice Brown"
},
{
"question": "Email address",
"answer": "[email protected]"
},
{
"question": "Company",
"answer": "Acme Inc"
},
{
"question": "Budget",
"answer": "$10,000+"
}
],
"can_be_converted": true,
"can_be_rejected": true
},
"status": 1
}
