Online Usage data


This endpoint allow you to get your account's online usage data.

The data is always updated to yesterday.

There is a rate limit of 10 requests per minute to avoid abuse.


Settings:

URL

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

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

Maximum length

Mandatory

Example

month

the month + year in mmyy format

4

Yes

1026

server

server name, if relevant

30

no

online

account_id

In case you want to get data of specific account id

5

no

1


Response:


{
    "status": "OK",
    "reason": 1,
    "month": "0926",
    "month_label": "09/2026",
    "is_current_month": false,
    "server": null,
    "account_id": null,
    "totalAccounts": 1,
    "list": [
        {
            "month": "0926",
            "month_label": "09/2026",
            "year": 2026,
            "account_id": 123,
            "account_name": "Client Name",
            "online_name": "Client Name Ltd",
            "server": "online",
            "server_name": "online",
            "total_agents": 5,
            "data_amount": "74.3GB",
            "data_amount_gb": 74.3,
            "total_inboxes": 6,
            "inboxes": {
                "whatsapp": 2, "sms": 1, "facebook": 1, "api": 1,
                "website": 1, "email": 0, "line": 0, "tiktok": 0
            },
            "sms_packages": { "1": 1, "2": 0, "3": 0 },
            "chat_gpt": true,
            "builder": false,
            "mobile_app": true,
            "docal_enabled": false,
            "collected_at": 1790805612,
            "collected_at_israel": "01-10-2026 01:00:12"
        }
    ]
}


Response-Explain:

Parameter

Description

status

OK or FAIL

"OK" means the request was successful

"Fail" means error.

month

string, same as the request

month_label

string, the request in format mm/yyyy

is_current_month

boolean.

true = current month

false = old month

server

string / null.

the server filter you provided

account_id

number / null

The account filter you provider

totalAccounts

number

total accounts in the items inside 'list"

list

array.

one item per online account per server. sorted by server, then account_id. empty if there is no data.

list contains this:

field

type

description

month / month_label_year

string / string / number

month of the record (mmyyy, mm/yyyy, yyyy)

account_id

number

online account ID

account_name

string

account name

online_name

string

server name

total_agents

number

Number of agents in the account

data_amount

string

data used, as text, for example 74.2GB

data_amount_gb

number

same value as data_amount , just as a number in GB

total_inboxes

number

Total number of inboxes this account has

inboxes->whatsapp/sms/facebook/api/website/email/line/tiktok

number

number of each inbox type

sms_package

object

Number of SMS inboxes per SMS package. keys are package numbers as string for example "1" / "2" / "3". are always present. 0 if unused. any other package in use is added as an extra key.

chat_gpt

boolean

if ChatGPT is enabled or not in the account

builder

boolean

if Builder is connected to the account

mobile_app

boolean

if mobile app is enabled for the account

docal_enabled

boolean

if docal is enabled for the account

collected_at

number

unix timestamp of when the data was collected.

collected_at_israel

string

same time as collected_at just in israel time (dd-mm-yyyy HH:MM:SS)


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

4

Server error, try again

33

invalid account_id

34

invalid server format

48

month is missing or not in mmyy format

49

month can't be a future time. (only current month or old month is accepted)

403

permission denied

429

Too many requests.