POST
/
memories
/
add
JavaScript
import Hyperspell from 'hyperspell';

const client = new Hyperspell({
  apiKey: 'My API Key',
});

const memoryStatus = await client.memories.add({ text: 'text' });

console.log(memoryStatus.id);
{
  "id": 123,
  "source": "collections",
  "resource_id": "<string>",
  "status": "pending"
}

Authorizations

Authorization
string
header
required

API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.