package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.elefork.com/v1/episodes/example/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(res) fmt.Println(string(body))
}const url = 'https://api.elefork.com/v1/episodes/example/seal';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.elefork.com/v1/episodes/example/seal \ --header 'Authorization: Bearer <token>'Immediately revokes every credential issued for the episode’s branch and refuses new ones. Then, after one
route lease (gateways may still hold the old route that long), terminates the agent’s sessions, takes a
pinned checkpoint, deletes the branch and scores a disposable copy of the sealed state. Poll the episode
until its state is scored, tampered or failed. Sealing again returns the current state.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Sealing (or already sealed)
object
Tampered: the environment was changed in a way that can fake a result (no score). review: scored, but something needs a human look (e.g. episode WAL unavailable).
Scorer report (empty until scored).
object
False for superuser tasks; some cheats cannot be detected generically
object
Added, removed, changed, transient (modified and restored; seen only in WAL), …
object
object
object
Episode record of table changes relative to the start state.
object
Example
{ "state": "running", "integrity": "clean", "result": { "findings": [ { "severity": "high" } ], "wal_scan": { "status": "ok" }, "data_changes": [ { "change": "added" } ] }}Error
object
object
Example
{ "error": { "code": "not_found" }}Error
object
object
Example
{ "error": { "code": "not_found" }}Error
object
object
Example
{ "error": { "code": "not_found" }}Error
object
object
Example
{ "error": { "code": "not_found" }}Error
object
object
Example
{ "error": { "code": "not_found" }}Temporarily unavailable; retry after the Retry-After seconds. Codes:
database_unavailable (the metadata database is failing over) and
cube_admission (a compute node runs a sandbox shim below the
platform minimum, so creates, forks, checkpoints and resets are
refused until it is upgraded).
object
object
Example
{ "error": { "code": "not_found" }}