Get notifications for an Agent


You can get a list of all notifications for an agent

Settings:

URL

https://partners.99digital.co.il/api/online/getNotifications

Method

JSON via POST

Header

Authorization: Bearer {{access_token}}

*The access_token can be received from settings->get access token API.


Body:

Parameter

Description / Example

accountID

The account ID you wish to do the action on

agentID

The agent ID

server

The server subdomain hosting the account

page

Every page contains 15 notifications

provide an int number for example 1


Response:


{
"status": "OK",
"accountID": 4142,
"agentID": 3142,
"server": "online",
"meta": { "unread_count": 38, "count": 41, "current_page": "1" },
  "payload": [the-full-payload-data] }
}


Response-Explain:

Parameter

Description

status

OK or FAIL

"OK" means the request was successful.

"Fail" means error.

accountID

The account ID you provided

agentID

The agent ID you provided

server

The server you provided

meta

The full data of the notifications

reason

'reason' is the status explanation in case of FAIL

1

not FAIL. the status is OK

2

Wrong credentials

3

Access token does not exist or expired, please generate another one from Settings - Get access token API

13

you need to use POST method.

29

accountID is invalid or wrong

32

You cant connect to a suspended account

34

server is invalid or wrong

35

agentID is invalid or wrong

37

Wrong page