Skip to content

Commit

Permalink
[core][docs] Add GET /messages request. Fix #31
Browse files Browse the repository at this point in the history
  • Loading branch information
allburov committed Dec 19, 2022
1 parent 65d0f87 commit 0802ee6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/site/content/en/docs/help/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ menu:
weight: 600
toc: true
---
## 2022.12
- Added `GET /messages/` endpoint to get chat messages [#31](https://github.com/devlikeapro/whatsapp-http-api/issues/31)

## 2022.11
**Please test changes in test environment before update production!!**
Expand Down
9 changes: 9 additions & 0 deletions docs/site/content/en/docs/how-to/receive-messages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,12 @@ To configure the url you can use environment variables `WHATSAPP_API_HOSTNAME` a
## Webhook retries ![](/images/versions/plus.png)

**WAHA** retries to reach your webhook URL 15 times and with 2 seconds delay between attempts.

## Get messages
You can read messages from the history by using `GET /api/messages` endpoint.

```bash
curl -X 'GET' \
'http://localhost:3000/api/messages?chatId=11111111111%40c.us&limit=1000&session=default' \
-H 'accept: application/json'
```
Loading

0 comments on commit 0802ee6

Please sign in to comment.