Skip to content

Commit 922cd4c

Browse files
Document side conversation, WhatsApp status and phone switch errors (#767)
Add the 400 side_conversation error to delete, attach contact, detach contact and convert to ticket. Give the WhatsApp status errors the error.list shape, and add the 403 to the WhatsApp message status endpoint. For phone call redirects, list the 422 error keys from phone number validation, describe the 400 as a failed phone number lookup or SMS send, and add the 401 returned when the workspace can't use the feature. Applies to 2.17 and Preview. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent efe6a6a commit 922cd4c

2 files changed

Lines changed: 184 additions & 20 deletions

File tree

‎descriptions/0/api.intercom.io.yaml‎

Lines changed: 92 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17985,6 +17985,20 @@ paths:
1798517985
deleted: true
1798617986
schema:
1798717987
"$ref": "#/components/schemas/conversation_deleted"
17988+
'400':
17989+
description: Side conversation
17990+
content:
17991+
application/json:
17992+
examples:
17993+
Side conversation:
17994+
value:
17995+
type: error.list
17996+
request_id: 44656d97-2081-44b1-b5f7-c14d0bb1b894
17997+
errors:
17998+
- code: side_conversation
17999+
message: action can not be performed on a side conversation
18000+
schema:
18001+
"$ref": "#/components/schemas/error"
1798818002
'401':
1798918003
description: Unauthorized
1799018004
content:
@@ -19400,6 +19414,20 @@ paths:
1940019414
id: 6762f19b1bb69f9f2193bbd4
1940119415
schema:
1940219416
"$ref": "#/components/schemas/conversation_participants_response"
19417+
'400':
19418+
description: Side conversation
19419+
content:
19420+
application/json:
19421+
examples:
19422+
Side conversation:
19423+
value:
19424+
type: error.list
19425+
request_id: af2cd450-2764-402c-a0e0-cae08a72647b
19426+
errors:
19427+
- code: side_conversation
19428+
message: action can not be performed on a side conversation
19429+
schema:
19430+
"$ref": "#/components/schemas/error"
1940319431
'404':
1940419432
description: Not found
1940519433
content:
@@ -19505,6 +19533,20 @@ paths:
1950519533
id: 6762f1b41bb69f9f2193bbe0
1950619534
schema:
1950719535
"$ref": "#/components/schemas/conversation_participants_response"
19536+
'400':
19537+
description: Side conversation
19538+
content:
19539+
application/json:
19540+
examples:
19541+
Side conversation:
19542+
value:
19543+
type: error.list
19544+
request_id: 83b5ee5b-1971-4594-a6fd-581ee7c56adb
19545+
errors:
19546+
- code: side_conversation
19547+
message: action can not be performed on a side conversation
19548+
schema:
19549+
"$ref": "#/components/schemas/error"
1950819550
'404':
1950919551
description: Contact not found
1951019552
content:
@@ -20405,6 +20447,13 @@ paths:
2040520447
errors:
2040620448
- code: parameter_invalid
2040720449
message: Ticket type is not a customer ticket type
20450+
Side conversation:
20451+
value:
20452+
type: error.list
20453+
request_id: 2c105a05-72f9-4b5d-a01b-4b0c84f6e466
20454+
errors:
20455+
- code: side_conversation
20456+
message: action can not be performed on a side conversation
2040820457
schema:
2040920458
"$ref": "#/components/schemas/error"
2041020459
requestBody:
@@ -26014,9 +26063,11 @@ paths:
2601426063
examples:
2601526064
missing ruleset_id:
2601626065
value:
26017-
type: error
26018-
request_id: "req_123"
26019-
message: "ruleset_id is required"
26066+
type: error.list
26067+
request_id: 71c45f21-af71-4b0a-a3c6-ef5e2b55740c
26068+
errors:
26069+
- code: parameter_not_found
26070+
message: ruleset_id is required
2602026071
schema:
2602126072
"$ref": "#/components/schemas/error"
2602226073
'401':
@@ -26054,9 +26105,11 @@ paths:
2605426105
examples:
2605526106
server error:
2605626107
value:
26057-
type: error
26108+
type: error.list
2605826109
request_id: 591a0c2f-78b3-41bb-bfa7-f1fae15107b2
26059-
message: "Request failed due to an internal error. Please reach out to support"
26110+
errors:
26111+
- code: server_error
26112+
message: Request failed due to an internal error. Please reach out to support
2606026113
schema:
2606126114
"$ref": "#/components/schemas/error"
2606226115
"/messages/whatsapp/status":
@@ -26118,9 +26171,11 @@ paths:
2611826171
examples:
2611926172
missing message_id:
2612026173
value:
26121-
type: error
26122-
request_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
26123-
message: "message_id is required"
26174+
type: error.list
26175+
request_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
26176+
errors:
26177+
- code: parameter_not_found
26178+
message: message_id is required
2612426179
schema:
2612526180
"$ref": "#/components/schemas/error"
2612626181
'401':
@@ -26137,6 +26192,20 @@ paths:
2613726192
message: Access Token Invalid
2613826193
schema:
2613926194
"$ref": "#/components/schemas/error"
26195+
'403':
26196+
description: API plan restricted
26197+
content:
26198+
application/json:
26199+
examples:
26200+
API plan restricted:
26201+
value:
26202+
type: error.list
26203+
request_id: 76d8344a-bd94-424c-937b-cc19de8215bb
26204+
errors:
26205+
- code: api_plan_restricted
26206+
message: Active subscription needed.
26207+
schema:
26208+
"$ref": "#/components/schemas/error"
2614026209
'404':
2614126210
description: WhatsApp message not found
2614226211
content:
@@ -27663,7 +27732,7 @@ paths:
2766327732
schema:
2766427733
"$ref": "#/components/schemas/phone_switch"
2766527734
'400':
27666-
description: bad request - invalid number
27735+
description: Phone number lookup or SMS send failed
2766727736
content:
2766827737
application/json:
2766927738
examples:
@@ -27680,9 +27749,15 @@ paths:
2768027749
content:
2768127750
application/json:
2768227751
examples:
27752+
Invalid phone number:
27753+
value:
27754+
error_key: invalid_phone_number
2768327755
unprocessable entity:
2768427756
value:
27685-
error_key: some_error
27757+
error_key: landline_phone
27758+
Twilio account not found:
27759+
value:
27760+
error_key: twilio_settings
2768627761
'401':
2768727762
description: Unauthorized
2768827763
content:
@@ -27695,6 +27770,13 @@ paths:
2769527770
errors:
2769627771
- code: unauthorized
2769727772
message: Access Token Invalid
27773+
Feature not available:
27774+
value:
27775+
type: error.list
27776+
request_id: 79b635fd-f1f6-4404-aa83-5782675987fb
27777+
errors:
27778+
- code: unauthorized
27779+
message: App does not have access to this feature
2769827780
schema:
2769927781
"$ref": "#/components/schemas/error"
2770027782
requestBody:

‎descriptions/2.17/api.intercom.io.yaml‎

Lines changed: 92 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17911,6 +17911,20 @@ paths:
1791117911
deleted: true
1791217912
schema:
1791317913
"$ref": "#/components/schemas/conversation_deleted"
17914+
'400':
17915+
description: Side conversation
17916+
content:
17917+
application/json:
17918+
examples:
17919+
Side conversation:
17920+
value:
17921+
type: error.list
17922+
request_id: 44656d97-2081-44b1-b5f7-c14d0bb1b894
17923+
errors:
17924+
- code: side_conversation
17925+
message: action can not be performed on a side conversation
17926+
schema:
17927+
"$ref": "#/components/schemas/error"
1791417928
'401':
1791517929
description: Unauthorized
1791617930
content:
@@ -19073,6 +19087,20 @@ paths:
1907319087
id: 6762f19b1bb69f9f2193bbd4
1907419088
schema:
1907519089
"$ref": "#/components/schemas/conversation_participants_response"
19090+
'400':
19091+
description: Side conversation
19092+
content:
19093+
application/json:
19094+
examples:
19095+
Side conversation:
19096+
value:
19097+
type: error.list
19098+
request_id: af2cd450-2764-402c-a0e0-cae08a72647b
19099+
errors:
19100+
- code: side_conversation
19101+
message: action can not be performed on a side conversation
19102+
schema:
19103+
"$ref": "#/components/schemas/error"
1907619104
'404':
1907719105
description: Not found
1907819106
content:
@@ -19178,6 +19206,20 @@ paths:
1917819206
id: 6762f1b41bb69f9f2193bbe0
1917919207
schema:
1918019208
"$ref": "#/components/schemas/conversation_participants_response"
19209+
'400':
19210+
description: Side conversation
19211+
content:
19212+
application/json:
19213+
examples:
19214+
Side conversation:
19215+
value:
19216+
type: error.list
19217+
request_id: 83b5ee5b-1971-4594-a6fd-581ee7c56adb
19218+
errors:
19219+
- code: side_conversation
19220+
message: action can not be performed on a side conversation
19221+
schema:
19222+
"$ref": "#/components/schemas/error"
1918119223
'404':
1918219224
description: Contact not found
1918319225
content:
@@ -19994,6 +20036,13 @@ paths:
1999420036
errors:
1999520037
- code: parameter_invalid
1999620038
message: Ticket type is not a customer ticket type
20039+
Side conversation:
20040+
value:
20041+
type: error.list
20042+
request_id: 2c105a05-72f9-4b5d-a01b-4b0c84f6e466
20043+
errors:
20044+
- code: side_conversation
20045+
message: action can not be performed on a side conversation
1999720046
schema:
1999820047
"$ref": "#/components/schemas/error"
1999920048
requestBody:
@@ -23929,9 +23978,11 @@ paths:
2392923978
examples:
2393023979
missing message_id:
2393123980
value:
23932-
type: error
23933-
request_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
23934-
message: "message_id is required"
23981+
type: error.list
23982+
request_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
23983+
errors:
23984+
- code: parameter_not_found
23985+
message: message_id is required
2393523986
schema:
2393623987
"$ref": "#/components/schemas/error"
2393723988
'401':
@@ -23948,6 +23999,20 @@ paths:
2394823999
message: Access Token Invalid
2394924000
schema:
2395024001
"$ref": "#/components/schemas/error"
24002+
'403':
24003+
description: API plan restricted
24004+
content:
24005+
application/json:
24006+
examples:
24007+
API plan restricted:
24008+
value:
24009+
type: error.list
24010+
request_id: 76d8344a-bd94-424c-937b-cc19de8215bb
24011+
errors:
24012+
- code: api_plan_restricted
24013+
message: Active subscription needed.
24014+
schema:
24015+
"$ref": "#/components/schemas/error"
2395124016
'404':
2395224017
description: WhatsApp message not found
2395324018
content:
@@ -24045,9 +24110,11 @@ paths:
2404524110
examples:
2404624111
missing ruleset_id:
2404724112
value:
24048-
type: error
24049-
request_id: "req_123"
24050-
message: "ruleset_id is required"
24113+
type: error.list
24114+
request_id: 71c45f21-af71-4b0a-a3c6-ef5e2b55740c
24115+
errors:
24116+
- code: parameter_not_found
24117+
message: ruleset_id is required
2405124118
schema:
2405224119
"$ref": "#/components/schemas/error"
2405324120
'401':
@@ -24085,9 +24152,11 @@ paths:
2408524152
examples:
2408624153
server error:
2408724154
value:
24088-
type: error
24155+
type: error.list
2408924156
request_id: 591a0c2f-78b3-41bb-bfa7-f1fae15107b2
24090-
message: "Request failed due to an internal error. Please reach out to support"
24157+
errors:
24158+
- code: server_error
24159+
message: Request failed due to an internal error. Please reach out to support
2409124160
schema:
2409224161
"$ref": "#/components/schemas/error"
2409324162
"/news/news_items":
@@ -25056,7 +25125,7 @@ paths:
2505625125
schema:
2505725126
"$ref": "#/components/schemas/phone_switch"
2505825127
'400':
25059-
description: bad request - invalid number
25128+
description: Phone number lookup or SMS send failed
2506025129
content:
2506125130
application/json:
2506225131
examples:
@@ -25073,9 +25142,15 @@ paths:
2507325142
content:
2507425143
application/json:
2507525144
examples:
25145+
Invalid phone number:
25146+
value:
25147+
error_key: invalid_phone_number
2507625148
unprocessable entity:
2507725149
value:
25078-
error_key: some_error
25150+
error_key: landline_phone
25151+
Twilio account not found:
25152+
value:
25153+
error_key: twilio_settings
2507925154
'401':
2508025155
description: Unauthorized
2508125156
content:
@@ -25088,6 +25163,13 @@ paths:
2508825163
errors:
2508925164
- code: unauthorized
2509025165
message: Access Token Invalid
25166+
Feature not available:
25167+
value:
25168+
type: error.list
25169+
request_id: 79b635fd-f1f6-4404-aa83-5782675987fb
25170+
errors:
25171+
- code: unauthorized
25172+
message: App does not have access to this feature
2509125173
schema:
2509225174
"$ref": "#/components/schemas/error"
2509325175
requestBody:

0 commit comments

Comments
 (0)