Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(api): fix history and reactions cURL paths missing the /messages segment (#910)

Yudhi Armyndharis5184b617f738
diff --git a/docs/07-api-collection.md b/docs/07-api-collection.md
index 9bda465af..ab7e44126 100644
--- a/docs/07-api-collection.md
+++ b/docs/07-api-collection.md
@@ -221,7 +221,7 @@ curl "$BASE/api/sessions/my-session/[email protected]&limit=20&o
Fetch chat history live from WhatsApp, bypassing the DB.
```bash
-curl "$BASE/api/sessions/my-session/[email protected]/history?limit=100&deep=true" \
+curl "$BASE/api/sessions/my-session/messages/[email protected]/history?limit=100&deep=true" \
-H "X-API-Key: $API_KEY"
```
@@ -230,7 +230,7 @@ curl "$BASE/api/sessions/my-session/[email protected]/history?limit=100&deep=tru
Get reactions for a message, grouped by emoji.
```bash
-curl "$BASE/api/sessions/my-session/[email protected]/[email protected]_3EB0ABCD/reactions" \
+curl "$BASE/api/sessions/my-session/messages/[email protected]/[email protected]_3EB0ABCD/reactions" \
-H "X-API-Key: $API_KEY"
```