Skip to content

Commit 74562e2

Browse files
Create docs for Whatsapp API messages (#275)
1 parent 2f54c72 commit 74562e2

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9223,7 +9223,7 @@ paths:
92239223
- Messages
92249224
operationId: createMessage
92259225
description: "You can create a message that has been initiated by an admin.
9226-
The conversation can be either an in-app message, an email or sms.\n\n> \U0001F6A7
9226+
The conversation can be either an in-app message, an email, sms or whatsapp.\n\n> \U0001F6A7
92279227
Sending for visitors\n>\n> There can be a short delay between when a contact
92289228
is created and when a contact becomes available to be messaged through the
92299229
API. A 404 Not Found error will be returned in this case.\n\nThis will return
@@ -9396,6 +9396,23 @@ paths:
93969396
id: 6762f23a1bb69f9f2193bc1a
93979397
message_type: sms
93989398
body: heyy
9399+
admin_whatsapp_message_created:
9400+
summary: admin whatsapp message created
9401+
value:
9402+
from:
9403+
type: admin
9404+
id: '991267817'
9405+
to:
9406+
phone: +5547999998888
9407+
name: John Doe
9408+
message_type: whatsapp
9409+
components:
9410+
- type: BODY
9411+
parameters:
9412+
- type: text
9413+
text: Username 123
9414+
template: keep_live
9415+
locale: en
93999416
no_body_supplied_for_message:
94009417
summary: No body supplied for message
94019418
value:
@@ -16874,10 +16891,12 @@ components:
1687416891
properties:
1687516892
message_type:
1687616893
type: string
16877-
description: 'The kind of message being created. Values: `in_app` or `email`.'
16894+
description: 'The kind of message being created. Values: `in_app`, `email`, `sms` or `whatsapp`.'
1687816895
enum:
1687916896
- in_app
1688016897
- email
16898+
- sms
16899+
- whatsapp
1688116900
example: in_app
1688216901
subject:
1688316902
type: string
@@ -16974,6 +16993,13 @@ components:
1697416993
- body
1697516994
- from
1697616995
- to
16996+
- title: 'message_type: `whatsapp`.'
16997+
required:
16998+
- message_type
16999+
- template
17000+
- components
17001+
- from
17002+
- to
1697717003
recipient:
1697817004
type: object
1697917005
title: Recipient
@@ -18717,8 +18743,9 @@ components:
1871718743
- facebook
1871818744
- twitter
1871918745
- sms
18720-
description: The type of message that was sent. Can be email, inapp, facebook
18721-
,twitter or sms.
18746+
- whatsapp
18747+
description: The type of message that was sent. Can be email, inapp, facebook,
18748+
twitter, sms or whatsapp.
1872218749
example: inapp
1872318750
conversation_id:
1872418751
type: string

0 commit comments

Comments
 (0)