Analytics
Get hourly message distribution
Returns outbound message counts over the half-open selected instant range, bucketed by organization-local hour.
GET
Returns outbound message counts over the half-open selected instant range, bucketed by organization-local hour. Empty ranges return no rows; non-empty ranges include all 24 hours.
apiKeyheader
x-api-key<token>after?stringbefore?stringSuccess
application/json- response
[index: integer]?import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.analytics.getHourlyDistribution({});Example Response
[ { "hour": "string", "count": 0 }]