curl --request POST \
--url https://pria.praxislxp.com/api/user/twinSummary \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"institution": "678e99009db586c5e9f6c903"
}
'import requests
url = "https://pria.praxislxp.com/api/user/twinSummary"
payload = { "institution": "678e99009db586c5e9f6c903" }
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({institution: '678e99009db586c5e9f6c903'})
};
fetch('https://pria.praxislxp.com/api/user/twinSummary', 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://pria.praxislxp.com/api/user/twinSummary",
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([
'institution' => '678e99009db586c5e9f6c903'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$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://pria.praxislxp.com/api/user/twinSummary"
payload := strings.NewReader("{\n \"institution\": \"678e99009db586c5e9f6c903\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
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://pria.praxislxp.com/api/user/twinSummary")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"institution\": \"678e99009db586c5e9f6c903\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/twinSummary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"institution\": \"678e99009db586c5e9f6c903\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"about": "<string>",
"files": 765,
"assistants": 12
}A Digital Twin's about and its numbers of files and assistants
Returns, for one Digital Twin you belong to, its about text and how many files and assistants it has — counted as you may see them: files in the Trash and other members’ confidential files are not counted. Assistants are those the Assistants list shows you: the twin’s own, the platform’s, and those shared by the other Digital Twins of its account — assistants reserved for administrators count only for the twin’s administrators, private assistants only for their owner, drafts only for their author, and assistants switched off for the twin not at all. Without an institution, the numbers are those of your personal account (your own files; your own assistants and the platform’s).
curl --request POST \
--url https://pria.praxislxp.com/api/user/twinSummary \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"institution": "678e99009db586c5e9f6c903"
}
'import requests
url = "https://pria.praxislxp.com/api/user/twinSummary"
payload = { "institution": "678e99009db586c5e9f6c903" }
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({institution: '678e99009db586c5e9f6c903'})
};
fetch('https://pria.praxislxp.com/api/user/twinSummary', 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://pria.praxislxp.com/api/user/twinSummary",
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([
'institution' => '678e99009db586c5e9f6c903'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$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://pria.praxislxp.com/api/user/twinSummary"
payload := strings.NewReader("{\n \"institution\": \"678e99009db586c5e9f6c903\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
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://pria.praxislxp.com/api/user/twinSummary")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"institution\": \"678e99009db586c5e9f6c903\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/twinSummary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"institution\": \"678e99009db586c5e9f6c903\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"about": "<string>",
"files": 765,
"assistants": 12
}Authorizations
JWT token passed in x-access-token header
Body
The Digital Twin's _id. Leave it out for your personal account.
"678e99009db586c5e9f6c903"
Was this page helpful?