Get a signed record
curl --request GET \
--url https://api.tensorpro.ai/api/v1/evidence/{receipt_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tensorpro.ai/api/v1/evidence/{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://api.tensorpro.ai/api/v1/evidence/{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://api.tensorpro.ai/api/v1/evidence/{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://api.tensorpro.ai/api/v1/evidence/{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://api.tensorpro.ai/api/v1/evidence/{receipt_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tensorpro.ai/api/v1/evidence/{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_id": "5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a",
"schema": "edn-evidence-receipt",
"schema_version": "2",
"record_type": "ai_response",
"parent_receipt_id": "e7b3c9a1-4d2f-4a8e-b6c0-1f3d5e7a9b2c",
"user_id": "0c9a8b7d-6e5f-4a3b-8c2d-1e0f9a8b7c6d",
"session_id": "chat-42",
"project_id": null,
"built_at": "2026-11-17T04:43:27Z",
"payload_b64": "eyJwcm9qZWN0X2lkIjpudWxsLCJyZWNlaXB0X2lkIjoiNWQ4ZjJhMWMtM2U0Yi00YzZkLTlmMGEtN2IxYzJkM2U0ZjVhIiwicmVjb3JkX3R5cGUiOiJhaV9yZXNwb25zZSIsInJlc3BvbnNlX3NoYTI1NiI6InNoYTI1Njo5OWZkNGM2NjBlYjEzNWJiY2NlNTRkZTZkMDlhMjZkMmQ2ZDllODQzMzU3NDg1NTI0ZjQ3ZDUxYjA2YzY4YjdiIiwic2NoZW1hIjoiZWRuLWV2aWRlbmNlLXJlY2VpcHQiLCJzY2hlbWFfdmVyc2lvbiI6IjIiLCJzZXNzaW9uX2lkIjoiY2hhdC00MiIsInNpZ25lZF9hdCI6IjIwMjYtMTEtMTdUMDQ6NDM6MjdaIiwic2lwX3JlY2VpcHRfaWQiOiJlN2IzYzlhMS00ZDJmLTRhOGUtYjZjMC0xZjNkNWU3YTliMmMiLCJ1c2VyX2lkIjoiMGM5YThiN2QtNmU1Zi00YTNiLThjMmQtMWUwZjlhOGI3YzZkIn0=",
"payload_sha256": "sha256:9951044b646eb47b831aee5a3af1358f2fe0eb4ff2fdce30b212c99ebbe901a7",
"signature_b64": "8R2M1e/likYJ1UmsbVqf6OUc5fOhjtTJFHHodf4fuk3amgVCKtomeuPAdGlJNUnElRryEFcf/+pP7XulpDYdAg==",
"key_id": "edn-2026-11",
"sig_alg": "Ed25519",
"hash_alg": "SHA-256"
}
Signed records
Get a signed record
Get one of your signed records, with everything needed to verify it offline: the signed content, its hash, the signature and the signing key’s ID.
GET
/
api
/
v1
/
evidence
/
{receipt_id}
Get a signed record
curl --request GET \
--url https://api.tensorpro.ai/api/v1/evidence/{receipt_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tensorpro.ai/api/v1/evidence/{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://api.tensorpro.ai/api/v1/evidence/{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://api.tensorpro.ai/api/v1/evidence/{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://api.tensorpro.ai/api/v1/evidence/{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://api.tensorpro.ai/api/v1/evidence/{receipt_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tensorpro.ai/api/v1/evidence/{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_id": "5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a",
"schema": "edn-evidence-receipt",
"schema_version": "2",
"record_type": "ai_response",
"parent_receipt_id": "e7b3c9a1-4d2f-4a8e-b6c0-1f3d5e7a9b2c",
"user_id": "0c9a8b7d-6e5f-4a3b-8c2d-1e0f9a8b7c6d",
"session_id": "chat-42",
"project_id": null,
"built_at": "2026-11-17T04:43:27Z",
"payload_b64": "eyJwcm9qZWN0X2lkIjpudWxsLCJyZWNlaXB0X2lkIjoiNWQ4ZjJhMWMtM2U0Yi00YzZkLTlmMGEtN2IxYzJkM2U0ZjVhIiwicmVjb3JkX3R5cGUiOiJhaV9yZXNwb25zZSIsInJlc3BvbnNlX3NoYTI1NiI6InNoYTI1Njo5OWZkNGM2NjBlYjEzNWJiY2NlNTRkZTZkMDlhMjZkMmQ2ZDllODQzMzU3NDg1NTI0ZjQ3ZDUxYjA2YzY4YjdiIiwic2NoZW1hIjoiZWRuLWV2aWRlbmNlLXJlY2VpcHQiLCJzY2hlbWFfdmVyc2lvbiI6IjIiLCJzZXNzaW9uX2lkIjoiY2hhdC00MiIsInNpZ25lZF9hdCI6IjIwMjYtMTEtMTdUMDQ6NDM6MjdaIiwic2lwX3JlY2VpcHRfaWQiOiJlN2IzYzlhMS00ZDJmLTRhOGUtYjZjMC0xZjNkNWU3YTliMmMiLCJ1c2VyX2lkIjoiMGM5YThiN2QtNmU1Zi00YTNiLThjMmQtMWUwZjlhOGI3YzZkIn0=",
"payload_sha256": "sha256:9951044b646eb47b831aee5a3af1358f2fe0eb4ff2fdce30b212c99ebbe901a7",
"signature_b64": "8R2M1e/likYJ1UmsbVqf6OUc5fOhjtTJFHHodf4fuk3amgVCKtomeuPAdGlJNUnElRryEFcf/+pP7XulpDYdAg==",
"key_id": "edn-2026-11",
"sig_alg": "Ed25519",
"hash_alg": "SHA-256"
}
Use this endpoint to fetch one signed record. Together with EDN’s public key, it has everything needed to verify the record offline. See Signed records.
See Error handling.
Required headers
| Header | Value | Description |
|---|---|---|
Authorization | Bearer YOUR_API_KEY | Your EDN API key. Create keys in the Console. See Authentication |
Request
| Parameter | Type | Description |
|---|---|---|
receipt_id | string | The record’s ID |
curl "https://api.tensorpro.ai/api/v1/evidence/5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a" \
-H "Authorization: Bearer $EDN_API_KEY"
import os
import requests
resp = requests.get(
"https://api.tensorpro.ai/api/v1/evidence/5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a",
headers={"Authorization": f"Bearer {os.environ['EDN_API_KEY']}"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.tensorpro.ai/api/v1/evidence/5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a", {
headers: {
Authorization: `Bearer ${process.env.EDN_API_KEY}`,
},
});
console.log(await resp.json());
Response
200 OK
{
"receipt_id": "5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a",
"schema": "edn-evidence-receipt",
"schema_version": "2",
"record_type": "ai_response",
"parent_receipt_id": "e7b3c9a1-4d2f-4a8e-b6c0-1f3d5e7a9b2c",
"user_id": "0c9a8b7d-6e5f-4a3b-8c2d-1e0f9a8b7c6d",
"session_id": "chat-42",
"project_id": null,
"built_at": "2026-11-17T04:43:27Z",
"payload_b64": "eyJwcm9qZWN0X2lkIjpudWxsLCJyZWNlaXB0X2lkIjoiNWQ4ZjJhMWMtM2U0Yi00YzZkLTlmMGEtN2IxYzJkM2U0ZjVhIiwicmVjb3JkX3R5cGUiOiJhaV9yZXNwb25zZSIsInJlc3BvbnNlX3NoYTI1NiI6InNoYTI1Njo5OWZkNGM2NjBlYjEzNWJiY2NlNTRkZTZkMDlhMjZkMmQ2ZDllODQzMzU3NDg1NTI0ZjQ3ZDUxYjA2YzY4YjdiIiwic2NoZW1hIjoiZWRuLWV2aWRlbmNlLXJlY2VpcHQiLCJzY2hlbWFfdmVyc2lvbiI6IjIiLCJzZXNzaW9uX2lkIjoiY2hhdC00MiIsInNpZ25lZF9hdCI6IjIwMjYtMTEtMTdUMDQ6NDM6MjdaIiwic2lwX3JlY2VpcHRfaWQiOiJlN2IzYzlhMS00ZDJmLTRhOGUtYjZjMC0xZjNkNWU3YTliMmMiLCJ1c2VyX2lkIjoiMGM5YThiN2QtNmU1Zi00YTNiLThjMmQtMWUwZjlhOGI3YzZkIn0=",
"payload_sha256": "sha256:9951044b646eb47b831aee5a3af1358f2fe0eb4ff2fdce30b212c99ebbe901a7",
"signature_b64": "8R2M1e/likYJ1UmsbVqf6OUc5fOhjtTJFHHodf4fuk3amgVCKtomeuPAdGlJNUnElRryEFcf/+pP7XulpDYdAg==",
"key_id": "edn-2026-11",
"sig_alg": "Ed25519",
"hash_alg": "SHA-256"
}
| Field | Type | Description |
|---|---|---|
receipt_id | string | The record’s ID |
schema | string | The record format name, edn-evidence-receipt |
schema_version | string | The record format version |
record_type | string | sip: a record of a Session Initialization Package (SIP) build. ai_response: a record of the AI response to a SIP, saved when you send receipt_id to Save a conversation turn |
parent_receipt_id | string or null | For an ai_response record, the ID of the SIP record it answers. Otherwise null |
user_id | string | The account the record belongs to |
session_id | string or null | The conversation the record belongs to, if any |
project_id | string or null | The project the record belongs to, if any |
built_at | string | When the record was signed, in RFC 3339 UTC format: the build time for a sip record, or the time the AI response was signed for an ai_response record |
payload_b64 | string | The signed content, base64-encoded. Decode it to get the exact bytes that were signed; they are JSON |
payload_sha256 | string | SHA-256 of the decoded payload bytes, as sha256: plus 64 hex characters |
signature_b64 | string | The Ed25519 signature over the decoded payload bytes, base64-encoded |
key_id | string | The ID of the key that signed the record. Find its public key at /api/v1/evidence/keys |
sig_alg | string | The signature algorithm, Ed25519 |
hash_alg | string | The hash algorithm, SHA-256 |
Errors
| Status | Code | When |
|---|---|---|
401 | UNAUTHORIZED | The API key is missing, invalid, revoked or expired |
404 | NOT_FOUND | The resource does not exist or does not belong to you |
422 | VALIDATION_ERROR | A request field is missing or invalid. The errors field lists each problem |
429 | RATE_LIMITED | A rate limit or your daily quota was reached. Wait for the number of seconds in the Retry-After header, then retry |
{
"receipt_id": "5d8f2a1c-3e4b-4c6d-9f0a-7b1c2d3e4f5a",
"schema": "edn-evidence-receipt",
"schema_version": "2",
"record_type": "ai_response",
"parent_receipt_id": "e7b3c9a1-4d2f-4a8e-b6c0-1f3d5e7a9b2c",
"user_id": "0c9a8b7d-6e5f-4a3b-8c2d-1e0f9a8b7c6d",
"session_id": "chat-42",
"project_id": null,
"built_at": "2026-11-17T04:43:27Z",
"payload_b64": "eyJwcm9qZWN0X2lkIjpudWxsLCJyZWNlaXB0X2lkIjoiNWQ4ZjJhMWMtM2U0Yi00YzZkLTlmMGEtN2IxYzJkM2U0ZjVhIiwicmVjb3JkX3R5cGUiOiJhaV9yZXNwb25zZSIsInJlc3BvbnNlX3NoYTI1NiI6InNoYTI1Njo5OWZkNGM2NjBlYjEzNWJiY2NlNTRkZTZkMDlhMjZkMmQ2ZDllODQzMzU3NDg1NTI0ZjQ3ZDUxYjA2YzY4YjdiIiwic2NoZW1hIjoiZWRuLWV2aWRlbmNlLXJlY2VpcHQiLCJzY2hlbWFfdmVyc2lvbiI6IjIiLCJzZXNzaW9uX2lkIjoiY2hhdC00MiIsInNpZ25lZF9hdCI6IjIwMjYtMTEtMTdUMDQ6NDM6MjdaIiwic2lwX3JlY2VpcHRfaWQiOiJlN2IzYzlhMS00ZDJmLTRhOGUtYjZjMC0xZjNkNWU3YTliMmMiLCJ1c2VyX2lkIjoiMGM5YThiN2QtNmU1Zi00YTNiLThjMmQtMWUwZjlhOGI3YzZkIn0=",
"payload_sha256": "sha256:9951044b646eb47b831aee5a3af1358f2fe0eb4ff2fdce30b212c99ebbe901a7",
"signature_b64": "8R2M1e/likYJ1UmsbVqf6OUc5fOhjtTJFHHodf4fuk3amgVCKtomeuPAdGlJNUnElRryEFcf/+pP7XulpDYdAg==",
"key_id": "edn-2026-11",
"sig_alg": "Ed25519",
"hash_alg": "SHA-256"
}
Authorizations
Response
Signed record returned.
A signed record with everything needed to verify it offline.
