Skip to main content
POST
/
v3
/
connections
/
{provider}
/
documents
List documents
const url = 'https://api.supermemory.ai/v3/connections/{provider}/documents';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"containerTags":["user_123","project_123"]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
[
  {
    "createdAt": "<string>",
    "id": "<string>",
    "status": "<string>",
    "summary": "<string>",
    "title": "<string>",
    "type": "<string>",
    "updatedAt": "<string>"
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

provider
enum<string>
required
Available options:
notion,
google-drive,
onedrive

Body

application/json
containerTags
string[]

Optional comma-separated list of container tags to filter documents by

Example:
["user_123", "project_123"]

Response

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
I