Agents
Get workspace memory
Get long-term memory records for the workspace (paginated, per user)
GET
/
api
/
agents
/
workspace-memory
Get workspace memory
curl --request GET \
--url https://{baseUrl}/api/v1/api/agents/workspace-memoryimport requests
url = "https://{baseUrl}/api/v1/api/agents/workspace-memory"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/agents/workspace-memory', 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://{baseUrl}/api/v1/api/agents/workspace-memory"
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": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"workspaceId": "550e8400-e29b-41d4-a716-446655440000",
"userId": "550e8400-e29b-41d4-a716-446655440000",
"content": "## Key Facts\n- User prefers concise answers\n- Target scope: internal network",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"total": 123,
"page": 123,
"limit": 123,
"hasNextPage": true,
"pageCount": 123
}⌘I
Get workspace memory
curl --request GET \
--url https://{baseUrl}/api/v1/api/agents/workspace-memoryimport requests
url = "https://{baseUrl}/api/v1/api/agents/workspace-memory"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/agents/workspace-memory', 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://{baseUrl}/api/v1/api/agents/workspace-memory"
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": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"workspaceId": "550e8400-e29b-41d4-a716-446655440000",
"userId": "550e8400-e29b-41d4-a716-446655440000",
"content": "## Key Facts\n- User prefers concise answers\n- Target scope: internal network",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"total": 123,
"page": 123,
"limit": 123,
"hasNextPage": true,
"pageCount": 123
}