Overview
This API is used to retrieve detailed information about a single memory based on the specified memory space ID and memory ID.
API details
Constraints
- The caller must have an API key. For more information, see Manage AI API keys.
Request path
GET {BASE_URL}/api/v1/memory/spaces/{spaceId}/memories/{memoryId}
Request headers
Name |
Required |
Example value |
Description |
|---|---|---|---|
| Authorization | Yes | Bearer {token} | Authentication information. |
| X-OB-Project-ID | Yes | your-project-id | Project ID |
| Content-Type | No | application/json | Request body format. |
Request parameters
Path parameters
Name |
Type |
Required |
Example value |
Description |
|---|---|---|---|---|
| spaceId | string | Yes | space-123 | Memory space ID. |
| memoryId | integer | Yes | 1234567890 | Memory ID (snowflake int64). |
Response
Response parameters
Name |
Type |
Description |
|---|---|---|
| success | boolean | Whether the request was successful |
| code | string | Response code. |
| message | string | Response message. |
| data | object | Response data. |
Data fields
The data field contains the memory details. Its structure is defined by the upstream service and is not specified in the source documentation.
Request example
curl --request GET '{BASE_URL}/api/v1/memory/spaces/space-123/memories/1234567890123456' \
--header 'Authorization: Bearer {token}' \
--header 'X-OB-Project-ID: your-project-id'
Response example
{
"success": true,
"code": "200",
"message": "successful",
"data": {
"id": 1234567890123456,
"content": "This is an example of a piece of memory content.",
"metadata": {}
}
}
