Receipt lineage
curl --request GET \
--url https://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_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://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_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://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_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://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_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{
"receipt": {
"receipt_id": "0192f7a4-0e21-7f9b-a2d5-4a7f9e0b1c23",
"kind": "history",
"surface": "search",
"audience": "customer_agent",
"day": "2026-09-22",
"read_at": "2026-09-22T17:07:09Z",
"source_id": "0192f79e-11aa-7b20-9f3e-6c1d2e4f5a60",
"profile_id": "0192f7a0-3b2e-7d41-8c5a-2e9f4b7a1c03",
"conversation_id": "call-4471",
"purpose": "customer_service",
"verification": "V1",
"policy_version": "pol-14",
"item_ids": [
"0192f7a3-7c32-7b0c-9e16-5b8a0f1c2d34",
"0192f7a2-5d10-7a8e-b1c4-3f6e8d9a0b12"
],
"withheld": 1,
"slice": 3,
"seq": 88214,
"prev_hash": "sha256:0d9f3a61c2",
"hash": "sha256:7e21c8a4b9"
},
"manifest_found": true,
"items": [
{
"id": "0192f7a3-7c32-7b0c-9e16-5b8a0f1c2d34",
"kind": "episode",
"evidence_event_ids": [
"0192f10a-2c3d-7e4f-8a5b-6c7d8e9f0a1b"
],
"events": [
{
"event_id": "0192f10a-2c3d-7e4f-8a5b-6c7d8e9f0a1b",
"kind": "message",
"channel": "voice",
"source_id": "0192f79e-11aa-7b20-9f3e-6c1d2e4f5a60",
"conversation_id": "call-2210",
"task_id": null,
"occurred_at": "2026-03-12T14:20:00Z"
}
]
}
],
"excluded": [
{
"id": "0192f7a2-9e10-7b8c-a1d2-3e4f5a6b7c8d",
"reason": "verification"
}
]
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Privacy and audit
Receipt lineage
From a receipt to the delivered items and their source events: why the agent said that.
GET
/
v1
/
lineage
/
receipt
/
{receipt_id}
Receipt lineage
curl --request GET \
--url https://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_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://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_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://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_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://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/lineage/receipt/{receipt_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{
"receipt": {
"receipt_id": "0192f7a4-0e21-7f9b-a2d5-4a7f9e0b1c23",
"kind": "history",
"surface": "search",
"audience": "customer_agent",
"day": "2026-09-22",
"read_at": "2026-09-22T17:07:09Z",
"source_id": "0192f79e-11aa-7b20-9f3e-6c1d2e4f5a60",
"profile_id": "0192f7a0-3b2e-7d41-8c5a-2e9f4b7a1c03",
"conversation_id": "call-4471",
"purpose": "customer_service",
"verification": "V1",
"policy_version": "pol-14",
"item_ids": [
"0192f7a3-7c32-7b0c-9e16-5b8a0f1c2d34",
"0192f7a2-5d10-7a8e-b1c4-3f6e8d9a0b12"
],
"withheld": 1,
"slice": 3,
"seq": 88214,
"prev_hash": "sha256:0d9f3a61c2",
"hash": "sha256:7e21c8a4b9"
},
"manifest_found": true,
"items": [
{
"id": "0192f7a3-7c32-7b0c-9e16-5b8a0f1c2d34",
"kind": "episode",
"evidence_event_ids": [
"0192f10a-2c3d-7e4f-8a5b-6c7d8e9f0a1b"
],
"events": [
{
"event_id": "0192f10a-2c3d-7e4f-8a5b-6c7d8e9f0a1b",
"kind": "message",
"channel": "voice",
"source_id": "0192f79e-11aa-7b20-9f3e-6c1d2e4f5a60",
"conversation_id": "call-2210",
"task_id": null,
"occurred_at": "2026-03-12T14:20:00Z"
}
]
}
],
"excluded": [
{
"id": "0192f7a2-9e10-7b8c-a1d2-3e4f5a6b7c8d",
"reason": "verification"
}
]
}{
"code": "<string>",
"status": 123,
"title": "<string>",
"detail": "<string>",
"request_id": "<string>",
"type": "about:blank"
}Authorizations
sourceKeypersonToken
nia_sk_...
Path Parameters
Response
The receipt, its items and the source events behind each one.
Answers "why did the agent say X?": receipt -> manifest -> items -> origin events.

