API reference
Forget a memory id
const url = 'https://api.helping.io/v1/memory/forget';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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/forget \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "memory_id": "user-8f2a" }'Deletes every conversation held under the id for this API key. What was
remembered stops being used at once, and the id starts fresh. Forgetting
an id that holds nothing succeeds. With fact_id, forgets that one fact
instead, and an earlier value it replaced is remembered again.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The memory id to forget.
Forget a memory id, or one fact it holds.
object
One fact of that memory, as a fact_... id. Absent, the whole memory
is forgotten. It cannot be null: a caller whose fact variable is unset
meant one fact, and must not lose the whole memory.
The memory id. It travels in the body and never in the path, because it can be an email.
Example
{ "memory_id": "user-8f2a"}Responses
Section titled “Responses”{object: "memory.forgotten", forgotten: true}.
The answer to a forget. The id is not echoed.
object
Always true.
Always memory.forgotten.
Examplegenerated
{ "forgotten": true, "object": "example"}The body is malformed, or memory_id is empty or too long (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)
fact_id names no fact held under this memory id (the error envelope)
This organization has exhausted its delete 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.