Skip to main content

Online Usage

POST 

/online/getUsage

This endpoint allows 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.

It is the same data as the Online Usage page of the partners dashboard. You get only the accounts that belong to your partner account, one item per account per server, sorted by server and then by account_id. An account_id or server that isn't yours is not an error: the list is simply empty. One month per request: to get several months, call the endpoint once per month.

Settings​

SettingValue
URLhttps://partners.99digital.co.il/api/online/getUsage
MethodJSON via POST. GET works too, with the same fields as query parameters: GET /online/getUsage?month=0926&server=online&account_id=123. With POST, the fields are read from the JSON body; a field that is not in the body is read from the query string.
HeaderAuthorization: Bearer {{access_token}} — the access token can be received from the Access Token API.

Body​

ParameterDescription / ExampleMaximum lengthMandatoryExample
monthThe month + year in mmyy format, for example 1026 for October 2026. Only the current month or an earlier month (Israel time). Send it as a string, so a leading zero is kept (0926).4Yes1026
serverThe server name, if relevant: return only the accounts on this server. Letters, digits, spaces and hyphens. Empty or left out — all servers.30Noonline
account_idIn case you want to get the data of a specific account ID (exact match). Digits only. Empty or left out — all accounts.20 digitsNo1

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 explained​

ParameterDescription
statusOK or FAIL. "OK" means the request was successful (also when list is empty). "FAIL" means error.
monthString — the same as the request (mmyy).
month_labelString — the requested month, in mm/yyyy format.
is_current_monthBoolean. true = the current month (still updated every night); false = an old month (its numbers are final).
serverString or null — the server filter you provided, or null for all servers.
account_idNumber or null — the account filter you provided, or null for all accounts.
totalAccountsNumber — the total number of items inside list.
listOne item per account per server — see the table below. Empty when there is no data.
reasonThe status explanation — see the reason table below.

Each item in list:

FieldTypeDescription
month / month_label / yearstring / string / numberThe month of the record (mmyy, mm/yyyy, yyyy).
account_idnumberThe online account ID.
account_namestringThe account name, as saved in the partners system.
online_namestringThe account name as it appears on the online server.
serverstringThe server the account is on.
server_namestringThe display name of the server.
total_agentsnumberThe number of agents in the account.
data_amountstringThe data used, as text, for example 74.2GB.
data_amount_gbnumberThe same value as data_amount, just as a number in GB.
total_inboxesnumberThe total number of inboxes this account has.
inboxes → whatsapp / sms / facebook / api / website / email / line / tiktoknumberThe number of inboxes of each type (facebook counts Facebook and Instagram inboxes; website is live chat).
sms_packagesobjectThe number of SMS inboxes per SMS package. The keys are package numbers as strings, for example "1" / "2" / "3"; these three are always present, 0 if unused. Any other package in use is added as an extra key.
chat_gptbooleanWhether ChatGPT is enabled in the account.
builderbooleanWhether a Builder is connected to the account.
mobile_appbooleanWhether the mobile app is enabled for the account.
docal_enabledbooleanWhether Docal is enabled for the account.
collected_atnumberThe Unix timestamp of when the data was collected.
collected_at_israelstringThe same time as collected_at, just in Israel time (dd-mm-yyyy HH:MM:SS).
ReasonExplanation
1Not FAIL: the status is OK.
2Wrong credentials: the Authorization header is missing or not Bearer <token>, or this endpoint doesn't accept the token's type (account-scoped and onboarding tokens are rejected).
3The access token does not exist or has expired. Please generate another one with the Access Token API.
4Server error, try again.
33Invalid account_id: not digits only (up to 20 digits).
34Invalid server format: longer than 30 characters, or has characters other than letters, digits, spaces and hyphens.
48month is missing or not in mmyy format (the month must be 01–12).
49month can't be a future time — only the current month or an old month is accepted (Israel time).
403Permission denied (HTTP 403): the user the access token was created for doesn't have the Access Online usage page permission.
429Too many requests (HTTP 429): more than 10 requests in this clock minute. Wait for the next minute and try again.

When the numbers update​

The usage is collected once a night (at about 01:00 Israel time) from every online server, and each collection saves the state of every account at that moment into the month of the previous day (Israel time):

  • Current month (is_current_month true): the numbers are replaced every night with the latest collection — they are not added up. collected_at tells you when the record was last collected.
  • A new month: the collection on the 1st (at about 01:00) still belongs to the last day of the previous month, so it closes the previous month. The new month's records first appear after the collection on the 2nd; until then, the current month returns an empty list.
  • Previous months (is_current_month false): the last collection of the month — normally the one on the 1st of the next month — is final. These numbers don't change any more.
  • A deleted account keeps its usage: it is still returned for the months that were collected before it was deleted.

Rate limit​

The rate limit of 10 requests per minute counts the requests of your partner account — all its access tokens together — per clock minute; a request over the limit gets HTTP 429 (reason 429).

Access​

Requires the Access Online usage page permission. Account-scoped access tokens — created from an account's Account API Credentials in the partners dashboard — can't use this endpoint: they get reason 2. When the access token has expired (reason 3), create a new one with Access Token.

Request​

Responses​

The request was processed. Both a successful and a failed request answer with HTTP 200 — check status, and reason when it is FAIL.