Get WhatsApp messaging stats
Returns aggregate WhatsApp delivery, read, and failure statistics for the organization.
GET
Returns aggregate WhatsApp delivery, read, and failure statistics for the organization.
apiKeyheader
x-api-key<token>startDate?stringendDate?stringSuccess
application/json- response
totalSent*integerRange
0 <= value <= 9007199254740991totalDelivered*integerRange
0 <= value <= 9007199254740991totalRead*integerRange
0 <= value <= 9007199254740991totalFailed*integerRange
0 <= value <= 9007199254740991deliveryRate*numberreadRate*numberfailureRate*numberimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.whatsapp.getStats({});Example Response
{
"totalSent": 0,
"totalDelivered": 0,
"totalRead": 0,
"totalFailed": 0,
"deliveryRate": 0,
"readRate": 0,
"failureRate": 0
}