Skip to content

Commit 552ec4d

Browse files
salmanbshahclaude
andauthored
Document GET /messages/whatsapp/status - missing endpoint (#405)
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 8e29306 commit 552ec4d

File tree

2 files changed

+138
-0
lines changed

2 files changed

+138
-0
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11842,6 +11842,98 @@ paths:
1184211842
message: "Request failed due to an internal error. Please reach out to support"
1184311843
schema:
1184411844
"$ref": "#/components/schemas/error"
11845+
"/messages/whatsapp/status":
11846+
get:
11847+
summary: Retrieve WhatsApp message delivery status
11848+
parameters:
11849+
- name: Intercom-Version
11850+
in: header
11851+
schema:
11852+
"$ref": "#/components/schemas/intercom_version"
11853+
- name: message_id
11854+
in: query
11855+
required: true
11856+
description: The WhatsApp message ID to check status for
11857+
schema:
11858+
type: string
11859+
tags:
11860+
- Messages
11861+
- WhatsApp
11862+
operationId: RetrieveWhatsAppMessageStatus
11863+
description: |
11864+
Retrieves the delivery status of a specific WhatsApp message by its message ID.
11865+
11866+
11867+
Returns the current status, conversation details, and any error information if the message failed to deliver.
11868+
responses:
11869+
'200':
11870+
description: Successful response
11871+
content:
11872+
application/json:
11873+
examples:
11874+
Successful response:
11875+
value:
11876+
conversation_id: "123456789"
11877+
status: delivered
11878+
type: broadcast_outbound
11879+
created_at: 1734537980
11880+
updated_at: 1734538000
11881+
template_name: appointment_reminder
11882+
message_id: "wamid_abc123"
11883+
Failed message with error:
11884+
value:
11885+
conversation_id: "123456789"
11886+
status: failed
11887+
type: broadcast_outbound
11888+
created_at: 1734537980
11889+
updated_at: 1734538000
11890+
template_name: appointment_reminder
11891+
message_id: "wamid_abc123"
11892+
error:
11893+
message: "Message delivery failed"
11894+
details: "Recipient phone number not on WhatsApp"
11895+
schema:
11896+
"$ref": "#/components/schemas/whatsapp_message_status"
11897+
'400':
11898+
description: Bad request - missing required parameters
11899+
content:
11900+
application/json:
11901+
examples:
11902+
missing message_id:
11903+
value:
11904+
type: error
11905+
request_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
11906+
message: "message_id is required"
11907+
schema:
11908+
"$ref": "#/components/schemas/error"
11909+
'401':
11910+
description: Unauthorized
11911+
content:
11912+
application/json:
11913+
examples:
11914+
Unauthorized:
11915+
value:
11916+
type: error.list
11917+
request_id: 8b2e4c6f-1234-5678-9abc-def012345678
11918+
errors:
11919+
- code: unauthorized
11920+
message: Access Token Invalid
11921+
schema:
11922+
"$ref": "#/components/schemas/error"
11923+
'404':
11924+
description: WhatsApp message not found
11925+
content:
11926+
application/json:
11927+
examples:
11928+
Message not found:
11929+
value:
11930+
type: error.list
11931+
request_id: c4d5e6f7-8901-2345-6789-abcdef012345
11932+
errors:
11933+
- code: whatsapp_message_not_found
11934+
message: Whatsapp message not found
11935+
schema:
11936+
"$ref": "#/components/schemas/error"
1184511937
"/news/news_items":
1184611938
get:
1184711939
summary: List all news items
@@ -23405,6 +23497,50 @@ components:
2340523497
template_name:
2340623498
type: string
2340723499
description: Name of the WhatsApp template used
23500+
whatsapp_message_status:
23501+
type: object
23502+
description: The delivery status of a specific WhatsApp message.
23503+
properties:
23504+
conversation_id:
23505+
type: string
23506+
description: ID of the conversation
23507+
example: "123456789"
23508+
status:
23509+
type: string
23510+
description: Current delivery status of the message
23511+
enum: ["sent", "delivered", "read", "failed"]
23512+
example: delivered
23513+
type:
23514+
type: string
23515+
description: Event type
23516+
example: broadcast_outbound
23517+
created_at:
23518+
type: integer
23519+
description: Creation timestamp
23520+
example: 1734537980
23521+
updated_at:
23522+
type: integer
23523+
description: Last update timestamp
23524+
example: 1734538000
23525+
template_name:
23526+
type: string
23527+
description: Name of the WhatsApp template used
23528+
example: appointment_reminder
23529+
message_id:
23530+
type: string
23531+
description: The WhatsApp message ID
23532+
example: "wamid_abc123"
23533+
error:
23534+
type: object
23535+
nullable: true
23536+
description: Error details, present only when status is "failed"
23537+
properties:
23538+
message:
23539+
type: string
23540+
description: Error message
23541+
details:
23542+
type: string
23543+
description: Detailed error information
2340823544
multiple_filter_search_request:
2340923545
title: Multiple Filter Search Request
2341023546
description: Search using Intercoms Search APIs with more than one filter.

descriptions/0/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
## `GET /messages/whatsapp/status` added
2+
Added missing endpoint for checking WhatsApp message delivery status.

0 commit comments

Comments
 (0)