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
|