List Memory Thread Items
curl --request GET \
--url https://api.example.com/admin/v1/memory-threads/{threadKey}/itemsimport requests
url = "https://api.example.com/admin/v1/memory-threads/{threadKey}/items"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/admin/v1/memory-threads/{threadKey}/items', 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/memory-threads/{threadKey}/items"
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": [
{
"userId": "<string>",
"agentId": "<string>",
"memoryId": "<string>",
"threadKey": "<string>",
"itemId": 123,
"role": "<string>",
"primary": true,
"relevanceWeight": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}Memory Threads
List Memory Thread Items
GET
/
admin
/
v1
/
memory-threads
/
{threadKey}
/
items
List Memory Thread Items
curl --request GET \
--url https://api.example.com/admin/v1/memory-threads/{threadKey}/itemsimport requests
url = "https://api.example.com/admin/v1/memory-threads/{threadKey}/items"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/admin/v1/memory-threads/{threadKey}/items', 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/memory-threads/{threadKey}/items"
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": [
{
"userId": "<string>",
"agentId": "<string>",
"memoryId": "<string>",
"threadKey": "<string>",
"itemId": 123,
"role": "<string>",
"primary": true,
"relevanceWeight": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
