custom_id 检索工作空间。要使用调用方定义的 custom_id 查找工作空间,请将 by_custom_id 查询参数设置为 true,并将自定义 ID 作为路径参数传入。
所需权限:
workspace:readDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws_abc123def456' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"data": {
"id": "ws-fe314186ccd18cde04d6af48a5afd79f",
"name": "My Research Workspace",
"description": "Central workspace for research documents and notes",
"metadata": {
"team": "research",
"priority": "high"
},
"custom_id": "research-ws-001",
"created_at": "2025-03-10T08:30:00Z",
"updated_at": "2025-03-15T12:00:00Z"
}
}
通过 ID 或自定义 ID 检索工作空间详情
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws_abc123def456' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"data": {
"id": "ws-fe314186ccd18cde04d6af48a5afd79f",
"name": "My Research Workspace",
"description": "Central workspace for research documents and notes",
"metadata": {
"team": "research",
"priority": "high"
},
"custom_id": "research-ws-001",
"created_at": "2025-03-10T08:30:00Z",
"updated_at": "2025-03-15T12:00:00Z"
}
}
GET /openapi/memorylake/api/v3/workspaces/{id}
custom_id 检索工作空间。要使用调用方定义的 custom_id 查找工作空间,请将 by_custom_id 查询参数设置为 true,并将自定义 ID 作为路径参数传入。
workspace:readcurl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/workspaces/ws_abc123def456' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"data": {
"id": "ws-fe314186ccd18cde04d6af48a5afd79f",
"name": "My Research Workspace",
"description": "Central workspace for research documents and notes",
"metadata": {
"team": "research",
"priority": "high"
},
"custom_id": "research-ws-001",
"created_at": "2025-03-10T08:30:00Z",
"updated_at": "2025-03-15T12:00:00Z"
}
}