Skip to main content
GET
/
lead
/
get
Get Lead
curl --request GET \
  --url https://api.plura.ai/v1/lead/get \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.plura.ai/v1/lead/get"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.plura.ai/v1/lead/get', 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.plura.ai/v1/lead/get",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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.plura.ai/v1/lead/get"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

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.plura.ai/v1/lead/get")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.plura.ai/v1/lead/get")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "lead_id": "307fc241-8398-4740-8122-cf6a59f3b86e",
  "phone": "17145551234",
  "first_name": "John",
  "last_name": "Smith",
  "email": "johnsmith@mail.com",
  "company": "Acme Corp",
  "tags": [
    "High_Priority",
    "New_Lead"
  ],
  "created_at": "2024-03-15T10:30:00Z",
  "updated_at": "2024-03-15T14:22:00Z"
}
{
"status": "failed",
"message": "Human-readable error description"
}
{
"status": "failed",
"message": "Lead not found"
}

Authorizations

Authorization
string
header
required

API key from Settings → API Keys in your workspace

Query Parameters

phone
string

Phone number in E.164 format. Provide this OR lead_id.

lead_id
string

Lead UUID. Provide this OR phone.

Response

Lead found

lead_id
string
Example:

"307fc241-8398-4740-8122-cf6a59f3b86e"

phone
string
Example:

"17145551234"

first_name
string
Example:

"John"

last_name
string
Example:

"Smith"

email
string
Example:

"johnsmith@mail.com"

company
string
Example:

"Acme Corp"

tags
string[]
Example:
["High_Priority", "New_Lead"]
created_at
string<date-time>
Example:

"2024-03-15T10:30:00Z"

updated_at
string<date-time>
Example:

"2024-03-15T14:22:00Z"