Fetch one scene
curl --request GET \
--url http://localhost:8080/v1/scenes/{id} \
--header 'x-hyphae-key: <api-key>'import requests
url = "http://localhost:8080/v1/scenes/{id}"
headers = {"x-hyphae-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-hyphae-key': '<api-key>'}};
fetch('http://localhost:8080/v1/scenes/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/v1/scenes/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-hyphae-key: <api-key>"
],
]);
$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 := "http://localhost:8080/v1/scenes/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-hyphae-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/v1/scenes/{id}")
.header("x-hyphae-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/v1/scenes/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-hyphae-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "<string>",
"project_id": "<string>",
"centroid": [
123
],
"summary": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}Scenes
Fetch one scene
Fetch a single scene by id. An absent or out-of-scope scene returns 404 (out-of-scope is indistinguishable from absent, by design).
GET
/
v1
/
scenes
/
{id}
Fetch one scene
curl --request GET \
--url http://localhost:8080/v1/scenes/{id} \
--header 'x-hyphae-key: <api-key>'import requests
url = "http://localhost:8080/v1/scenes/{id}"
headers = {"x-hyphae-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-hyphae-key': '<api-key>'}};
fetch('http://localhost:8080/v1/scenes/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/v1/scenes/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-hyphae-key: <api-key>"
],
]);
$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 := "http://localhost:8080/v1/scenes/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-hyphae-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:8080/v1/scenes/{id}")
.header("x-hyphae-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/v1/scenes/{id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-hyphae-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "<string>",
"project_id": "<string>",
"centroid": [
123
],
"summary": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>"
}
}Authorizations
The API key issued for the calling agent. Required on every endpoint except GET /healthz.
Path Parameters
The scene id (UUID).
Response
The requested scene.
A clustering of related cells around a centroid. summary is an LLM synthesis of the scene's member cells, so a scene is content: every read of it is tenant-scoped.
Always set; server-derived and always the caller's own tenant (a scoped read cannot return another's). default in V1.
The scene centroid vector.