POST
/
v3
/
memories
/
documents
List documents with memory entries
const url = 'https://api.supermemory.ai/v3/memories/documents';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"page":1,"limit":10,"sort":"createdAt","order":"desc","containerTags":["sm_project_default"]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "documents": [
    {
      "averageChunkSize": -1,
      "chunkCount": -1,
      "connectionId": "<string>",
      "content": "<string>",
      "contentHash": "<string>",
      "createdAt": "<string>",
      "customId": "<string>",
      "id": "<string>",
      "metadata": "<string>",
      "orgId": "<string>",
      "processingMetadata": "<string>",
      "raw": null,
      "source": "<string>",
      "status": "unknown",
      "summary": "<string>",
      "summaryEmbedding": [
        123
      ],
      "summaryEmbeddingModel": "<string>",
      "title": "<string>",
      "tokenCount": -1,
      "type": "text",
      "updatedAt": "<string>",
      "url": "<string>",
      "userId": "<string>",
      "wordCount": -1,
      "memoryEntries": [
        {
          "createdAt": "2023-11-07T05:31:56Z",
          "forgetAfter": "2023-11-07T05:31:56Z",
          "forgetReason": "<string>",
          "id": "<string>",
          "isForgotten": true,
          "isLatest": true,
          "memory": "<string>",
          "memoryEmbedding": [
            123
          ],
          "memoryEmbeddingModel": "<string>",
          "memoryEmbeddingNew": [
            123
          ],
          "memoryEmbeddingNewModel": "<string>",
          "metadata": "<string>",
          "orgId": "<string>",
          "parentMemoryId": "<string>",
          "rootMemoryId": "<string>",
          "sourceCount": -1,
          "spaceId": "<string>",
          "updatedAt": "2023-11-07T05:31:56Z",
          "version": -1,
          "sourceAddedAt": "<string>",
          "sourceRelevanceScore": 123,
          "sourceMetadata": {},
          "spaceContainerTag": "<string>"
        }
      ]
    }
  ],
  "pagination": {
    "currentPage": 1,
    "limit": 10,
    "totalItems": 100,
    "totalPages": 10
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Query parameters for listing documents with memory entries

Response

200
application/json

Successfully retrieved documents with memory entries

List of documents with their memory entries