Get the provenance chain for a rule
curl --request GET \
--url https://api.seynlabs.com/v1/rules/{id}/provenance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.seynlabs.com/v1/rules/{id}/provenance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.seynlabs.com/v1/rules/{id}/provenance', 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.seynlabs.com/v1/rules/{id}/provenance",
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.seynlabs.com/v1/rules/{id}/provenance"
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.seynlabs.com/v1/rules/{id}/provenance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seynlabs.com/v1/rules/{id}/provenance")
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{
"success": true,
"data": {
"rule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"processId": "<string>"
},
"inferenceLog": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"promptHash": "<string>",
"tokenCount": {
"input": 1,
"output": 1,
"total": 1
},
"latencyMs": 123,
"createdAt": "2023-11-07T05:31:56Z"
},
"sourceEvents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action": "<string>",
"entityType": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
],
"rawRecords": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connectorType": "<string>",
"ingestedAt": "2023-11-07T05:31:56Z"
}
]
},
"meta": {
"requestId": "<string>"
}
}Rules
Get the provenance chain for a rule
The full four-hop audit chain from a rule back to source records.
GET
/
v1
/
rules
/
{id}
/
provenance
Get the provenance chain for a rule
curl --request GET \
--url https://api.seynlabs.com/v1/rules/{id}/provenance \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.seynlabs.com/v1/rules/{id}/provenance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.seynlabs.com/v1/rules/{id}/provenance', 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.seynlabs.com/v1/rules/{id}/provenance",
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.seynlabs.com/v1/rules/{id}/provenance"
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.seynlabs.com/v1/rules/{id}/provenance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.seynlabs.com/v1/rules/{id}/provenance")
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{
"success": true,
"data": {
"rule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"processId": "<string>"
},
"inferenceLog": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"promptHash": "<string>",
"tokenCount": {
"input": 1,
"output": 1,
"total": 1
},
"latencyMs": 123,
"createdAt": "2023-11-07T05:31:56Z"
},
"sourceEvents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"action": "<string>",
"entityType": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
],
"rawRecords": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"connectorType": "<string>",
"ingestedAt": "2023-11-07T05:31:56Z"
}
]
},
"meta": {
"requestId": "<string>"
}
}Returns the complete chain of custody: rule ā the inference log (the exact LLM call that produced it) ā the normalized events the model observed ā the raw records ingested from source systems. This is what makes every claim auditable. See Provenance for the full picture.
Responses can be large; a well-evidenced rule may carry dozens of events and records. If you only need to gauge evidence strength, count the arrays rather than rendering them.
Authorizations
Bearer token from app.seynlabs.com ā Settings ā API Keys.
Send as Authorization: Bearer sk_live_....
Path Parameters
āI