@@ -8960,6 +8960,188 @@ paths:
89608960 id: 6762f23b1bb69f9f2193bc1d
89618961 message_type: sms
89628962 body: heyy https://picsum.photos/200/300
8963+ "/messages/status":
8964+ get:
8965+ summary: Get WhatsApp message status
8966+ parameters:
8967+ - name: Intercom-Version
8968+ in: header
8969+ schema:
8970+ "$ref": "#/components/schemas/intercom_version"
8971+ - name: ruleset_id
8972+ in: query
8973+ required: true
8974+ description: The unique identifier for the set of WhatsApp messages to check status for
8975+ schema:
8976+ type: string
8977+ - name: per_page
8978+ in: query
8979+ required: false
8980+ description: Number of results per page (default 50, max 100)
8981+ schema:
8982+ type: integer
8983+ default: 50
8984+ maximum: 100
8985+ - name: starting_after
8986+ in: query
8987+ required: false
8988+ description: Cursor for pagination, used to fetch the next page of results
8989+ schema:
8990+ type: string
8991+ tags:
8992+ - Messages
8993+ - WhatsApp
8994+ operationId: getWhatsAppMessageStatus
8995+ description: |
8996+ Retrieves the status of outbound WhatsApp messages based on a ruleset ID.
8997+
8998+ This endpoint returns paginated status events for WhatsApp messages, providing
8999+ information about delivery state and related message details.
9000+
9001+ > 🚧 Feature Flag Required
9002+ >
9003+ > This endpoint requires the "team-channels-whatsapp-outbound-api" feature to be enabled.
9004+ responses:
9005+ '200':
9006+ description: Successful response
9007+ content:
9008+ application/json:
9009+ examples:
9010+ Successful response:
9011+ value:
9012+ type: "list"
9013+ ruleset_id: "12345"
9014+ pages:
9015+ type: "pages"
9016+ per_page: 50
9017+ total_pages: 3
9018+ next:
9019+ starting_after: "abc123"
9020+ total_count: 125
9021+ events:
9022+ - id: "event_1"
9023+ conversation_id: "conv_123"
9024+ status: "delivered"
9025+ type: "broadcast_outbound"
9026+ created_at: 1734537980
9027+ updated_at: 1734538000
9028+ whatsapp_message_id: "wamid_123"
9029+ template_name: "appointment_reminder"
9030+ - id: "event_2"
9031+ conversation_id: "conv_456"
9032+ status: "sent"
9033+ type: "broadcast_outbound"
9034+ created_at: 1734537970
9035+ updated_at: 1734538010
9036+ whatsapp_message_id: "wamid_456"
9037+ template_name: "order_update"
9038+ schema:
9039+ type: object
9040+ required:
9041+ - type
9042+ - ruleset_id
9043+ - pages
9044+ - total_count
9045+ - events
9046+ properties:
9047+ type:
9048+ type: string
9049+ enum: ["list"]
9050+ ruleset_id:
9051+ type: string
9052+ description: The provided ruleset ID
9053+ pages:
9054+ type: object
9055+ required:
9056+ - type
9057+ - per_page
9058+ - total_pages
9059+ properties:
9060+ type:
9061+ type: string
9062+ enum: ["pages"]
9063+ per_page:
9064+ type: integer
9065+ description: Number of results per page
9066+ total_pages:
9067+ type: integer
9068+ description: Total number of pages
9069+ next:
9070+ type: object
9071+ nullable: true
9072+ description: Information for fetching next page (null if no more pages)
9073+ properties:
9074+ starting_after:
9075+ type: string
9076+ description: Cursor for the next page
9077+ total_count:
9078+ type: integer
9079+ description: Total number of events
9080+ events:
9081+ type: array
9082+ items:
9083+ type: object
9084+ required:
9085+ - id
9086+ - conversation_id
9087+ - status
9088+ - type
9089+ - created_at
9090+ - updated_at
9091+ - whatsapp_message_id
9092+ properties:
9093+ id:
9094+ type: string
9095+ description: Event ID
9096+ conversation_id:
9097+ type: string
9098+ description: ID of the conversation
9099+ status:
9100+ type: string
9101+ description: Current status of the message
9102+ enum: ["queued", "sent", "delivered", "read", "failed"]
9103+ type:
9104+ type: string
9105+ description: Event type
9106+ enum: ["broadcast_outbound"]
9107+ created_at:
9108+ type: integer
9109+ description: Creation timestamp
9110+ updated_at:
9111+ type: integer
9112+ description: Last update timestamp
9113+ whatsapp_message_id:
9114+ type: string
9115+ description: WhatsApp's message identifier
9116+ template_name:
9117+ type: string
9118+ description: Name of the WhatsApp template used
9119+ '400':
9120+ description: Bad request - missing required parameters
9121+ content:
9122+ application/json:
9123+ examples:
9124+ missing ruleset_id:
9125+ value:
9126+ type: error
9127+ request_id: "req_123"
9128+ message: "Missing required parameter: ruleset_id"
9129+ '401':
9130+ description: Unauthorized
9131+ content:
9132+ application/json:
9133+ schema:
9134+ "$ref": "#/components/schemas/authentication_error"
9135+ '403':
9136+ description: Forbidden - feature flag not enabled
9137+ content:
9138+ application/json:
9139+ examples:
9140+ feature not enabled:
9141+ value:
9142+ type: error
9143+ request_id: "req_456"
9144+ message: "Feature 'team-channels-whatsapp-outbound-api' is not enabled for this workspace"
89639145 "/news/news_items":
89649146 get:
89659147 summary: List all news items
0 commit comments