curl --request GET \
--url https://api.statisfy.com/v1/objects/contact/records/{contact_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/objects/contact/records/{contact_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/objects/contact/records/{contact_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.statisfy.com/v1/objects/contact/records/{contact_id}",
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.statisfy.com/v1/objects/contact/records/{contact_id}"
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.statisfy.com/v1/objects/contact/records/{contact_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/contact/records/{contact_id}")
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{
"id": "<string>",
"account": "<string>",
"accounts": [
"<string>"
],
"crm_contact_id": "<string>",
"department": "<string>",
"email": "<string>",
"engagements": 0,
"fields": {},
"first_name": "<string>",
"is_key_contact": false,
"last_engagement_date": "<string>",
"last_name": "<string>",
"name": "<string>",
"origin": "crm",
"role": "<string>",
"sentiment": "negative",
"title": "<string>"
}Get one contact
Returns one contact by id; the id of a teammate, vendor or digital worker, like an unknown id, is a 404. A contact is an external person: your teammates, vendors and digital workers are not contacts and are never returned. Standard fields sit at the top level and custom fields under fields, keyed as GET /v1/fields?object=contact lists them. account holds the id of the contact’s primary account, or null when it has none; accounts the ids of every account it is on, the primary first (empty for a contact on none). is_key_contact says whether it is a key contact of an account. sentiment is negative, neutral or positive, or null when none is recorded; origin is where the contact first came from, crm or statisfy, or null when not recorded (contacts from before it was). engagements counts the contact’s engagements in the last 90 days; last_engagement_date is the day of its latest engagement ever, so it can be older than that window while engagements is 0. Dates are YYYY-MM-DD, the UTC day.
curl --request GET \
--url https://api.statisfy.com/v1/objects/contact/records/{contact_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/objects/contact/records/{contact_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.statisfy.com/v1/objects/contact/records/{contact_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.statisfy.com/v1/objects/contact/records/{contact_id}",
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.statisfy.com/v1/objects/contact/records/{contact_id}"
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.statisfy.com/v1/objects/contact/records/{contact_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/contact/records/{contact_id}")
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{
"id": "<string>",
"account": "<string>",
"accounts": [
"<string>"
],
"crm_contact_id": "<string>",
"department": "<string>",
"email": "<string>",
"engagements": 0,
"fields": {},
"first_name": "<string>",
"is_key_contact": false,
"last_engagement_date": "<string>",
"last_name": "<string>",
"name": "<string>",
"origin": "crm",
"role": "<string>",
"sentiment": "negative",
"title": "<string>"
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Query Parameters
Response
Successful Response
Was this page helpful?