SMS Usage

Get SMS/MMS Usage

curl "https://sms.accentvoice.com/api/v2/<DID Number>/usage/"
-X POST
{
"key": "<API Key>",
"start": "2019-06-22",
"stop": "2019-07-22"
}

This request gets total SMS/MMS usage for a particular DID between two provided datestamps.

{
"success": true,
"error": false,
"status_code": "DID-USAGE",
"message": "SMS/MMS usage for <DID Number>.",
"data": [
{
"did": "<DID Number>",
"sms_inbound": "22",
"sms_outbound": "3",
"mms_inbound": "0",
"mms_outbound": "0"
}
]
}

This request gets total SMS/MMS usage for a particular DID between two provided datestamps.

HTTP Request

POST https://sms.accentvoice.com/api/v2/<DID Number>/usage/

Request Body Parameters

Parameter

Description

Required

start

Start datestamp

Yes

stop

Stop datestamp

Yes

Remember: Both the start and stop parameters must be in the Y-m-d format. For example, December 4th, 2020 is represented as 2020-12-04.