Hard-erase a candidate and return a content-free receipt
curl --request DELETE \
--url https://api.praxa.io/v1/memory/records/{recordId} \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'const options = {
method: 'DELETE',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.praxa.io/v1/memory/records/{recordId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.praxa.io/v1/memory/records/{recordId}"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"apiVersion": "v1",
"erased": true,
"replayed": false,
"receipt": {
"receiptId": "018f0000-0000-7000-8000-000000000001",
"recordId": "018f0000-0000-7000-8000-000000000001",
"providerId": "mem0",
"sourceId": "source-id-demo-0001",
"externalRecordId": "external-record-id-demo-0001",
"revision": "revision-demo-0001",
"sourceFingerprint": "source-fingerprint-demo-0001",
"deletedAt": "2026-08-13T12:00:00.000Z",
"receiptDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
Memory candidates
Hard-erase a candidate and return a content-free receipt
Hard-erase one Praxa memory candidate and receive a content-free, replay-safe deletion receipt without deleting its provider source.
DELETE
/
v1
/
memory
/
records
/
{recordId}
Hard-erase a candidate and return a content-free receipt
curl --request DELETE \
--url https://api.praxa.io/v1/memory/records/{recordId} \
--header 'Authorization: Bearer <token>' \
--header 'Idempotency-Key: <idempotency-key>'const options = {
method: 'DELETE',
headers: {'Idempotency-Key': '<idempotency-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.praxa.io/v1/memory/records/{recordId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.praxa.io/v1/memory/records/{recordId}"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"apiVersion": "v1",
"erased": true,
"replayed": false,
"receipt": {
"receiptId": "018f0000-0000-7000-8000-000000000001",
"recordId": "018f0000-0000-7000-8000-000000000001",
"providerId": "mem0",
"sourceId": "source-id-demo-0001",
"externalRecordId": "external-record-id-demo-0001",
"revision": "revision-demo-0001",
"sourceFingerprint": "source-fingerprint-demo-0001",
"deletedAt": "2026-08-13T12:00:00.000Z",
"receiptDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
Hard-erase one Praxa memory candidate and receive a content-free, replay-safe deletion receipt without deleting its provider source.
Availability: Qualification preview. Required scope:
memory:write.Authenticate safely
Create a disposable personal workspace API key with exactlymemory:write. Send it as Authorization: Bearer $PRAXA_API_KEY. A Gateway OAuth token, Supabase JWT, provider credential, or organization memory key is not interchangeable with this key.
The hosted playground sends the credential from your browser session to the documented API through the configured playground proxy. Use test data, never share the key, and revoke it when the check ends.
Request fields
string
required
recordId path parameter.
string
required
Stable key for one logical mutation. Reuse only with the exact same request; changed input under the same key returns a conflict.
Runnable request examples
curl --fail-with-body -X DELETE 'https://api.praxa.io/v1/memory/records/018f0000-0000-7000-8000-000000000002' \
-H "Authorization: Bearer $PRAXA_API_KEY" \
-H "Idempotency-Key: playground-delete-memory-candidate-0001"
const response = await fetch("https://api.praxa.io/v1/memory/records/018f0000-0000-7000-8000-000000000002", {
"method": "DELETE",
"headers": {
"Authorization": `Bearer ${process.env.PRAXA_API_KEY}`,
"Idempotency-Key": "playground-delete-memory-candidate-0001"
}
});
const text = await response.text();
if (!response.ok) throw new Error(`${response.status}: ${text}`);
console.log(text ? JSON.parse(text) : { status: response.status });
import json
import os
from urllib import error, request
req = request.Request(
"https://api.praxa.io/v1/memory/records/018f0000-0000-7000-8000-000000000002",
method="DELETE",
headers={
"Authorization": f"Bearer {os.environ['PRAXA_API_KEY']}",
"Idempotency-Key": "playground-delete-memory-candidate-0001"
},
)
try:
with request.urlopen(req, timeout=30) as response:
text = response.read().decode()
print(json.loads(text) if text else {"status": response.status})
except error.HTTPError as exc:
raise RuntimeError(f"{exc.code}: {exc.read().decode()}") from exc
What success means
A200 response confirms candidate erasure or exact deletion replay. Provider-owned source data is unchanged.
Successful response
200 — Candidate content erased or exact deletion replayed.v1
required
apiVersion response field.
true
required
erased response field.
boolean
required
replayed response field.
object
required
receipt response field.
{
"apiVersion": "v1",
"erased": true,
"replayed": false,
"receipt": {
"receiptId": "018f0000-0000-7000-8000-000000000001",
"recordId": "018f0000-0000-7000-8000-000000000001",
"providerId": "mem0",
"sourceId": "source-id-demo-0001",
"externalRecordId": "external-record-id-demo-0001",
"revision": "revision-demo-0001",
"sourceFingerprint": "source-fingerprint-demo-0001",
"deletedAt": "2026-08-13T12:00:00.000Z",
"receiptDigest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
Handle failures
| Response | Meaning | Safe action |
|---|---|---|
400 invalid_request | The method, path, headers, query, or body failed strict validation. | Correct the request; do not retry unchanged input. |
401 authentication_failed | The bearer key is missing, malformed, expired, or revoked. | Stop and replace the key through the authenticated console. |
403 authorization_failed | The authenticated key lacks scope or tenant authority. | Request only the missing least-privilege scope; never substitute another tenant ID. |
409 conflict | The same idempotency key was paired with different logical input or state. | Restore the original body or create a key for a genuinely new operation. |
429 rate_limited | The principal exceeded a bounded rate. | Honor retryAfterMs or Retry-After, add jitter, and cap attempts. |
retryable 5xx | The server could not confirm a final response. | Reconcile reads or replay the exact keyed mutation before creating new work. |
Example problem
{
"type": "https://docs.praxa.io/problems/authorization-failed",
"title": "Authorization failed",
"status": 403,
"code": "authorization_failed",
"detail": "The API key does not grant the required scope.",
"retryable": false
}
Verify the result
- Require
erased: trueand a content-free receipt. - Query the subject and confirm candidate content is absent.
- Replay with the same key and require the same receipt.
Retry, cleanup, and production use
- Treat
401,403, and409as authority or state signals, not generic retry prompts. - Reuse the idempotency key only for an exact retry of the same logical mutation.
- For
429or retryable 5xx responses, follow server retry guidance and keep a bounded attempt budget. - Move the request into a trusted application backend before production; never ship the Praxa key in browser or mobile code.
- Revoke the disposable key, disable test webhooks, and erase disposable candidate data after validation.
Last modified on August 14, 2026