Messages
List messages in a conversation
GET
/
v1
/
conversations
/
{convID}
/
messages
List messages in a conversation
curl --request GET \
--url https://api.wazapin.com/v1/conversations/{convID}/messagesconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/conversations/{convID}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/conversations/{convID}/messages"
response = requests.get(url)
print(response.text){
"items": [
{
"channel_id": "<string>",
"content": "<unknown>",
"conversation_id": "<string>",
"created_at": "<string>",
"delivered_at": "<string>",
"direction": "<string>",
"error": "<string>",
"error_code": "<string>",
"external_message_id": "<string>",
"failed_at": "<string>",
"id": "<string>",
"max_retries": 123,
"metadata": "<unknown>",
"organization_id": "<string>",
"provider_message_id": "<string>",
"queued_at": "<string>",
"read_at": "<string>",
"retry_count": 123,
"sender_phone": "<string>",
"sending_at": "<string>",
"sent_at": "<string>",
"sent_by": "<string>",
"sent_via": "<string>",
"status": "<string>",
"to_phone": "<string>",
"type": "<string>",
"updated_at": "<string>",
"reply_preview": {
"has_resolved_content": true,
"text": "<string>",
"message_id": "<string>",
"provider_message_id": "<string>",
"sender_label": "<string>"
}
}
],
"meta": {
"has_more": true,
"limit": 123,
"cursor": "<string>",
"next_cursor": "<string>",
"offset": 123,
"total": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Path Parameters
Conversation ID
Query Parameters
Results per page
Required range:
1 <= x <= 100Cursor for pagination
Pagination direction
Available options:
after, before ⌘I
List messages in a conversation
curl --request GET \
--url https://api.wazapin.com/v1/conversations/{convID}/messagesconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/conversations/{convID}/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/conversations/{convID}/messages"
response = requests.get(url)
print(response.text){
"items": [
{
"channel_id": "<string>",
"content": "<unknown>",
"conversation_id": "<string>",
"created_at": "<string>",
"delivered_at": "<string>",
"direction": "<string>",
"error": "<string>",
"error_code": "<string>",
"external_message_id": "<string>",
"failed_at": "<string>",
"id": "<string>",
"max_retries": 123,
"metadata": "<unknown>",
"organization_id": "<string>",
"provider_message_id": "<string>",
"queued_at": "<string>",
"read_at": "<string>",
"retry_count": 123,
"sender_phone": "<string>",
"sending_at": "<string>",
"sent_at": "<string>",
"sent_by": "<string>",
"sent_via": "<string>",
"status": "<string>",
"to_phone": "<string>",
"type": "<string>",
"updated_at": "<string>",
"reply_preview": {
"has_resolved_content": true,
"text": "<string>",
"message_id": "<string>",
"provider_message_id": "<string>",
"sender_label": "<string>"
}
}
],
"meta": {
"has_more": true,
"limit": 123,
"cursor": "<string>",
"next_cursor": "<string>",
"offset": 123,
"total": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}