GET
/
api
/
{session}
/
channels
/
{id}
/
messages
/
preview
Visualizar mensagens do canal
curl --request GET \
  --url https://api.wappfy.com.br/api/{session}/channels/{id}/messages/preview \
  --header 'apikey: <api-key>'
[
  {
    "reactions": {
      "👍": 10,
      "❤️": 5
    },
    "message": {
      "id": "false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA",
      "timestamp": 1666943582,
      "from": "11111111111@c.us",
      "fromMe": true,
      "source": "api",
      "to": "11111111111@c.us",
      "participant": "<string>",
      "body": "<string>",
      "hasMedia": true,
      "media": {
        "url": "http://localhost:3000/api/files/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga",
        "mimetype": "audio/jpeg",
        "filename": "example.pdf",
        "s3": {
          "Bucket": "my-bucket",
          "Key": "default/false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA.oga"
        },
        "error": null
      },
      "ack": -1,
      "ackName": "<string>",
      "author": "<string>",
      "location": {
        "description": "<string>",
        "latitude": "<string>",
        "longitude": "<string>"
      },
      "vCards": [
        "<string>"
      ],
      "_data": {},
      "replyTo": {
        "id": "AAAAAAAAAAAAAAAAAAAA",
        "participant": "11111111111@c.us",
        "body": "Hello!",
        "_data": {}
      }
    },
    "viewCount": 123
  }
]

Authorizations

apikey
string
header
required

Apikey

Path Parameters

session
string
required

O nome da sessão (instanceName)

id
any
required

ID do canal ou código de convite

Query Parameters

downloadMedia
boolean
default:false
required
limit
number
default:10
required

Response

200 - application/json
reactions
object
required
Example:
{ "👍": 10, "❤️": 5 }
message
object
required
viewCount
number
required