v1

latestOpenAPI 3.0.3RingCentral API License Agreement2026-08-064871,2921.5 MB
High Volume SMS

List A2P SMS Batches

Returns the list of A2P batches sent from the current account. The list can be filtered by message batch ID and/or from phone number.

get/restapi/v1.0/account/{accountId}/a2p-sms/batches

Path parameters

accountIdstring required

Internal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)

Query parameters

dateFromstring date-time

The end of the time range to filter the results in ISO 8601 format including timezone. Default is the 'dateTo' minus 24 hours

dateTostring date-time

The end of the time range to filter the results in ISO 8601 format including timezone. Default is the current time

fromstring

Phone number in E.164 format from which the messages are going to be sent

statusstring[]

A list of batch statuses to filter the results

pageTokenstring

The page token of the page to be retrieved

perPageinteger

The number of records to be returned per page

Response

The list of batches sent by the account and filtered by the criteria specified in the query parameters

Example response

{
  "records": [
    {
      "id": "12345",
      "from": "+15551234567",
      "batchSize": 5,
      "processedCount": 1,
      "status": "Processing",
      "rejected": [
        {
          "index": 1,
          "to": [
            "29395"
          ],
          "errorCode": "CMN-100",
          "description": "The recipient is invalid"
        }
      ],
      "cost": 0.007
    }
  ],
  "paging": {
    "pageToken": "pgt1",
    "perPage": 3,
    "firstPageToken": "fpgt1",
    "previousPageToken": "lpgt1",
    "nextPageToken": "npgt1"
  }
}