Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Get messaging analytics

POST/v1/channels/{channelID}/analytics/messaging
Authorization
bearerAuthbearerAuthrequired
or
apiKeyAuthapiKeyAuthrequired
Path parameters
channelIDstringrequired
Channel ID
Request body
requiredapplication/json
country_codesstring[] | null
Filter by country codes
endinteger<int64>required
End timestamp (Unix epoch)
granularitystringrequired
Data granularity
Allowed:DAYHOURHALF_HOUR
phone_numbersstring[] | null
Filter by phone numbers
product_typesstring[] | null
Filter by product types
startinteger<int64>required
Start timestamp (Unix epoch)
Responses
200OK
country_codesstring[] | null
data_pointsAnalyticsDataPoint[] | null
Show properties
Array of AnalyticsDataPoint
conversationinteger<int64>
conversation_categorystring
conversation_directionstring
conversation_typestring
costnumber<double>
countrystring
deliveredinteger<int64>
endinteger<int64>
phone_numberstring
pricing_categorystring
pricing_typestring
sentinteger<int64>
startinteger<int64>
volumeinteger<int64>
granularitystring
phone_numbersstring[] | null
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
404Not Found
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X POST "/v1/channels/string/analytics/messaging" \
  -H "Content-Type: application/json" \
  -d '{
  "country_codes": [
    "string"
  ],
  "end": 0,
  "granularity": "DAY",
  "phone_numbers": [
    "string"
  ],
  "product_types": [
    "string"
  ],
  "start": 0
}'
Response
{
  "country_codes": [
    "string"
  ],
  "data_points": [
    {
      "conversation": 0,
      "conversation_category": "string",
      "conversation_direction": "string",
      "conversation_type": "string",
      "cost": 0,
      "country": "string",
      "delivered": 0,
      "end": 0,
      "phone_number": "string",
      "pricing_category": "string",
      "pricing_type": "string",
      "sent": 0,
      "start": 0,
      "volume": 0
    }
  ],
  "granularity": "string",
  "phone_numbers": [
    "string"
  ]
}