List documents
JavaScript
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({containerTags: ['user_123', 'project_123']})
};
fetch('https://api.supermemory.ai/v3/connections/{provider}/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
Responses
| Status Code | Description |
|---|---|
| 200 | Success |
| 401 | Unauthorized |
| 404 | Not Found |
| 500 | Server Error |
[
{
"createdAt": "<string>",
"id": "<string>",
"status": "<string>",
"summary": "<string>",
"title": "<string>",
"type": "<string>",
"updatedAt": "<string>"
}
]
Documentation Index
Fetch the complete documentation index at: https://supermemory.ai/docs/llms.txt
Authorizations
Authorizationstring
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
providerenum<string>
required
Available options:
notiongoogle-driveonedrivegmailgithubweb-crawlers3
Body
containerTagsstring[]
Optional comma-separated list of container tags to filter documents by
Maximum string length: 100
Pattern: ^[a-zA-Z0-9_:-]+$
Example:
["user_123", "project_123"]
Response
- 200
application/json
List of documents
createdAt
string<datetime>
required
id
string
required
status
string<datetime>
required
summary
string | null
required
title
string | null
required
type
string
required
updatedAt
string<datetime>
required