S M S

Getting Messages Count

GET
/sms/v1/messages/count

You can know the count of SMS messages you have sent during a certain period. The API will return an integer that represents the count of SMS messages sent during the provided date range in the API request.To use Cequens Get Sent Messages Count API, first submit an HTTP Request with the date range, then receive a Response that includes the count of SMS messages sent during the provided date range.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT access token returned by Signing In (POST /auth/v1/tokens/).

In: header

Query Parameters

from*string

Interval start date, Supported date formats are['YYYY-MM-DD hh:mm:ss','MM-DD-YYYY hh:mm:ss','YYYY/MM/DD hh:mm:ss','MM/DD/YYYY hh:mm:ss','YYYY-M-D hh:mm:ss','M-D-YYYY hh:mm:ss','YYYY/M/D hh:mm:ss','M/D/YYYY hh:mm:ss']

to*string

Interval end date, Supported date formats are['YYYY-MM-DD hh:mm:ss','MM-DD-YYYY hh:mm:ss','YYYY/MM/DD hh:mm:ss','MM/DD/YYYY hh:mm:ss','YYYY-M-D hh:mm:ss','M-D-YYYY hh:mm:ss','YYYY/M/D hh:mm:ss','M/D/YYYY hh:mm:ss']

Response Body

application/json

application/json

curl -X GET "https://example.com/sms/v1/messages/count?from=string&to=string"
"{\n\n\"replyCode\": 0,\n\n\"replyMessage\": \"Request handled successfully\",\n\n\"requestId\": \"6b8cab90-9997-11e4-9673-8d6d6ef9b02b\",\n\n\"clientRequestId\": 0,\n\n\"requestTime\": \"2016-01-23T05:15:00.311Z\",\n\n\"data\": {\n\n\"Count\": 15\n\n}\n}"