Get Graph Entity
curl --request GET \
--url https://api.example.com/admin/v1/item-graph/entities/{id}import requests
url = "https://api.example.com/admin/v1/item-graph/entities/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/admin/v1/item-graph/entities/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/v1/item-graph/entities/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"entity": {
"id": 123,
"memoryId": "<string>",
"userId": "<string>",
"agentId": "<string>",
"entityKey": "<string>",
"displayName": "<string>",
"entityType": "<string>",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"aliases": [
{
"id": 123,
"memoryId": "<string>",
"userId": "<string>",
"agentId": "<string>",
"entityKey": "<string>",
"entityType": "<string>",
"normalizedAlias": "<string>",
"evidenceCount": 123,
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"mentionCount": 123,
"topMentionedItemIds": [
123
],
"topCooccurrences": [
{
"id": 123,
"memoryId": "<string>",
"userId": "<string>",
"agentId": "<string>",
"leftEntityKey": "<string>",
"rightEntityKey": "<string>",
"cooccurrenceCount": 123,
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"entityOverlapItemLinkCount": 123
}
}Item Graph
Get Graph Entity
GET
/
admin
/
v1
/
item-graph
/
entities
/
{id}
Get Graph Entity
curl --request GET \
--url https://api.example.com/admin/v1/item-graph/entities/{id}import requests
url = "https://api.example.com/admin/v1/item-graph/entities/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/admin/v1/item-graph/entities/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/v1/item-graph/entities/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": {
"entity": {
"id": 123,
"memoryId": "<string>",
"userId": "<string>",
"agentId": "<string>",
"entityKey": "<string>",
"displayName": "<string>",
"entityType": "<string>",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"aliases": [
{
"id": 123,
"memoryId": "<string>",
"userId": "<string>",
"agentId": "<string>",
"entityKey": "<string>",
"entityType": "<string>",
"normalizedAlias": "<string>",
"evidenceCount": 123,
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"mentionCount": 123,
"topMentionedItemIds": [
123
],
"topCooccurrences": [
{
"id": 123,
"memoryId": "<string>",
"userId": "<string>",
"agentId": "<string>",
"leftEntityKey": "<string>",
"rightEntityKey": "<string>",
"cooccurrenceCount": 123,
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"entityOverlapItemLinkCount": 123
}
}
