Skip to content

Commit cbfe87f

Browse files
salmanbshahclaude
andcommitted
Fix spec issues from PRs #405 and #406: error formats, enums, auth
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8139e51 commit cbfe87f

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8496,6 +8496,10 @@ paths:
84968496
{% admonition type="warning" name="Experimental" %}
84978497
This is an experimental endpoint. It requires a valid HMAC secret for authentication in addition to the standard bearer token.
84988498
{% /admonition %}
8499+
8500+
{% admonition type="info" name="Ticket Conversations" %}
8501+
For ticket conversations, the `write_tickets` OAuth scope is required. Requests without this scope will receive a 401 Unauthorized response.
8502+
{% /admonition %}
84998503
responses:
85008504
'200':
85018505
description: Conversation part updated
@@ -8551,8 +8555,8 @@ paths:
85518555
type: error.list
85528556
request_id: a3e5b8e2-1234-5678-9abc-def012345678
85538557
errors:
8554-
- code: unauthorized
8555-
message: Access Token Invalid
8558+
- code: token_unauthorized
8559+
message: Not authorized to access resource
85568560
schema:
85578561
"$ref": "#/components/schemas/error"
85588562
'403':
@@ -11999,9 +12003,11 @@ paths:
1199912003
examples:
1200012004
missing message_id:
1200112005
value:
12002-
type: error
12003-
request_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
12004-
message: "message_id is required"
12006+
type: error.list
12007+
request_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
12008+
errors:
12009+
- code: parameter_not_found
12010+
message: message_id is required
1200512011
schema:
1200612012
"$ref": "#/components/schemas/error"
1200712013
'401':
@@ -23890,6 +23896,11 @@ components:
2389023896
whatsapp_message_status:
2389123897
type: object
2389223898
description: The delivery status of a specific WhatsApp message.
23899+
required:
23900+
- conversation_id
23901+
- status
23902+
- type
23903+
- message_id
2389323904
properties:
2389423905
conversation_id:
2389523906
type: string
@@ -23902,8 +23913,14 @@ components:
2390223913
example: delivered
2390323914
type:
2390423915
type: string
23905-
description: Event type
23916+
description: The type of WhatsApp message.
2390623917
example: broadcast_outbound
23918+
enum:
23919+
- broadcast_outbound
23920+
- inbox_outbound
23921+
- inbound
23922+
- admin_reply
23923+
- admin_reply_with_template
2390723924
created_at:
2390823925
type: integer
2390923926
description: Creation timestamp

0 commit comments

Comments
 (0)