You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add GET /macros and GET /macros/{id} endpoint definitions to the Unstable OpenAPI specification for the new Macros API.
Changes:
- Add GET /macros endpoint with cursor-based pagination
- Query parameters: per_page (1-150, default 50), starting_after (Base64 cursor), updated_since (Unix timestamp)
- Returns paginated list of macros with MacroList schema
- Documents placeholder transformation from Intercom to XML-like format
- Add GET /macros/{id} endpoint for single macro retrieval
- Path parameter: id (macro identifier)
- Returns single macro with Macro schema
- Add Macros tag to tags section in alphabetical order
- Include comprehensive examples and error responses (400, 401, 403, 404)
- Document OAuth scope requirement (read_conversations)
The endpoints follow existing patterns in the OpenAPI spec and accurately reflect the implementation in PR #419604.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: descriptions/0/api.intercom.io.yaml
+206Lines changed: 206 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9211,6 +9211,210 @@ paths:
9211
9211
message: Access Token Invalid
9212
9212
schema:
9213
9213
"$ref": "#/components/schemas/error"
9214
+
"/macros":
9215
+
get:
9216
+
summary: List all macros
9217
+
parameters:
9218
+
- name: Intercom-Version
9219
+
in: header
9220
+
schema:
9221
+
"$ref": "#/components/schemas/intercom_version"
9222
+
- name: per_page
9223
+
in: query
9224
+
schema:
9225
+
type: integer
9226
+
minimum: 1
9227
+
maximum: 150
9228
+
default: 50
9229
+
description: The number of results per page
9230
+
example: 50
9231
+
- name: starting_after
9232
+
in: query
9233
+
schema:
9234
+
type: string
9235
+
description: Base64-encoded cursor containing [updated_at, id] for pagination
9236
+
example: "WzE3MTk0OTM3NTcuMCwgIjEyMyJd"
9237
+
- name: updated_since
9238
+
in: query
9239
+
schema:
9240
+
type: integer
9241
+
format: int64
9242
+
description: Unix timestamp to filter macros updated after this time
9243
+
example: 1719474966
9244
+
tags:
9245
+
- Macros
9246
+
operationId: listMacros
9247
+
description: |
9248
+
You can fetch a list of all macros (saved replies) in your workspace for use in automating responses.
9249
+
9250
+
The macros are returned in descending order by updated_at.
9251
+
9252
+
**Pagination**
9253
+
9254
+
This 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.
9255
+
9256
+
**Placeholder Transformation**
9257
+
9258
+
The API transforms Intercom placeholders to a more standard XML-like format:
9259
+
- From: `{{user.name | fallback: 'there'}}`
9260
+
- To: `<attribute key="user.name" default="there"/>`
9261
+
responses:
9262
+
'200':
9263
+
description: Successful response
9264
+
content:
9265
+
application/json:
9266
+
examples:
9267
+
Successful response:
9268
+
value:
9269
+
type: list
9270
+
data:
9271
+
- type: macro
9272
+
id: "123"
9273
+
name: "Order Status Update"
9274
+
body: "<p>Hi <attribute key=\"user.name\" default=\"there\"/>, your order #<attribute key=\"order.number\"/> is ready!</p>"
0 commit comments