Internal preview. Elefork is not publicly available yet; APIs and hostnames may change.
GET
/v1/episodes/{id}
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.elefork.com/v1/episodes/example"
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(res) fmt.Println(string(body))
}const url = 'https://api.elefork.com/v1/episodes/example';const options = {method: 'GET', 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 GET \ --url https://api.elefork.com/v1/episodes/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Episode
Media typeapplication/json
object
id
required
string
org_id
required
string
task_id
required
string
branch_id
required
string
state
required
string
seal_checkpoint_id
required
integrity
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).
string
result
required
Scorer report (empty until scored).
object
integrity
string
tamper_evident
False for superuser tasks; some cheats cannot be detected generically
boolean
findings
Array<object>
object
kind
required
string
object
string
change
required
Added, removed, changed, transient (modified and restored; seen only in WAL), …
string
severity
required
string
detail
string
wal_scan
object
status
string
detail
string
from
string
to
string
catalog_writes
object
key
additional properties
integer
rules
One of:
null
Array<object>
object
name
required
string
passed
required
boolean
value
expected
error
string
weight
required
number
ms
required
integer
data_changes
Episode record of table changes relative to the start state.
Array<object>
object
table
required
string
change
required
string
rows_before
required
integer
rows_after
required
integer
detail
string
scoring_ms
integer
error
string
created_at
required
string format: date-time
Example
{ "state": "running", "integrity": "clean", "result": { "findings": [ { "severity": "high" } ], "wal_scan": { "status": "ok" }, "data_changes": [ { "change": "added" } ] }}Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "not_found" }}Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "not_found" }}Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "not_found" }}Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
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).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "not_found" }}Headers
Section titled “Headers”Retry-After
integer