Skip to content

Commit 0a9eb2b

Browse files
authored
Merge pull request #86 from messagemedia/feature-CMX-3964-Update-API-Spec-Reporting-APIs
[CMX-3964] - Update Reporting API
2 parents f9bed5e + 4649c92 commit 0a9eb2b

File tree

1 file changed

+71
-5
lines changed

1 file changed

+71
-5
lines changed

spec/openapi.yaml

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6217,6 +6217,21 @@ components:
62176217
example: "true"
62186218
message_format:
62196219
$ref: '#/components/schemas/format'
6220+
channels:
6221+
description: Filter the report by one or more message channels.
6222+
type: array
6223+
items:
6224+
type: string
6225+
enum:
6226+
- SMS
6227+
- MMS
6228+
- TTS
6229+
- RCS
6230+
- WHATSAPP
6231+
- CHANNEL
6232+
example:
6233+
- SMS
6234+
- WHATSAPP
62206235
page:
62216236
description: Page number for paging through paginated result sets.
62226237
type: number
@@ -6387,16 +6402,16 @@ components:
63876402
type: object
63886403
properties:
63896404
start_date:
6390-
description: Start date time for report window. By default, the timezone for this parameter will be taken from the account settings for the account associated with the credentials used to make the request, or the account included in the Account parameter. This can be overridden using the timezone parameter per request. The date must be in ISO8601 format.
6405+
description: Start date time for report window. By default, the timezone for this parameter will be taken from the account settings for the account associated with the credentials used to make the request, or the account included in the Account parameter. This can be overridden using the timezone parameter per request. The date must be in ISO8601 format and may include precise time values (e.g., milliseconds).
63916406
type: string
6392-
example: "2022-12-12T00:00:00.000z"
6407+
example: "2022-12-12T01:01:01.001z"
63936408
end_date:
63946409
description: End date time for report window. By default, the timezone for this parameter
63956410
will be taken from the account settings for the account associated with the
63966411
credentials used to make the request, or the account included in the Account parameter.
6397-
This can be overridden using the timezone parameter per request. The date must be in ISO8601 format, and after the requested start_date.
6412+
This can be overridden using the timezone parameter per request. The date must be in ISO8601 format, and after the requested start_date and may include precise time values (e.g., milliseconds).
63986413
type: string
6399-
example: "2022-12-14T00:00:00.000z"
6414+
example: "2022-12-14T01:01:01.001z"
64006415
timezone:
64016416
description: The timezone of the messages to include, using the name of the region.
64026417
type: string
@@ -6443,11 +6458,27 @@ components:
64436458
description: Filter the report to only include messages that triggered an opt-out
64446459
type: string
64456460
example: "true"
6461+
channels:
6462+
# TODO: Update docs on 16/Oct/2026 once 13 months of data are available.
6463+
description: Filter the report by one or more message channels. Supported from 14/Aug/2025, and filtering by channels is available only for reports starting from this date.
6464+
type: array
6465+
items:
6466+
type: string
6467+
enum:
6468+
- SMS
6469+
- MMS
6470+
- TTS
6471+
- RCS
6472+
- WHATSAPP
6473+
- CHANNEL
6474+
example:
6475+
- SMS
6476+
- WHATSAPP
64466477
group_by:
64476478
description: Group results by a list of values, from the enumerable table above.
64486479
type: array
64496480
items:
6450-
$ref: '#/components/schemas/GroupByField'
6481+
$ref: '#/components/schemas/GroupByInsightField'
64516482
example:
64526483
- WEEK
64536484
- ACCOUNT
@@ -7403,6 +7434,21 @@ components:
74037434
type: string
74047435
description: The status of the message
74057436
example: enroute
7437+
RichMessageType:
7438+
title: RichMessageType
7439+
type: string
7440+
# TODO: Update docs on 16/Oct/2026 once 13 months of data are available.
7441+
description: The type of rich message. Supported from 09/Sep/2025, and this data is available only for reports starting from this date.
7442+
enum:
7443+
- TEXT_MESSAGE
7444+
- MEDIA_MESSAGE
7445+
- LOCATION_MESSAGE
7446+
- CHOICE_RESPONSE_MESSAGE
7447+
- MEDIA_CARD_MESSAGE
7448+
- CARD_MESSAGE
7449+
- CAROUSEL_MESSAGE
7450+
- CHOICE_MESSAGE
7451+
example: TEXT_MESSAGE
74067452
Message:
74077453
title: Message
74087454
required:
@@ -7548,6 +7594,8 @@ components:
75487594
type: number
75497595
description: The amount of messages received
75507596
example: 1
7597+
message_type:
7598+
$ref: '#/components/schemas/RichMessageType'
75517599
metadata:
75527600
type: object
75537601
description: >-
@@ -9499,6 +9547,24 @@ components:
94999547
- STATUS
95009548
type: string
95019549
example: DAY
9550+
GroupByInsightField:
9551+
title: GroupByInsightField
9552+
# TODO: Update docs on 16/Oct/2026 once 13 months of data are available.
9553+
description: Defines available fields for grouping insights reports. COUNTRY and CHANNEL are supported from 14/Aug/2025, and POSTBACK_DATA is supported from 16/Sep/2025, with data for these available only from those dates onward.
9554+
enum:
9555+
- ACCOUNT
9556+
- DAY
9557+
- WEEK
9558+
- MONTH
9559+
- YEAR
9560+
- METADATA_KEY
9561+
- METADATA_VALUE
9562+
- STATUS
9563+
- COUNTRY
9564+
- CHANNEL
9565+
- POSTBACK_DATA
9566+
type: string
9567+
example: DAY
95029568
CreateListRequest:
95039569
required:
95049570
- name

0 commit comments

Comments
 (0)