Estimate cost of processing a Digital Twin's files through KAG extraction
curl --request GET \
--url https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote', 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/institution/{id}/kag/backfill-quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"unprocessedFiles": 123,
"unprocessedChunks": 123,
"estimatedTokens": 123
}User Profile
Estimate cost of processing a Digital Twin's files through KAG extraction
Returns how many of the institution’s (Digital Twin’s) files still need knowledge-graph extraction at the current extraction version, plus an estimated TOKEN cost (with a 1.2x safety buffer). Authorized per-instance via institutions.edit (super bypasses) — NOT the global admin gate — so a per-institution admin can run it for the Twin they manage.
GET
/
api
/
user
/
institution
/
{id}
/
kag
/
backfill-quote
Estimate cost of processing a Digital Twin's files through KAG extraction
curl --request GET \
--url https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote', 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/institution/{id}/kag/backfill-quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/institution/{id}/kag/backfill-quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"unprocessedFiles": 123,
"unprocessedChunks": 123,
"estimatedTokens": 123
}Authorizations
JWT token passed in x-access-token header
Path Parameters
Institution (Digital Twin) id
Was this page helpful?
Cancel the caller's in-progress personal KAG backfillRead-only funnel diagnostic for a Digital Twin's KAG backfill quote
⌘I