Javascript
import Supermemory from 'supermemory'; const client = new Supermemory({ apiKey: 'My API Key', }); const response = await client.memories.uploadFile({ file: fs.createReadStream('path/to/file') }); console.log(response.id);
{ "id": "<string>", "status": "<string>" }
Upload a file to be processed
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully uploaded file
The response is of type object.
object
Was this page helpful?