Skip to main content
POST
/
v3
/
documents
Add document
const url = 'https://api.supermemory.ai/v3/documents';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"content":"<string>"}'
};

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

Authorizations

Authorization
string
header
required

Body

application/json
content
string
required
containerTag
string
containerTags
string[]
deprecated
customId
string
metadata
object

Response

id
string
required
status
string
required