Skip to main content
GET
/
memories
/
list
JavaScript
import Hyperspell from '@hyperspell/hyperspell';

const client = new Hyperspell({
  apiKey: process.env['HYPERSPELL_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const resource of client.memories.list()) {
  console.log(resource.resource_id);
}
{
  "items": [
    {
      "resource_id": "<string>",
      "title": "<string>",
      "metadata": {
        "created_at": "2023-11-07T05:31:56Z",
        "indexed_at": "2023-11-07T05:31:56Z",
        "last_modified": "2023-11-07T05:31:56Z",
        "status": "pending",
        "events": [
          {
            "message": "<string>",
            "time": "2023-11-07T05:31:56Z"
          }
        ],
        "url": "<string>"
      },
      "score": 123,
      "folder_id": "<string>",
      "parent_folder_id": "<string>",
      "folder_ancestors": [
        "<string>"
      ]
    }
  ],
  "next_cursor": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.hyperspell.com/llms.txt

Use this file to discover all available pages before exploring further.

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.

Query Parameters

collection
string | null

Filter documents by collection.

source
enum<string> | null

Filter documents by source.

Available options:
reddit,
notion,
slack,
google_calendar,
google_mail,
box,
dropbox,
github,
google_drive,
vault,
web_crawler,
trace,
microsoft_teams,
gmail_actions,
granola,
fathom,
linear,
hubspot,
salesforce,
coda
status
enum<string> | null

Filter documents by status.

Available options:
pending,
processing,
completed,
failed,
pending_review,
skipped
filter
string | null

Filter documents by metadata using MongoDB-style operators. Example: {"department": "engineering", "priority": {"$gt": 3}}

cursor
string | null
size
integer
default:50
Required range: 0 <= x <= 100

Response

Successful Response

items
Resource · object[]
required
next_cursor
string | null
required