Skip to content

Commit f790093

Browse files
levindixonclaude
andcommitted
fix(api): Correct Macros API timestamp formats and required fields (intercom/intercom#420117)
- Changed timestamp fields from integer/int64 to string/date-time format - Updated all timestamp examples to ISO 8601 format - Added body_text and visible_to_team_ids to required fields - Clarified placeholder transformation behavior in documentation - Regenerated Postman collection with corrected schema 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent cc7c664 commit f790093

File tree

3 files changed

+605
-274
lines changed

3 files changed

+605
-274
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9255,9 +9255,11 @@ paths:
92559255

92569256
**Placeholder Transformation**
92579257

9258-
The API transforms Intercom placeholders to a more standard XML-like format:
9258+
The API transforms Intercom placeholders in the `body` field to a more standard XML-like format:
92599259
- From: `{{user.name | fallback: 'there'}}`
92609260
- To: `<attribute key="user.name" default="there"/>`
9261+
9262+
Note: The `body_text` field retains the original Intercom placeholder format.
92619263
responses:
92629264
'200':
92639265
description: Successful response
@@ -9272,9 +9274,9 @@ paths:
92729274
id: "123"
92739275
name: "Order Status Update"
92749276
body: "<p>Hi <attribute key=\"user.name\" default=\"there\"/>, your order #<attribute key=\"order.number\"/> is ready!</p>"
9275-
body_text: "Hi there, your order is ready!"
9276-
created_at: 1719474966
9277-
updated_at: 1719493757
9277+
body_text: "Hi {{user.name|fallback:\"there\"}}, your order is ready!"
9278+
created_at: "2025-07-17T11:18:08.000Z"
9279+
updated_at: "2025-07-17T15:30:24.000Z"
92789280
visible_to: "everyone"
92799281
visible_to_team_ids: []
92809282
available_on: ["inbox", "messenger"]
@@ -9358,10 +9360,11 @@ paths:
93589360

93599361
**Placeholder Transformation**
93609362

9361-
The API transforms Intercom placeholders to a more standard XML-like format in the `body` field:
9363+
The API transforms Intercom placeholders in the `body` field to a more standard XML-like format:
93629364
- From: `{{user.name | fallback: 'there'}}`
93639365
- To: `<attribute key="user.name" default="there"/>`
93649366

9367+
Note: The `body_text` field retains the original Intercom placeholder format.
93659368
Default values in placeholders are HTML-escaped for security.
93669369
responses:
93679370
'200':
@@ -9375,9 +9378,9 @@ paths:
93759378
id: "123"
93769379
name: "Order Status Update"
93779380
body: "<p>Hi <attribute key=\"user.name\" default=\"there\"/>, your order #<attribute key=\"order.number\"/> is ready for pickup!</p>"
9378-
body_text: "Hi there, your order is ready for pickup!"
9379-
created_at: 1719474966
9380-
updated_at: 1719493757
9381+
body_text: "Hi {{user.name|fallback:\"there\"}}, your order is ready for pickup!"
9382+
created_at: "2025-07-17T11:18:08.000Z"
9383+
updated_at: "2025-07-17T15:30:24.000Z"
93819384
visible_to: "everyone"
93829385
visible_to_team_ids: []
93839386
available_on: ["inbox", "messenger"]
@@ -9387,9 +9390,9 @@ paths:
93879390
id: "456"
93889391
name: "VIP Customer Support"
93899392
body: "<p>Dear <attribute key=\"user.name\" default=\"valued customer\"/>, we appreciate your VIP status. Your dedicated support team is here to help.</p>"
9390-
body_text: "Dear valued customer, we appreciate your VIP status. Your dedicated support team is here to help."
9391-
created_at: 1719474966
9392-
updated_at: 1719493757
9393+
body_text: "Dear {{user.name|fallback:\"valued customer\"}}, we appreciate your VIP status. Your dedicated support team is here to help."
9394+
created_at: "2025-07-17T11:18:08.000Z"
9395+
updated_at: "2025-07-17T15:30:24.000Z"
93939396
visible_to: "specific_teams"
93949397
visible_to_team_ids: ["789", "012"]
93959398
available_on: ["inbox"]
@@ -9399,9 +9402,9 @@ paths:
93999402
id: "789"
94009403
name: "Account Summary"
94019404
body: "<p>Hello <attribute key=\"user.name\" default=\"there\"/>!</p><p>Your account balance is <attribute key=\"account.balance\" default=\"not available\"/>.</p><p>Last login: <attribute key=\"user.last_login\" default=\"never\"/></p>"
9402-
body_text: "Hello there! Your account balance is not available. Last login: never"
9403-
created_at: 1719474966
9404-
updated_at: 1719493757
9405+
body_text: "Hello {{user.name|fallback:\"there\"}}! Your account balance is {{account.balance|fallback:\"not available\"}}. Last login: {{user.last_login|fallback:\"never\"}}"
9406+
created_at: "2025-07-17T11:18:08.000Z"
9407+
updated_at: "2025-07-17T15:30:24.000Z"
94059408
visible_to: "everyone"
94069409
visible_to_team_ids: []
94079410
available_on: ["inbox", "messenger"]
@@ -18968,18 +18971,18 @@ components:
1896818971
example: "<p>Hi <attribute key=\"user.name\" default=\"there\"/>, your order is ready!</p>"
1896918972
body_text:
1897018973
type: string
18971-
description: The plain text version of the macro body.
18972-
example: "Hi there, your order is ready!"
18974+
description: The plain text version of the macro body with original Intercom placeholder format.
18975+
example: "Hi {{user.name|fallback:\"there\"}}, your order is ready!"
1897318976
created_at:
18974-
type: integer
18975-
format: int64
18976-
description: The time the macro was created as a Unix timestamp.
18977-
example: 1719474966
18977+
type: string
18978+
format: date-time
18979+
description: The time the macro was created in ISO 8601 format.
18980+
example: "2025-07-17T11:18:08.000Z"
1897818981
updated_at:
18979-
type: integer
18980-
format: int64
18981-
description: The time the macro was last updated as a Unix timestamp.
18982-
example: 1719493757
18982+
type: string
18983+
format: date-time
18984+
description: The time the macro was last updated in ISO 8601 format.
18985+
example: "2025-07-17T15:30:24.000Z"
1898318986
visible_to:
1898418987
type: string
1898518988
description: Who can view this macro.
@@ -19007,9 +19010,11 @@ components:
1900719010
- id
1900819011
- name
1900919012
- body
19013+
- body_text
1901019014
- created_at
1901119015
- updated_at
1901219016
- visible_to
19017+
- visible_to_team_ids
1901319018
- available_on
1901419019
macro_list:
1901519020
title: Macro List

postman/Unstable/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ This directory contains the Postman collection for Intercom API version Unstable
1212
3. Set your access token in the environment variables
1313
4. Start making API calls!
1414

15-
Last updated: 2025-04-25T10:49:24.297Z
15+
Last updated: 2025-07-31T07:41:44.918Z

0 commit comments

Comments
 (0)