API reference
List what a memory id holds
const url = 'https://api.helping.io/v1/memory/list';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"limit":20,"memory_id":"user-8f2a"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The memory id, and which page of it.
List what a memory id holds.
object
Return the facts after this one. Pass the last_id of the previous
page.
How many facts to return, from 1 to 500. Defaults to 20.
The memory id, as sent in helpingio:memory_id.
Example
{ "limit": 20, "memory_id": "user-8f2a"}Responses
Section titled “Responses”A page of facts, echoing helpingio:memory_id.
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
The facts, newest first.
One remembered fact.
object
The value recorded.
object
The conversation the fact was recorded in.
When the fact was recorded, in Unix seconds.
The fact’s id. Pass it to forget this fact alone.
What sort of fact this is.
Always memory.fact.
Which property of the subject the fact records.
Who or what the fact is about.
A short description of the fact, when one was recorded.
The id of the first fact on this page.
Whether more facts exist after this page.
The memory id you asked for.
The id of the last fact on this page; pass it as after for the next
page.
Always list.
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.