Lead
curl --request GET \
--url https://api.example.com/v1/leads/:idimport 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_bodyLeads
Lead
Retrieves the full details of a specific lead.
GET
/
v1
/
leads
/
:id
Lead
curl --request GET \
--url https://api.example.com/v1/leads/:idimport 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_bodyGet a Lead
Retrieves the full details of a specific lead by its ID.Request
GET /v1/leads/:id
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | uuid | Yes | The unique identifier of the lead |
Example
curl -X GET \
"https://YOUR_PROJECT.supabase.co/functions/v1/api-gateway/v1/leads/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "Authorization: Bearer rchd_live_xxxxxxxxxxxx"
const leadId = "a1b2c3d4-e5f6-7890-abcd-ef1234567890";
const response = await fetch(
`https://YOUR_PROJECT.supabase.co/functions/v1/api-gateway/v1/leads/${leadId}`,
{
headers: {
"Authorization": "Bearer rchd_live_xxxxxxxxxxxx"
}
}
);
const { data } = await response.json();
import requests
lead_id = "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
response = requests.get(
f"https://YOUR_PROJECT.supabase.co/functions/v1/api-gateway/v1/leads/{lead_id}",
headers={"Authorization": "Bearer rchd_live_xxxxxxxxxxxx"}
)
data = response.json()
Response
- 200 OK
- 404 Not Found
{
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"first_name": "John",
"last_name": "Doe",
"email": "john@acme.com",
"phone": "+33612345678",
"company_name": "Acme Corp",
"title": "VP Sales",
"status": "pending",
"call_outcome": null,
"total_calls": 0,
"ai_enrichment": null,
"custom_variables": {},
"created_at": "2026-03-21T10:00:00.000Z",
"updated_at": "2026-03-21T10:00:00.000Z"
}
}
{
"error": {
"code": "not_found",
"message": "Lead not found"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | uuid | Unique identifier |
first_name | string | First name |
last_name | string | Last name |
email | string | Email address |
phone | string | Phone number (E.164) |
company_name | string | Company name |
title | string | Job title |
status | string | Current status |
call_outcome | string | Last call outcome disposition |
total_calls | integer | Number of calls made to this lead |
ai_enrichment | string | AI enrichment data (if enriched) |
custom_variables | object | Custom key-value data |
created_at | datetime | Creation timestamp |
updated_at | datetime | Last update timestamp |
⌘I
.png?fit=max&auto=format&n=PYj-p9lRwfHX4QQS&q=85&s=967f00940a17d1d8cc11bd8995dc98d0)
.png?fit=max&auto=format&n=PYj-p9lRwfHX4QQS&q=85&s=5072033d90dfd5e7cc9349712ea4e145)