Seal
curl --request POST \
--url https://{deployment}/v1/streams/{stream_key}/seal \
--header 'Authorization: Bearer <token>'import requests
url = "https://{deployment}/v1/streams/{stream_key}/seal"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{deployment}/v1/streams/{stream_key}/seal', 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://{deployment}/v1/streams/{stream_key}/seal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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://{deployment}/v1/streams/{stream_key}/seal"
req, _ := http.NewRequest("POST", 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.post("https://{deployment}/v1/streams/{stream_key}/seal")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{deployment}/v1/streams/{stream_key}/seal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sealed": true,
"batch_id": "<string>",
"root_hash": "<string>",
"leaf_count": 123,
"signing_key_ref": "<string>",
"anchor": {
"provider": "<string>",
"root_hash": "<string>",
"signature": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"instructions": "<string>",
"warning": "<string>",
"anchored": true,
"why_not": "<string>",
"beacon": {},
"proves": "<string>"
},
"reason": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Evidence
Seal
Seal unsealed trajectories on a stream into a signed, anchored root.
Exposed for on-demand sealing and for tests; the scheduled sweep calls the same function. Sealing on demand must never be the only path — evidence that only becomes provable when someone remembers to ask is not evidence.
Who may call it: governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.
POST
/
v1
/
streams
/
{stream_key}
/
seal
Seal
curl --request POST \
--url https://{deployment}/v1/streams/{stream_key}/seal \
--header 'Authorization: Bearer <token>'import requests
url = "https://{deployment}/v1/streams/{stream_key}/seal"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{deployment}/v1/streams/{stream_key}/seal', 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://{deployment}/v1/streams/{stream_key}/seal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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://{deployment}/v1/streams/{stream_key}/seal"
req, _ := http.NewRequest("POST", 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.post("https://{deployment}/v1/streams/{stream_key}/seal")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{deployment}/v1/streams/{stream_key}/seal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"sealed": true,
"batch_id": "<string>",
"root_hash": "<string>",
"leaf_count": 123,
"signing_key_ref": "<string>",
"anchor": {
"provider": "<string>",
"root_hash": "<string>",
"signature": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"instructions": "<string>",
"warning": "<string>",
"anchored": true,
"why_not": "<string>",
"beacon": {},
"proves": "<string>"
},
"reason": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}