Find an identified respondent by exact email
curl --request POST \
--url https://api.novellahq.com/v1/contacts/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'import requests
url = "https://api.novellahq.com/v1/contacts/lookup"
payload = { "email": "[email protected]" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://api.novellahq.com/v1/contacts/lookup', 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.novellahq.com/v1/contacts/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '[email protected]'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novellahq.com/v1/contacts/lookup"
payload := strings.NewReader("{\n \"email\": \"[email protected]\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.novellahq.com/v1/contacts/lookup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"[email protected]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novellahq.com/v1/contacts/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"[email protected]\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"anonymized": true,
"identity": {
"first_name": "<string>",
"last_name": "<string>",
"email": "[email protected]",
"company": "<string>"
}
},
"meta": {
"request_id": "<string>"
}
}{
"error": {
"type": "validation_error",
"code": "invalid_parameter",
"message": "Invalid query parameter.",
"request_id": "req_example"
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_credentials",
"message": "A valid API key is required.",
"request_id": "req_example"
}
}{
"error": {
"type": "authorization_error",
"code": "forbidden",
"message": "Access denied.",
"request_id": "req_example"
}
}{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Resource not found.",
"request_id": "req_example"
}
}{
"error": {
"type": "server_error",
"code": "ambiguous_contact",
"message": "Multiple contacts match this address.",
"request_id": "req_example"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Workspace request limit exceeded.",
"request_id": "req_example"
}
}{
"error": {
"type": "server_error",
"code": "internal_error",
"message": "An unexpected error occurred.",
"request_id": "req_example"
}
}{
"error": {
"type": "server_error",
"code": "service_unavailable",
"message": "The requested service is temporarily unavailable.",
"request_id": "req_example"
}
}Respondents
Find an identified respondent by exact email
Read-only lookup using a request body to keep email out of URLs. Requires an all-surveys key. Matching ignores case.
POST
/
v1
/
contacts
/
lookup
Find an identified respondent by exact email
curl --request POST \
--url https://api.novellahq.com/v1/contacts/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'import requests
url = "https://api.novellahq.com/v1/contacts/lookup"
payload = { "email": "[email protected]" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '[email protected]'})
};
fetch('https://api.novellahq.com/v1/contacts/lookup', 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.novellahq.com/v1/contacts/lookup",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '[email protected]'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novellahq.com/v1/contacts/lookup"
payload := strings.NewReader("{\n \"email\": \"[email protected]\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.novellahq.com/v1/contacts/lookup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"[email protected]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novellahq.com/v1/contacts/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"[email protected]\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"anonymized": true,
"identity": {
"first_name": "<string>",
"last_name": "<string>",
"email": "[email protected]",
"company": "<string>"
}
},
"meta": {
"request_id": "<string>"
}
}{
"error": {
"type": "validation_error",
"code": "invalid_parameter",
"message": "Invalid query parameter.",
"request_id": "req_example"
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_credentials",
"message": "A valid API key is required.",
"request_id": "req_example"
}
}{
"error": {
"type": "authorization_error",
"code": "forbidden",
"message": "Access denied.",
"request_id": "req_example"
}
}{
"error": {
"type": "not_found_error",
"code": "resource_not_found",
"message": "Resource not found.",
"request_id": "req_example"
}
}{
"error": {
"type": "server_error",
"code": "ambiguous_contact",
"message": "Multiple contacts match this address.",
"request_id": "req_example"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Workspace request limit exceeded.",
"request_id": "req_example"
}
}{
"error": {
"type": "server_error",
"code": "internal_error",
"message": "An unexpected error occurred.",
"request_id": "req_example"
}
}{
"error": {
"type": "server_error",
"code": "service_unavailable",
"message": "The requested service is temporarily unavailable.",
"request_id": "req_example"
}
}