Skip to content
Get an API key

API reference

List what a memory id holds

POST
/v1/memory/list
curl --request POST \
--url https://api.helping.io/v1/memory/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "limit": 20, "memory_id": "user-8f2a" }'

Returns the facts remembered under the id for this API key, newest first. Page with after, passing the last_id of the previous page; reading every page exports the memory. An id that holds nothing returns an empty list.

The memory id, and which page of it.

Media typeapplication/json

List what a memory id holds.

object
after

Return the facts after this one. Pass the last_id of the previous page.

string | null
limit

How many facts to return, from 1 to 500. Defaults to 20.

integer | null format: int64
memory_id
required

The memory id, as sent in helpingio:memory_id.

string
Example
{
"limit": 20,
"memory_id": "user-8f2a"
}

A page of facts, echoing helpingio:memory_id.

Media typeapplication/json

A page of the facts a memory id holds, newest first.

first_id and last_id are empty strings on an empty page. has_more tells you whether to ask again.

object
data
required

The facts, newest first.

Array<object>

One remembered fact.

object
content
required

The value recorded.

object
conversation_id
required

The conversation the fact was recorded in.

string
created_at
required

When the fact was recorded, in Unix seconds.

integer format: int64
id
required

The fact’s id. Pass it to forget this fact alone.

string
kind
required

What sort of fact this is.

string
object
required

Always memory.fact.

string
slot

Which property of the subject the fact records.

string | null
subject

Who or what the fact is about.

string | null
summary

A short description of the fact, when one was recorded.

string | null
first_id
required

The id of the first fact on this page.

string
has_more
required

Whether more facts exist after this page.

boolean
helpingio:memory_id
required

The memory id you asked for.

string
last_id
required

The id of the last fact on this page; pass it as after for the next page.

string
object
required

Always list.

string
Examplegenerated
{
"data": [
{
"content": {},
"conversation_id": "example",
"created_at": 1,
"id": "example",
"kind": "example",
"object": "example",
"slot": "example",
"subject": "example",
"summary": "example"
}
],
"first_id": "example",
"has_more": true,
"helpingio:memory_id": "example",
"last_id": "example",
"object": "example"
}

The body is malformed, memory_id is empty or too long, after is not a fact id from this memory, or limit is outside 1..=500 (the error envelope)

Missing or invalid API key (the error envelope)

The key is not entitled to what the request asked for (the error envelope)

This organization has exhausted its retrieval allowance; retry after the Retry-After header.

The request could not be completed; quote the x-request-id response header when reporting it.

The request could not be served this instant; retry after the Retry-After header.