Account stats API
A summary of the messages on your account.
Authentication
Authorization: Bearer YOUR_API_KEY. See Authentication.
Example
bash
curl https://www.connecfy.com/api/v1/account/stats/ \
-H "Authorization: Bearer $CONNECFY_API_KEY"json
{
"total_messages": 1284,
"queued": 3,
"sent": 1190,
"failed": 27,
"success_rate": 97.8
}Fields
| Field | Type | Description |
|---|---|---|
total_messages | integer | Every message on the account, sent and received. |
queued | integer | Outbound messages still waiting to be sent. |
sent | integer | Outbound messages with the status sent or delivered. |
failed | integer | Outbound messages with the status failed. |
success_rate | number or null | sent divided by (sent + failed), as a percentage rounded to one decimal. null until a message has reached sent, delivered or failed. |
Your allowance isn't hereThe remaining monthly allowance is shown in the dashboard, not returned by this endpoint. See Usage and billing.