smartchat

Get account overview

Returns the account with parts chosen by include: setup, credits, optin and stats. Without include you get setup and credits. optin needs contacts:read and stats needs stats:read; plan and invoices are not included.

GET /v1/account/overview

Permissionaccount:read (all permissions)
RiskRead
Idempotency-KeyNot needed (how it works)
Safe to repeatSafe: the call only reads.
Rate limit classread (120 requests per minute per key)
ConfirmationNone
MCP toolget_account_overview
Since version2026-10-25

#What it does

  • Only reads data. It changes nothing and sends nothing.

#Request

Query parameters

NameTypeRequiredDescription
includestringnoComma-separated parts: setup, credits, optin, stats. Default: setup,credits. up to 60 characters
rangestringnoRange for the stats part: 7d, 30d (default) or 90d. one of: 7d, 30d, 90d; default "30d"

#Examples

curl "https://api.smartchat.marketing/v1/account/overview?include=setup,credits" \
  -H "Authorization: Bearer $SMARTCHAT_API_KEY"
import os
import requests

response = requests.get(
    "https://api.smartchat.marketing/v1/account/overview",
    headers={"Authorization": "Bearer " + os.environ["SMARTCHAT_API_KEY"]},
    params={
        "include": "setup,credits",
    },
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.smartchat.marketing/v1/account/overview?include=setup,credits", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.SMARTCHAT_API_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());

Response (200):

{
  "object": "account_overview",
  "id": "acc_6f7a8b9c0d1e42f3a4b5c6d7e8f90123",
  "name": "Casa Olivo",
  "language": "en",
  "created_at": "2026-10-25T09:41:07Z",
  "setup": {
    "whatsapp_connected": true,
    "whatsapp_display_number": "+39 06 1234 5678",
    "test_phone_set": true,
    "business_profile_present": true
  },
  "credits": {
    "balance": 2400
  }
}

#Response

Status 200. Every response has the headers Request-Id, SmartChat-Version and X-RateLimit-*.

NameTypeDescription
objectstringAlways "account_overview". always account_overview
idstringAccount ID.
namestringName of the account. Untrusted text. up to 200 characters; untrusted text
languagestringInterface language of the account. up to 10 characters
created_atstringWhen the account was created. up to 40 characters; format date-time
setupobjectSet-up state. Only present with include=setup.
setup.whatsapp_connectedbooleanTrue if a WhatsApp number is connected.
setup.whatsapp_display_numberstring or nullThe connected WhatsApp number as shown in the app. up to 40 characters
setup.test_phone_setbooleanTrue if a test phone number is stored in the profile.
setup.business_profile_presentbooleanTrue if the business profile exists.
creditsobjectCredit balance. Only present with include=credits.
credits.balanceintegerCredits left. Credits never expire. 0 to 1000000000
optinobjectOpt-in counts. Only present with include=optin.
optin.totalintegerAll contacts. 0 to 1000000000
optin.confirmedintegerContacts with a confirmed WhatsApp opt-in. 0 to 1000000000
optin.pendingintegerContacts who were asked to confirm and have not answered. 0 to 1000000000
optin.noneintegerContacts who were never asked to confirm. 0 to 1000000000
optin.opted_outintegerContacts who unsubscribed. 0 to 1000000000
optin.confirmation_messages_waitingintegerConfirmation messages that wait until sending is possible again. 0 to 1000000000
statsobjectShort statistics. Only present with include=stats.
stats.rangestringThe range of these numbers. one of: 7d, 30d, 90d
stats.sentintegerMessages sent. 0 to 1000000000
stats.deliveredintegerMessages delivered. 0 to 1000000000
stats.read_ratenumberShare of delivered messages that were read, in percent. 0 to 100
stats.contacts_totalintegerAll contacts. 0 to 1000000000
stats.contacts_newintegerContacts created in the range. 0 to 1000000000
stats.unread_inboundintegerUnread inbound messages right now. 0 to 1000000000

#Errors

CodeStatusWhen
unknown_parameter400A field is not known.
api_key_expired401This API key has expired.
api_key_invalid401This API key is not valid.
api_key_revoked401This API key was revoked.
authentication_required401No API key was sent. Send 'Authorization: Bearer <key>'.
account_blocked403This account is blocked.
insufficient_scope403This key lacks a required permission.
ip_not_allowed403This IP address is not allowed for this key.
validation_failed422A field is not valid.
rate_limited429Too many requests. Wait and try again.
internal_error500Something went wrong on our side.
service_unavailable503The service is temporarily unavailable.

All errors use one format.