fix(docs): Correct API authentication header from Bearer to Token (#3820)

This commit is contained in:
Parth Sharma
2025-12-11 00:32:59 +05:30
committed by GitHub
parent 5676bebd5f
commit 84bd6e3b97
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -69,7 +69,7 @@ await client.add(messages, { user_id: "user123" });
```bash cURL
curl -X POST https://api.mem0.ai/v1/memories/add \
-H "Authorization: Bearer $MEM0_API_KEY" \
-H "Authorization: Token $MEM0_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
@@ -97,7 +97,7 @@ console.log(results);
```bash cURL
curl -X POST https://api.mem0.ai/v1/memories/search \
-H "Authorization: Bearer $MEM0_API_KEY" \
-H "Authorization: Token $MEM0_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "What are my dietary restrictions?",