Add document
Add a document with any content type (text, url, file, etc.) and metadata
Body ParametersJSON
The content to extract and process into a document. This can be a URL to a website, a PDF, an image, or a video.
Optional tag this document should be containerized by. Max 100 characters, alphanumeric with hyphens, underscores, and dots only.
Optional custom ID of the document. Max 100 characters, alphanumeric with hyphens, underscores, and dots only.
When this document’s content is from, as opposed to when it was uploaded. Accepts YYYY-MM-DD or a full ISO 8601 timestamp. Memory extraction resolves relative dates against this instead of the ingestion time, and documents in a batch are processed oldest-first so newer facts correctly supersede older ones. Set this whenever you backfill historical content.
Optional entity context for this container tag. Max 1500 characters. Used during document processing to guide memory extraction.
Add document
curl https://api.supermemory.ai/v3/documents \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $SUPERMEMORY_API_KEY" \
-d '{
"content": "content"
}'{
"id": "id",
"status": "status"
}Returns Examples
{
"id": "id",
"status": "status"
}