curl --request GET \
--url https://api.statisfy.com/v1/integrations/pendo/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/integrations/pendo/config"
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/integrations/pendo/config', 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/integrations/pendo/config",
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/integrations/pendo/config"
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/integrations/pendo/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/pendo/config")
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{
"account_id_field": "<string>",
"surveys": {
"account_id_field": "<string>",
"account_match": "<string>",
"selected_guides": [
"<string>"
],
"sentiment_survey_ids": [
"<string>"
],
"create_missing_people": true,
"mode": "all_guides"
},
"version": 123,
"week_start_day": 123
}Get the Pendo config
The Pendo settings. Read this first when you set Pendo up. account_id_field is the Pendo field that holds the CRM account ID: queries read it with . surveys is the NPS survey job’s settings. week_start_day is the day product usage weeks start on. The queries are /integrations/pendo/queries. version is 0 when nothing was saved. The setup order: (1) an admin connects the Pendo key in Statisfy’s app, never through the API; (2) test the connection: POST /v1/integrations/pendo/connection/test (integrations:read); (3) find the CRM ID field: GET /v1/integrations/pendo/account-fields (integrations:read): a high filled count marks a likely field, so check its values with POST /v1/integrations/pendo/preview first; (4) save it: PATCH /v1/integrations/pendo/config (integrations:write); (5) browse GET /v1/integrations/pendo/reports and GET /v1/integrations/pendo/catalog/ (integrations:read); (6) check a query: POST /v1/integrations/pendo/query/validate (integrations:read), then run a sample: POST /v1/integrations/pendo/preview (integrations:write); (7) save it: POST /v1/integrations/pendo/queries (integrations:write); (8) for NPS surveys: GET /v1/integrations/pendo/surveys (integrations:read), try the settings with POST /v1/integrations/pendo/surveys/preview (integrations:write), and save them with PATCH /v1/integrations/pendo/config and surveys (integrations:write); (9) set the schedule: PUT /v1/integrations/pendo/schedule (integrations:write). This step is required: Pendo has no default cadence, so a subtype with no schedule entry never runs. The app turns on the daily surveys schedule when an admin first saves the survey settings; the API does not, so send it; (10) start a run: POST /v1/integrations/pendo/runs, or POST /v1/integrations/pendo/surveys/runs for the NPS survey job (integrations:write), and read it: GET /v1/integrations/pendo/runs/ (integrations:read).
curl --request GET \
--url https://api.statisfy.com/v1/integrations/pendo/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.statisfy.com/v1/integrations/pendo/config"
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/integrations/pendo/config', 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/integrations/pendo/config",
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/integrations/pendo/config"
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/integrations/pendo/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.statisfy.com/v1/integrations/pendo/config")
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{
"account_id_field": "<string>",
"surveys": {
"account_id_field": "<string>",
"account_match": "<string>",
"selected_guides": [
"<string>"
],
"sentiment_survey_ids": [
"<string>"
],
"create_missing_people": true,
"mode": "all_guides"
},
"version": 123,
"week_start_day": 123
}Authorizations
An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.
Response
Successful Response
The Pendo settings. The queries are their own resource (/queries).
The Pendo account field that holds the CRM account ID, for example salesforce.accountid. A query reads it with the token {PENDO_ACCOUNT_ID_FIELD}. null until an admin sets it. Find it with /account-fields: a high filled count marks a likely field; check its values with /preview before saving it
Was this page helpful?