Add document
client.documents.add(DocumentAddParams { content, containerTag, containerTags, 6 more } body, RequestOptionsoptions?): DocumentAddResponse { id, status }
POST/v3/documents
Add document
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});
const response = await client.documents.add({ content: 'content' });
console.log(response.id);{
"id": "id",
"status": "status"
}Returns Examples
{
"id": "id",
"status": "status"
}