Supermemory automatically detects the content type of the document you are adding.

Usage

All you have to do is pass the content to the /add endpoint, and Supermemory will automatically detect the content type of the document.

The content can be a url that points to any resource on a web. It can also be a plaintext string, or a file path.

curl -X POST https://v2.api.supermemory.ai/add \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "https://example.com/article"
  }'