Skip to main content
GET
Read Metrics
Auth: TokenAccount or TokenInstanceRate-limit: Global (100/min) • Idempotent: yes

Description

Returns message counters (total, by type, by status, last 7/30 days, unique contacts, etc.) for an instance or a consolidated set of several at once.

How it works

The :instance parameter accepts two formats:
  • A single instance: /metrics/sales returns its metrics
  • Multiple instances: /metrics/sales,support,marketing returns a single object with the values summed across them
When you pass several, numeric values are summed, timestamps return the smallest/largest (first message / last message), and the instance field of the response brings the original list.

Examples

One instance

Passing a single name in the path returns the metrics of that instance in isolation, ideal for individual dashboards or for reading statistics of a specific number.

Multiple (consolidated)

Passing several names separated by comma returns a single object with numeric values summed across instances. Useful for aggregated views per department or account.

Path parameters

string
required
Single name (e.g., sales) or comma-separated list (e.g., sales,support). Spaces around commas are accepted.

Headers

string
required
TokenAccount or TokenInstance.

Success response

200 OK

Response fields

Errors

Notes

If the instance has ignoreGroupMessages active, group messages are not counted, groupMessages may appear as 0.
For high-frequency dashboards, consider storing the values on your side, each call performs full computations and can take time on instances with high volume.

Next

List instances

Current connection state and integrations summary.

Update settings

Adjust behavior flags such as ignoreGroupMessages.