Skip to main content
POST
/
Agent
/
Xmpp
/
PopMessages
Pop Messages
curl --request POST \
  --url https://{host}/Agent/Xmpp/PopMessages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "maxCount": 123
}
'
{
  "Messages": [
    {
      "from": "<string>",
      "to": "<string>",
      "type": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "Content": [
        {}
      ],
      "id": "<string>",
      "lang": "<string>"
    }
  ]
}

Overview

Gets messages for the account from the server.

Authentication

Requires a valid JWT bearer token.

Notes

This endpoint uses the request schema notation described in Pattern matching.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
maxCount
integer
Required range: x <= 2147483647

Response

200 - application/json

Success

Messages
object[]