const url = 'https://api.supermemory.ai/v3/documents/processing';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}{
"documents": [
{
"id": "doc_123",
"customId": "custom_123",
"title": "My Document",
"type": "text",
"status": "extracting",
"createdAt": "2024-12-27T12:00:00Z",
"updatedAt": "2024-12-27T12:01:00Z",
"metadata": {},
"containerTags": [
"sm_project_default"
]
}
],
"totalCount": 5
}Get documents that are currently being processed
const url = 'https://api.supermemory.ai/v3/documents/processing';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}{
"documents": [
{
"id": "doc_123",
"customId": "custom_123",
"title": "My Document",
"type": "text",
"status": "extracting",
"createdAt": "2024-12-27T12:00:00Z",
"updatedAt": "2024-12-27T12:01:00Z",
"metadata": {},
"containerTags": [
"sm_project_default"
]
}
],
"totalCount": 5
}Was this page helpful?