Javascript
import Supermemory from 'supermemory'; const client = new Supermemory({ apiKey: 'My API Key', }); const response = await client.memories.add(); console.log(response.id);
{ "id": "<string>", "status": "<string>" }
Add a memory with any content type (text, url, file, etc.) and metadata
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Memory added successfully
The response is of type object.
object
Was this page helpful?