Add document
client.add(AddParams { content, containerTag, containerTags, 6 more } body, RequestOptionsoptions?): AddResponse { 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.add({ content: 'content' });
console.log(response.id);{
"id": "id",
"status": "status"
}Returns Examples
{
"id": "id",
"status": "status"
}