Get the provenance chain for a rule
curl --request GET \
--url https://api.seynlabs.com/v1/rules/{id}/provenance \
--header 'Authorization: Bearer <token>'{
"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
Returns the full audit chain: rule → inference log (the LLM call that produced the rule) → normalized events the LLM observed → raw records ingested from source systems.
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>'{
"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>"
}
}Authorizations
Bearer token from app.seynlabs.com → Settings → API Keys.
Send as Authorization: Bearer sk_live_....
Path Parameters
⌘I