Skip to content
Get an API key

API reference

Forget a memory id

POST
/v1/memory/forget
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.

The memory id to forget.

Media typeapplication/json

Forget a memory id, or one fact it holds.

object
fact_id

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.

string
memory_id
required

The memory id. It travels in the body and never in the path, because it can be an email.

string
Example
{
"memory_id": "user-8f2a"
}

{object: "memory.forgotten", forgotten: true}.

Media typeapplication/json

The answer to a forget. The id is not echoed.

object
forgotten
required

Always true.

boolean
object
required

Always memory.forgotten.

string
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.