curl --request GET \
--url https://brew.new/api/v1/contacts/{email} \
--header 'Authorization: Bearer <token>'import requests
url = "https://brew.new/api/v1/contacts/{email}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://brew.new/api/v1/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://brew.new/api/v1/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 => [
"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://brew.new/api/v1/contacts/{email}"
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://brew.new/api/v1/contacts/{email}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://brew.new/api/v1/contacts/{email}")
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_bodyGet a contact
Reads one contact as the bare Contact row: core columns, subscribed, consent, validation state and customFields.
Use when checking whether an address exists, reading its consent record, or inspecting its custom fields before a send.
Input email in the path (URL-encoded; matched case-insensitively). include=openProfile attaches openProfile: the smart-send open-time profile, 48 UTC half-hour open counts (histogram), totalOpens, lastOpenedAt, and once there is enough history bestOpenMinuteUtc, bestSendMinuteUtc and confidence; null when the contact has no opens folded yet. It is not bot detection: machine opens cannot be told apart in it (per-event classification is on getEventsAnalytics). It needs the emails scope as well as contacts.
Returns 200 with the row.
Errors 404 CONTACT_NOT_FOUND when no contact carries that address; 403 INSUFFICIENT_PERMISSIONS when include=openProfile is asked for without the emails scope; 400 INVALID_REQUEST for an unknown include token.
See also listContacts, updateContact, deleteContact, upsertContacts.
curl --request GET \
--url https://brew.new/api/v1/contacts/{email} \
--header 'Authorization: Bearer <token>'import requests
url = "https://brew.new/api/v1/contacts/{email}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://brew.new/api/v1/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://brew.new/api/v1/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 => [
"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://brew.new/api/v1/contacts/{email}"
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://brew.new/api/v1/contacts/{email}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://brew.new/api/v1/contacts/{email}")
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_bodyAuthorizations
Send your Brew API key as Authorization: Bearer brew_xxx.
Headers
The brand this request acts on. REQUIRED for organization-scoped credentials (otherwise 400 BRAND_ID_REQUIRED — there is no default brand); list ids with GET /v1/brands. Brand-scoped credentials may omit it, and sending a different brand returns 403 BRAND_SCOPE_MISMATCH. A brand outside your organization returns 404 BRAND_NOT_FOUND.
1 - 64Path Parameters
The contact’s email address (URL-encoded). Email is the contact primary key.
1 - 320"jane%40example.com"
Query Parameters
Expansions: openProfile attaches the contact's smart-send open-time profile (needs the emails permission as well).
Response
The contact row, with openProfile when include=openProfile.
Show child attributes
Show child attributes
The latest verdict. valid only ever comes from a deliverability check (validate: true on ingest, or POST /v1/contacts/validate), which also sets lastValidatedAt. Without a check the free format check on ingest stores risky (disposable or role address) or invalid, and leaves the field unset otherwise: not validated.
valid, risky, invalid Show child attributes
Show child attributes
Show child attributes
Show child attributes
With include openProfile: the contact's smart-send open-time profile (48 UTC half-hour open counts and the best send time derived from them), or null when they have no opens folded yet. Not bot detection: machine opens cannot be told apart here.
Show child attributes
Show child attributes
Was this page helpful?