Get contact
curl --request GET \
--url https://connect.pingback.com/v2/contacts/{email} \
--header 'x-api-key: <api-key>'import requests
url = "https://connect.pingback.com/v2/contacts/{email}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://connect.pingback.com/v2/contacts/{email}', 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://connect.pingback.com/v2/contacts/{email}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://connect.pingback.com/v2/contacts/{email}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://connect.pingback.com/v2/contacts/{email}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.pingback.com/v2/contacts/{email}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Contact found",
"data": {
"id": "36c8c534-fcca-4f79-b3e6-c492f82c2333",
"email": "example@email.com",
"status": "active",
"source": "PublicApi",
"origin": null,
"firstConversionEvent": null,
"segmentedLists": [],
"deals": [],
"createdAt": "2025-12-22T18:11:43.719Z",
"attributes": {
"name": "John Doe"
}
}
}{
"error": "User is not authorized to access this resource with an explicit deny in an identity-based policy.",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "FORBIDDEN"
}{
"error": "Contact not found",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "CONTACT_NOT_FOUND"
}{
"error": "An unexpected error occurred.",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "INTERNAL_SERVER_ERROR"
}Contatos
Buscar Contato
Retorna um contato pelo email.
GET
/
contacts
/
{email}
Get contact
curl --request GET \
--url https://connect.pingback.com/v2/contacts/{email} \
--header 'x-api-key: <api-key>'import requests
url = "https://connect.pingback.com/v2/contacts/{email}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://connect.pingback.com/v2/contacts/{email}', 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://connect.pingback.com/v2/contacts/{email}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <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"
"net/http"
"io"
)
func main() {
url := "https://connect.pingback.com/v2/contacts/{email}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://connect.pingback.com/v2/contacts/{email}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://connect.pingback.com/v2/contacts/{email}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Contact found",
"data": {
"id": "36c8c534-fcca-4f79-b3e6-c492f82c2333",
"email": "example@email.com",
"status": "active",
"source": "PublicApi",
"origin": null,
"firstConversionEvent": null,
"segmentedLists": [],
"deals": [],
"createdAt": "2025-12-22T18:11:43.719Z",
"attributes": {
"name": "John Doe"
}
}
}{
"error": "User is not authorized to access this resource with an explicit deny in an identity-based policy.",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "FORBIDDEN"
}{
"error": "Contact not found",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "CONTACT_NOT_FOUND"
}{
"error": "An unexpected error occurred.",
"requestId": "6795d530-07c4-43b6-8b85-dfc2cfceceb5",
"errorCode": "INTERNAL_SERVER_ERROR"
}Autorizações
Parâmetros de caminho
Resposta
Contact details
Opções disponíveis:
active, inactive, invalid, unverified, unsubscribed, bounced, complained Opções disponíveis:
Form, PublicApi, Import, User, Blog, System, Webhook Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Esta página foi útil?
⌘I