Skip to content

Commit 7c43ccb

Browse files
committed
Document GET /data_connectors/{id} - missing show endpoint (rebased on main)
1 parent cc6ad5d commit 7c43ccb

2 files changed

Lines changed: 351 additions & 0 deletions

File tree

descriptions/0/api.intercom.io.yaml

Lines changed: 348 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8465,6 +8465,144 @@ paths:
84658465
type: admin
84668466
admin_id: 991267717
84678467
body: Goodbye :)
8468+
"/conversations/{conversation_id}/conversation_parts/{id}":
8469+
put:
8470+
summary: Update a conversation part
8471+
parameters:
8472+
- name: Intercom-Version
8473+
in: header
8474+
schema:
8475+
"$ref": "#/components/schemas/intercom_version"
8476+
- name: conversation_id
8477+
in: path
8478+
required: true
8479+
description: The identifier for the conversation as given by Intercom.
8480+
example: '123'
8481+
schema:
8482+
type: string
8483+
- name: id
8484+
in: path
8485+
required: true
8486+
description: The identifier for the conversation part.
8487+
example: '456'
8488+
schema:
8489+
type: string
8490+
tags:
8491+
- Conversations
8492+
operationId: updateConversationPart
8493+
description: |
8494+
You can update properties of a conversation part. Currently supports updating the send state of an external reply or marking a part as seen by an admin.
8495+
8496+
{% admonition type="warning" name="Experimental" %}
8497+
This is an experimental endpoint. It requires a valid HMAC secret for authentication in addition to the standard bearer token.
8498+
{% /admonition %}
8499+
responses:
8500+
'200':
8501+
description: Conversation part updated
8502+
content:
8503+
application/json:
8504+
examples:
8505+
Update send state:
8506+
value:
8507+
type: conversation_part
8508+
id: '456'
8509+
part_type: comment
8510+
body: "<p>Hello there!</p>"
8511+
created_at: 1734537559
8512+
updated_at: 1734537561
8513+
notified_at: 1734537559
8514+
assigned_to:
8515+
author:
8516+
id: '991267694'
8517+
type: admin
8518+
name: Ciaran Lee
8519+
email: admin@email.com
8520+
attachments: []
8521+
external_id:
8522+
external_reply_send_state: sent
8523+
Mark part as seen:
8524+
value:
8525+
type: conversation_part
8526+
id: '456'
8527+
part_type: comment
8528+
body: "<p>Hello there!</p>"
8529+
created_at: 1734537559
8530+
updated_at: 1734537561
8531+
notified_at: 1734537559
8532+
assigned_to:
8533+
author:
8534+
id: '991267694'
8535+
type: admin
8536+
name: Ciaran Lee
8537+
email: admin@email.com
8538+
attachments: []
8539+
external_id:
8540+
seen_state:
8541+
admin_seen: true
8542+
schema:
8543+
"$ref": "#/components/schemas/conversation_part"
8544+
'401':
8545+
description: Unauthorized
8546+
content:
8547+
application/json:
8548+
examples:
8549+
Unauthorized:
8550+
value:
8551+
type: error.list
8552+
request_id: a3e5b8e2-1234-5678-9abc-def012345678
8553+
errors:
8554+
- code: unauthorized
8555+
message: Access Token Invalid
8556+
schema:
8557+
"$ref": "#/components/schemas/error"
8558+
'403':
8559+
description: Forbidden
8560+
content:
8561+
application/json:
8562+
examples:
8563+
Forbidden:
8564+
value:
8565+
type: error.list
8566+
request_id: b4f6c9d3-2345-6789-abcd-ef0123456789
8567+
errors:
8568+
- code: forbidden
8569+
message: Forbidden request
8570+
schema:
8571+
"$ref": "#/components/schemas/error"
8572+
'404':
8573+
description: Conversation part not found
8574+
content:
8575+
application/json:
8576+
examples:
8577+
Conversation part not found:
8578+
value:
8579+
type: error.list
8580+
request_id: c5a7d0e4-3456-789a-bcde-f01234567890
8581+
errors:
8582+
- code: not_found
8583+
message: Resource Not Found
8584+
schema:
8585+
"$ref": "#/components/schemas/error"
8586+
requestBody:
8587+
content:
8588+
application/json:
8589+
schema:
8590+
"$ref": "#/components/schemas/update_conversation_part_request"
8591+
examples:
8592+
update_send_state:
8593+
summary: Update send state
8594+
value:
8595+
send_state: sent
8596+
info_message: Message delivered successfully
8597+
experimental: true
8598+
secret: hmac_secret_value
8599+
mark_as_seen:
8600+
summary: Mark part as seen
8601+
value:
8602+
seen: true
8603+
admin_id: '991267694'
8604+
experimental: true
8605+
secret: hmac_secret_value
84688606
"/conversations/{id}/customers":
84698607
post:
84708608
summary: Attach a contact to a conversation
@@ -11774,6 +11912,98 @@ paths:
1177411912
message: "Request failed due to an internal error. Please reach out to support"
1177511913
schema:
1177611914
"$ref": "#/components/schemas/error"
11915+
"/messages/whatsapp/status":
11916+
get:
11917+
summary: Retrieve WhatsApp message delivery status
11918+
parameters:
11919+
- name: Intercom-Version
11920+
in: header
11921+
schema:
11922+
"$ref": "#/components/schemas/intercom_version"
11923+
- name: message_id
11924+
in: query
11925+
required: true
11926+
description: The WhatsApp message ID to check status for
11927+
schema:
11928+
type: string
11929+
tags:
11930+
- Messages
11931+
- WhatsApp
11932+
operationId: RetrieveWhatsAppMessageStatus
11933+
description: |
11934+
Retrieves the delivery status of a specific WhatsApp message by its message ID.
11935+
11936+
11937+
Returns the current status, conversation details, and any error information if the message failed to deliver.
11938+
responses:
11939+
'200':
11940+
description: Successful response
11941+
content:
11942+
application/json:
11943+
examples:
11944+
Successful response:
11945+
value:
11946+
conversation_id: "123456789"
11947+
status: delivered
11948+
type: broadcast_outbound
11949+
created_at: 1734537980
11950+
updated_at: 1734538000
11951+
template_name: appointment_reminder
11952+
message_id: "wamid_abc123"
11953+
Failed message with error:
11954+
value:
11955+
conversation_id: "123456789"
11956+
status: failed
11957+
type: broadcast_outbound
11958+
created_at: 1734537980
11959+
updated_at: 1734538000
11960+
template_name: appointment_reminder
11961+
message_id: "wamid_abc123"
11962+
error:
11963+
message: "Message delivery failed"
11964+
details: "Recipient phone number not on WhatsApp"
11965+
schema:
11966+
"$ref": "#/components/schemas/whatsapp_message_status"
11967+
'400':
11968+
description: Bad request - missing required parameters
11969+
content:
11970+
application/json:
11971+
examples:
11972+
missing message_id:
11973+
value:
11974+
type: error
11975+
request_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
11976+
message: "message_id is required"
11977+
schema:
11978+
"$ref": "#/components/schemas/error"
11979+
'401':
11980+
description: Unauthorized
11981+
content:
11982+
application/json:
11983+
examples:
11984+
Unauthorized:
11985+
value:
11986+
type: error.list
11987+
request_id: 8b2e4c6f-1234-5678-9abc-def012345678
11988+
errors:
11989+
- code: unauthorized
11990+
message: Access Token Invalid
11991+
schema:
11992+
"$ref": "#/components/schemas/error"
11993+
'404':
11994+
description: WhatsApp message not found
11995+
content:
11996+
application/json:
11997+
examples:
11998+
Message not found:
11999+
value:
12000+
type: error.list
12001+
request_id: c4d5e6f7-8901-2345-6789-abcdef012345
12002+
errors:
12003+
- code: whatsapp_message_not_found
12004+
message: Whatsapp message not found
12005+
schema:
12006+
"$ref": "#/components/schemas/error"
1177712007
"/news/news_items":
1177812008
get:
1177912009
summary: List all news items
@@ -16509,6 +16739,44 @@ paths:
1650916739
application/json:
1651016740
schema:
1651116741
$ref: "#/components/schemas/error"
16742+
"/fin_voice/conversation/{conversation_id}":
16743+
get:
16744+
summary: Collect Fin Voice calls by conversation ID
16745+
description: |
16746+
Retrieve information about Fin Voice calls associated with a conversation.
16747+
16748+
Returns all matched calls for the given conversation ID. A conversation may have multiple associated calls.
16749+
operationId: collectFinVoiceCallsByConversationId
16750+
tags:
16751+
- Calls
16752+
parameters:
16753+
- name: conversation_id
16754+
in: path
16755+
required: true
16756+
description: The Intercom conversation identifier
16757+
schema:
16758+
type: string
16759+
responses:
16760+
'200':
16761+
description: successful
16762+
content:
16763+
application/json:
16764+
schema:
16765+
type: array
16766+
items:
16767+
$ref: "#/components/schemas/ai_call_response"
16768+
'401':
16769+
description: Unauthorized
16770+
content:
16771+
application/json:
16772+
schema:
16773+
$ref: "#/components/schemas/error"
16774+
default:
16775+
description: Unexpected error
16776+
content:
16777+
application/json:
16778+
schema:
16779+
$ref: "#/components/schemas/error"
1651216780
components:
1651316781
schemas:
1651416782
datetime:
@@ -23337,6 +23605,50 @@ components:
2333723605
template_name:
2333823606
type: string
2333923607
description: Name of the WhatsApp template used
23608+
whatsapp_message_status:
23609+
type: object
23610+
description: The delivery status of a specific WhatsApp message.
23611+
properties:
23612+
conversation_id:
23613+
type: string
23614+
description: ID of the conversation
23615+
example: "123456789"
23616+
status:
23617+
type: string
23618+
description: Current delivery status of the message
23619+
enum: ["sent", "delivered", "read", "failed"]
23620+
example: delivered
23621+
type:
23622+
type: string
23623+
description: Event type
23624+
example: broadcast_outbound
23625+
created_at:
23626+
type: integer
23627+
description: Creation timestamp
23628+
example: 1734537980
23629+
updated_at:
23630+
type: integer
23631+
description: Last update timestamp
23632+
example: 1734538000
23633+
template_name:
23634+
type: string
23635+
description: Name of the WhatsApp template used
23636+
example: appointment_reminder
23637+
message_id:
23638+
type: string
23639+
description: The WhatsApp message ID
23640+
example: "wamid_abc123"
23641+
error:
23642+
type: object
23643+
nullable: true
23644+
description: Error details, present only when status is "failed"
23645+
properties:
23646+
message:
23647+
type: string
23648+
description: Error message
23649+
details:
23650+
type: string
23651+
description: Detailed error information
2334023652
multiple_filter_search_request:
2334123653
title: Multiple Filter Search Request
2334223654
description: Search using Intercoms Search APIs with more than one filter.
@@ -23805,6 +24117,42 @@ components:
2380524117
required:
2380624118
- text
2380724119
- uuid
24120+
update_conversation_part_request:
24121+
title: Update Conversation Part Request
24122+
type: object
24123+
description: |
24124+
Payload for updating a conversation part. Supports two operations:
24125+
1. Updating the send state of an external reply (requires `send_state` and `info_message`).
24126+
2. Marking a part as seen by an admin (requires `seen` and `admin_id`).
24127+
Both operations require `experimental` and `secret` for HMAC authentication.
24128+
properties:
24129+
send_state:
24130+
type: string
24131+
description: The send state to set on the external reply.
24132+
example: sent
24133+
info_message:
24134+
type: string
24135+
description: An informational message about the send state update.
24136+
example: Message delivered successfully
24137+
seen:
24138+
type: boolean
24139+
description: Set to true to mark the conversation part as seen.
24140+
example: true
24141+
admin_id:
24142+
type: string
24143+
description: The id of the admin marking the part as seen.
24144+
example: '991267694'
24145+
experimental:
24146+
type: boolean
24147+
description: Must be true to use this experimental endpoint.
24148+
example: true
24149+
secret:
24150+
type: string
24151+
description: HMAC secret for authenticating the experimental request.
24152+
example: hmac_secret_value
24153+
required:
24154+
- experimental
24155+
- secret
2380824156
redact_conversation_request:
2380924157
oneOf:
2381024158
- title: Redact Conversation Part Request

descriptions/0/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
## `GET /data_connectors/{id}` added
22
Added missing show endpoint for retrieving a single data connector by ID.
3+
4+
## `GET /messages/whatsapp/status` added
5+
Added missing endpoint for checking WhatsApp message delivery status.

0 commit comments

Comments
 (0)