Skip to content

Commit 17c0cd7

Browse files
levindixonclaude
andcommitted
fix(api): Remove incorrect required field constraints from Macros API schemas (intercom/intercom#420117)
- Remove overly restrictive required field definitions from macro and macro_list schemas - Update Postman collection timestamps - Simplify placeholder transformation descriptions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent c47c7fe commit 17c0cd7

File tree

3 files changed

+5
-25
lines changed

3 files changed

+5
-25
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19234,17 +19234,6 @@ components:
1923419234
- inbox
1923519235
- messenger
1923619236
example: ["inbox", "messenger"]
19237-
required:
19238-
- type
19239-
- id
19240-
- name
19241-
- body
19242-
- body_text
19243-
- created_at
19244-
- updated_at
19245-
- visible_to
19246-
- visible_to_team_ids
19247-
- available_on
1924819237
macro_list:
1924919238
title: Macro List
1925019239
type: object
@@ -19286,15 +19275,6 @@ components:
1928619275
type: string
1928719276
description: Base64-encoded cursor containing [updated_at, id] for pagination
1928819277
example: "WzE3MTk0OTM3NTcuMCwgIjEyMyJd"
19289-
required:
19290-
- starting_after
19291-
required:
19292-
- type
19293-
- per_page
19294-
required:
19295-
- type
19296-
- data
19297-
- pages
1929819278
merge_contacts_request:
1929919279
description: Merge contact data.
1930019280
type: object

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-07-31T07:41:44.918Z
15+
Last updated: 2025-07-31T13:47:07.414Z

postman/Unstable/intercom-api.postman_collection.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://developers.intercom.com"
99
},
1010
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
11-
"updatedAt": "2025-07-31T07:41:44.914Z"
11+
"updatedAt": "2025-07-31T13:47:07.412Z"
1212
},
1313
"item": [
1414
{
@@ -5712,7 +5712,7 @@
57125712
]
57135713
},
57145714
"method": "GET",
5715-
"description": "You can fetch a list of all macros (saved replies) in your workspace for use in automating responses.\n\nThe macros are returned in descending order by updated_at. \n\n**Pagination**\n\nThis endpoint uses cursor-based pagination via the `starting_after` parameter. The cursor is a Base64-encoded JSON array containing `[updated_at, id]` of the last item from the previous page.\n\n**Placeholder Transformation**\n\nThe API transforms Intercom placeholders in the `body` field to a more standard XML-like format:\n- From: `{{user.name | fallback: 'there'}}`\n- To: `<attribute key=\"user.name\" default=\"there\"/>`\n\nNote: The `body_text` field retains the original Intercom placeholder format.\n",
5715+
"description": "You can fetch a list of all macros (saved replies) in your workspace for use in automating responses.\n\nThe macros are returned in descending order by updated_at. \n\n**Pagination**\n\nThis endpoint uses cursor-based pagination via the `starting_after` parameter. The cursor is a Base64-encoded JSON array containing `[updated_at, id]` of the last item from the previous page.\n\n**Placeholder Transformation**\n\nThe API transforms Intercom placeholders to a more standard XML-like format:\n- From: `{{user.name | fallback: 'there'}}`\n- To: `<attribute key=\"user.name\" default=\"there\"/>`\n",
57165716
"header": [
57175717
{
57185718
"key": "Intercom-Version",
@@ -5774,7 +5774,7 @@
57745774
]
57755775
},
57765776
"method": "GET",
5777-
"description": "You can fetch a single macro (saved reply) by its ID. The macro will only be returned if it is visible to the authenticated user based on its visibility settings.\n\n**Visibility Rules**\n\nA macro is returned based on its `visible_to` setting:\n- `everyone`: Always visible to all team members\n- `specific_teams`: Only visible if the authenticated user belongs to one of the teams specified in `visible_to_team_ids`\n\nIf a macro exists but is not visible to the authenticated user, a 404 error is returned.\n\n**Placeholder Transformation**\n\nThe API transforms Intercom placeholders in the `body` field to a more standard XML-like format:\n- From: `{{user.name | fallback: 'there'}}`\n- To: `<attribute key=\"user.name\" default=\"there\"/>`\n\nNote: The `body_text` field retains the original Intercom placeholder format.\nDefault values in placeholders are HTML-escaped for security.\n",
5777+
"description": "You can fetch a single macro (saved reply) by its ID. The macro will only be returned if it is visible to the authenticated user based on its visibility settings.\n\n**Visibility Rules**\n\nA macro is returned based on its `visible_to` setting:\n- `everyone`: Always visible to all team members\n- `specific_teams`: Only visible if the authenticated user belongs to one of the teams specified in `visible_to_team_ids`\n\nIf a macro exists but is not visible to the authenticated user, a 404 error is returned.\n\n**Placeholder Transformation**\n\nThe API transforms Intercom placeholders to a more standard XML-like format in the `body` field:\n- From: `{{user.name | fallback: 'there'}}`\n- To: `<attribute key=\"user.name\" default=\"there\"/>`\n\nDefault values in placeholders are HTML-escaped for security.\n",
57785778
"header": [
57795779
{
57805780
"key": "Intercom-Version",
@@ -9239,7 +9239,7 @@
92399239
"event": [],
92409240
"variable": [
92419241
{
9242-
"id": "cc12d50b-b03e-47fa-aed5-b5a257f37bfb",
9242+
"id": "02513ace-fee8-491d-a182-ea7bdcdff035",
92439243
"key": "bearerToken",
92449244
"value": "{{bearerToken}}",
92459245
"type": "string",

0 commit comments

Comments
 (0)