Connecfy Docs
API v1 Dashboard

Account stats API

A summary of the messages on your account.

GET/api/v1/account/stats/

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

FieldTypeDescription
total_messagesintegerEvery message on the account, sent and received.
queuedintegerOutbound messages still waiting to be sent.
sentintegerOutbound messages with the status sent or delivered.
failedintegerOutbound messages with the status failed.
success_ratenumber or nullsent 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.