Skip to main content
GET
Get pricing analytics

Request contract

  • Method and path: GET /apis/v1/social/messaging/whatsapp/pricing-analytics
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/messaging/whatsapp/pricing-analytics
  • connectionId: query; required
  • start: query; required
  • end: query; required
  • granularity: query; required
  • dimensions: query; optional
  • metricTypes: query; optional
  • pricingTypes: query; optional
  • pricingCategories: query; optional
  • countryCodes: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

No additional charge for this operation.

Authorizations

Authorization
string
header
required

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

Query Parameters

connectionId
string
required

Your messaging connection (msc_...), from GET /apis/v1/social/messaging/connections.

Pattern: ^msc_[0-9A-Za-z]+$
start
string<date-time>
required

Range start, ISO 8601 date or date-time.

end
string<date-time>
required

Range end, ISO 8601 date or date-time. Must be after start.

granularity
enum<string>
required

Size of each data point. Use DAILY for short or month-to-date ranges.

Meta refuses MONTHLY when the range is too short for a monthly bucket (for example a range that starts at the beginning of the current month and ends today). That is a 400 with param: granularity and Meta's reason in error.

Available options:
HALF_HOUR,
DAILY,
MONTHLY
dimensions
string

Comma-separated breakdowns: COUNTRY, PHONE, PRICING_CATEGORY, PRICING_TYPE, TIER. Without it each data point is a total for the interval.

metricTypes
string

Comma-separated: COST, VOLUME. Defaults to both.

pricingTypes
string

Comma-separated filter: REGULAR, FREE_CUSTOMER_SERVICE, FREE_ENTRY_POINT.

pricingCategories
string

Comma-separated filter of Meta pricing categories, for example MARKETING, MARKETING_LITE, UTILITY, AUTHENTICATION, AUTHENTICATION_INTERNATIONAL, SERVICE, REFERRAL_CONVERSION.

countryCodes
string

Comma-separated ISO 3166-1 alpha-2 country codes to filter on.

Response

Success

connectionId
string | null
required

One of your connections, or null when it is not one of yours.

dataPoints
object[]
required
end
string<date-time>
required
granularity
enum<string>
required
Available options:
HALF_HOUR,
DAILY,
MONTHLY
phoneNumber
string
required

The number the data is scoped to, digits only.

start
string<date-time>
required