curl --request POST \
--url https://api.statisfy.com/v1/objects/account/records/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cursor": "<string>",
"fields": [
"<string>"
],
"filter": {
"field": "<string>",
"value": "<unknown>"
},
"limit": 25,
"view_id": 2
}
'import requests
url = "https://api.statisfy.com/v1/objects/account/records/search"
payload = {
"cursor": "<string>",
"fields": ["<string>"],
"filter": {
"field": "<string>",
"value": "<unknown>"
},
"limit": 25,
"view_id": 2
}
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({
cursor: '<string>',
fields: ['<string>'],
filter: {field: '<string>', value: '<unknown>'},
limit: 25,
view_id: 2
})
};
fetch('https://api.statisfy.com/v1/objects/account/records/search', 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/account/records/search",
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([
'cursor' => '<string>',
'fields' => [
'<string>'
],
'filter' => [
'field' => '<string>',
'value' => '<unknown>'
],
'limit' => 25,
'view_id' => 2
]),
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.statisfy.com/v1/objects/account/records/search"
payload := strings.NewReader("{\n \"cursor\": \"<string>\",\n \"fields\": [\n \"<string>\"\n ],\n \"filter\": {\n \"field\": \"<string>\",\n \"value\": \"<unknown>\"\n },\n \"limit\": 25,\n \"view_id\": 2\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.statisfy.com/v1/objects/account/records/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cursor\": \"<string>\",\n \"fields\": [\n \"<string>\"\n ],\n \"filter\": {\n \"field\": \"<string>\",\n \"value\": \"<unknown>\"\n },\n \"limit\": 25,\n \"view_id\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/account/records/search")
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 \"cursor\": \"<string>\",\n \"fields\": [\n \"<string>\"\n ],\n \"filter\": {\n \"field\": \"<string>\",\n \"value\": \"<unknown>\"\n },\n \"limit\": 25,\n \"view_id\": 2\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"account_summary__s_": "<string>",
"arr": 123,
"crm_account_id": "<string>",
"currency": "<string>",
"domain": "<string>",
"experience_health": "<string>",
"feature_requests_health": "<string>",
"fields": {},
"health": "<string>",
"health_summary": "<string>",
"hierarchy": "<string>",
"last_activity_date": "<string>",
"name": "<string>",
"outcomes_health": "<string>",
"owner_names": [
"<string>"
],
"owners": [
{
"user_id": "<string>",
"field": "<string>",
"role": "<string>",
"source": "<string>"
}
],
"parent": "<string>",
"product_usage_health": "<string>",
"relationship_health": "<string>",
"renewal_date": "<string>",
"risks_health": "<string>",
"type": "<string>"
}
],
"has_more": false,
"next_cursor": "<string>"
}Search accounts with AND/OR filters
Like listing, with the filter as a JSON tree: a condition {"field", "op", "value"} or a group {"and": [...]} / {"or": [...]}, at most 3 levels deep and 20 conditions. Standard fields sit at the top level and custom fields under fields, keyed as GET /v1/fields?object=account lists them. Owner fields and parent hold the id of one record; owners lists every owner, including owners synced from a CRM, with the owner field it holds (null for a synced owner). health (overall) and each <pillar>_health are the pillar’s current label, and health_summary the overall reason, as the app’s health widget shows them; each pillar’s reason, confidence, source and history are GET /v1/health (scope health:read). Renewals are not returned yet. Deleted accounts are never returned.
curl --request POST \
--url https://api.statisfy.com/v1/objects/account/records/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cursor": "<string>",
"fields": [
"<string>"
],
"filter": {
"field": "<string>",
"value": "<unknown>"
},
"limit": 25,
"view_id": 2
}
'import requests
url = "https://api.statisfy.com/v1/objects/account/records/search"
payload = {
"cursor": "<string>",
"fields": ["<string>"],
"filter": {
"field": "<string>",
"value": "<unknown>"
},
"limit": 25,
"view_id": 2
}
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({
cursor: '<string>',
fields: ['<string>'],
filter: {field: '<string>', value: '<unknown>'},
limit: 25,
view_id: 2
})
};
fetch('https://api.statisfy.com/v1/objects/account/records/search', 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/account/records/search",
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([
'cursor' => '<string>',
'fields' => [
'<string>'
],
'filter' => [
'field' => '<string>',
'value' => '<unknown>'
],
'limit' => 25,
'view_id' => 2
]),
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.statisfy.com/v1/objects/account/records/search"
payload := strings.NewReader("{\n \"cursor\": \"<string>\",\n \"fields\": [\n \"<string>\"\n ],\n \"filter\": {\n \"field\": \"<string>\",\n \"value\": \"<unknown>\"\n },\n \"limit\": 25,\n \"view_id\": 2\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.statisfy.com/v1/objects/account/records/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cursor\": \"<string>\",\n \"fields\": [\n \"<string>\"\n ],\n \"filter\": {\n \"field\": \"<string>\",\n \"value\": \"<unknown>\"\n },\n \"limit\": 25,\n \"view_id\": 2\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/objects/account/records/search")
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 \"cursor\": \"<string>\",\n \"fields\": [\n \"<string>\"\n ],\n \"filter\": {\n \"field\": \"<string>\",\n \"value\": \"<unknown>\"\n },\n \"limit\": 25,\n \"view_id\": 2\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"account_summary__s_": "<string>",
"arr": 123,
"crm_account_id": "<string>",
"currency": "<string>",
"domain": "<string>",
"experience_health": "<string>",
"feature_requests_health": "<string>",
"fields": {},
"health": "<string>",
"health_summary": "<string>",
"hierarchy": "<string>",
"last_activity_date": "<string>",
"name": "<string>",
"outcomes_health": "<string>",
"owner_names": [
"<string>"
],
"owners": [
{
"user_id": "<string>",
"field": "<string>",
"role": "<string>",
"source": "<string>"
}
],
"parent": "<string>",
"product_usage_health": "<string>",
"relationship_health": "<string>",
"renewal_date": "<string>",
"risks_health": "<string>",
"type": "<string>"
}
],
"has_more": false,
"next_cursor": "<string>"
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Body
Was this page helpful?