POST
/
v1
/
sms
/
campaigns
/
reports
sms.campaigns.reports
curl --request POST \
  --url https://api.comm.com/api/v1/sms/campaigns/reports \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sortModel": [
    {
      "sort": "asc",
      "colId": "updated_datetime"
    }
  ],
  "filterModel": "{\"is_sent\":{\"filterType\":\"number\",\"type\":\"greaterThan\",\"filter\":5}}\n\nnote that it needs to be col_id: {FilterModel}, PHP doesn'\''t support this kind of description.",
  "rowGroupCols": [
    {
      "id": "campaign_id",
      "displayName": "Campaign_Id",
      "field": "campaign_id"
    }
  ],
  "groupKeys": "[\"campaign_uuid\"]\nNot the column type, it'\''s a filter of the query",
  "selectCols": [
    "<any>"
  ],
  "startRow": 1,
  "endRow": 2,
  "groupByAll": true
}'
{
  "data": "<string>",
  "meta": {
    "current_page": "<string>",
    "last_page": "<string>",
    "per_page": "<string>",
    "total": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

The response is of type object.