---
openapi: 3.0.1
info:
title: Intercom API
version: '2.18'
description: The intercom API reference.
contact:
name: Intercom Developer Hub
url: https://developers.intercom.com
license:
name: MIT
url: https://spdx.org/licenses/MIT
paths:
"/me":
get:
summary: Identify an admin
parameters:
- name: Intercom-Version
in: header
schema:
"$ref": "#/components/schemas/intercom_version"
tags:
- Admins
operationId: identifyAdmin
description: |
You can view the currently authorised admin along with the embedded app object (a "workspace" in legacy terminology).
> 🚧 Single Sign On
>
> If you are building a custom "Log in with Intercom" flow for your site, and you call the `/me` endpoint to identify the logged-in user, you should not accept any sign-ins from users with unverified email addresses as it poses a potential impersonation security risk.
Requires the `read_single_admin` or `read_admins` OAuth scope.
responses:
'200':
description: Successful response
content:
application/json:
examples:
Successful response:
value:
type: admin
id: '991267459'
email: admin1@email.com
name: Ciaran1 Lee
email_verified: true
app:
type: app
id_code: this_is_an_id1_that_should_be_at_least_40
name: MyApp 1
created_at: 1734537243
secure: false
identity_verification: false
timezone: America/Los_Angeles
region: US
avatar:
type: avatar
image_url: https://static.intercomassets.com/assets/default-avatars/admins/128.png
has_inbox_seat: true
schema:
"$ref": "#/components/schemas/admin_with_app"
'404':
description: Admin not found
content:
application/json:
examples:
Admin not found:
value:
type: error.list
request_id: b154eb7d-2ef7-4df5-afb2-4bee6c21039b
errors:
- code: admin_not_found
message: Admin not found
schema:
"$ref": "#/components/schemas/error"
'401':
description: Unauthorized
content:
application/json:
examples:
Unauthorized:
value:
type: error.list
request_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
errors:
- code: unauthorized
message: Access Token Invalid
Token lacks required scope:
value:
type: error.list
request_id: a3e5b8e2-1234-5678-9abc-def012345678
errors:
- code: token_unauthorized
message: Not authorized to access resource
schema:
"$ref": "#/components/schemas/error"
"/macros/{id}":
get:
summary: Retrieve a macro
parameters:
- name: Intercom-Version
in: header
schema:
"$ref": "#/components/schemas/intercom_version"
- name: id
in: path
required: true
description: The unique identifier of the macro
schema:
type: string
example: "123"
tags:
- Macros
operationId: getMacro
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.
**Visibility Rules**
A macro is returned based on its `visible_to` setting:
- `everyone`: Always visible to all team members
- `specific_teams`: Only visible if the authenticated user belongs to one of the teams specified in `visible_to_team_ids`
If a macro exists but is not visible to the authenticated user, a 404 error is returned.
**Placeholder Transformation**
The API transforms Intercom placeholders to a more standard XML-like format in the `body` field:
- From: `{{user.name | fallback: 'there'}}`
- To: `
Hi
I understand you'd like a refund for order #
Is there anything else I can help you with?
" body_text: "Hi {{user.first_name|fallback:\"there\"}},\n\nI understand you'd like a refund for order #{{conversation.custom_attributes.order_number}}. The refund will be processed within 3-5 business days to your {{user.custom_attributes.payment_method|fallback:\"original payment method\"}}.\n\nIs there anything else I can help you with?" created_at: "2025-07-21T14:44:35.000Z" updated_at: "2025-07-21T14:44:35.000Z" visible_to: "specific_teams" visible_to_team_ids: ["support_team_1", "support_team_2"] available_on: ["inbox", "messenger"] sales_macro: summary: Sales team macro for product inquiries value: type: macro id: "456" name: "Product Demo Request" body: "Hello
Thank you for your interest in
Would
Hi
I see you're having trouble with the
Error code:
Let me help you resolve this issue.
" body_text: "Hi {{user.name}},\n\nI see you're having trouble with the {{conversation.custom_attributes.api_endpoint|fallback:\"API\"}} integration. Your API key for app {{app.id}} is configured correctly.\n\nError code: {{conversation.custom_attributes.error_code|fallback:\"unknown\"}}\n\nLet me help you resolve this issue." created_at: "2025-07-18T09:15:00.000Z" updated_at: "2025-07-18T09:15:00.000Z" visible_to: "everyone" visible_to_team_ids: [] available_on: ["inbox"] simple_greeting: summary: Simple macro without placeholders value: type: macro id: "123" name: "Thank You Response" body: "Thank you for reaching out! We appreciate your message and will get back to you as soon as possible.
" body_text: "Thank you for reaching out! We appreciate your message and will get back to you as soon as possible." created_at: "2025-07-17T11:18:08.000Z" updated_at: "2025-07-17T15:30:24.000Z" visible_to: "everyone" visible_to_team_ids: [] available_on: ["inbox", "messenger"] schema: "$ref": "#/components/schemas/macro" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: e097e446-9ae6-44a8-8e13-2bf3008b87ef errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: Forbidden - missing required OAuth scope content: application/json: examples: Missing required scope: summary: OAuth token lacks read_conversations scope value: type: error.list request_id: f097e446-9ae6-44a8-8e13-2bf3008b87ef errors: - code: forbidden message: You do not have the required scope (read_conversations) to access this resource schema: "$ref": "#/components/schemas/error" '404': description: Macro not found or not accessible content: application/json: examples: Macro not found: value: type: error.list request_id: bc300b1a-492a-405f-924e-a5881cb72e3a errors: - code: not_found message: Macro not found schema: "$ref": "#/components/schemas/error" "/macros": get: summary: List all macros parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: per_page in: query schema: type: integer minimum: 1 maximum: 150 default: 50 description: The number of results per page example: 50 - name: starting_after in: query schema: type: string description: Base64-encoded cursor containing [updated_at, id] for pagination example: "WzE3MTk0OTM3NTcuMCwgIjEyMyJd" - name: updated_since in: query schema: type: integer format: int64 description: Unix timestamp to filter macros updated after this time example: 1719474966 tags: - Macros operationId: listMacros description: | You can fetch a list of all macros (saved replies) in your workspace for use in automating responses. The macros are returned in descending order by updated_at. **Pagination** 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. **Placeholder Transformation** The API transforms Intercom placeholders to a more standard XML-like format: - From: `{{user.name | fallback: 'there'}}` - To: `Hi
Welcome to our support! I'm
I understand you'd like a refund for order #
Thank you for your interest in
Your order has been shipped via
Hi
Your account status:
Last activity:
This is external content
" url: https://support.example.com/us/3 ai_agent_availability: true ai_copilot_availability: true ai_sales_agent_availability: true fin_availability: true locale: en source_id: 42 external_id: '3' audience_ids: [] tags: type: tag.list tags: [] created_at: 1734537269 updated_at: 1734537269 last_ingested_at: 1734537269 - id: '18' type: external_page title: My External Content html: "This is external content
" url: https://support.example.com/us/2 ai_agent_availability: true ai_copilot_availability: true ai_sales_agent_availability: true fin_availability: true locale: en source_id: 41 external_id: '2' audience_ids: [] tags: type: tag.list tags: [] created_at: 1734537269 updated_at: 1734537269 last_ingested_at: 1734537269 - id: '17' type: external_page title: My External Content html: "This is external content
" url: https://support.example.com/us/1 ai_agent_availability: true ai_copilot_availability: true ai_sales_agent_availability: true fin_availability: true locale: en source_id: 40 external_id: '1' audience_ids: [] tags: type: tag.list tags: [] created_at: 1734537269 updated_at: 1734537269 last_ingested_at: 1734537269 pages: type: pages page: 1 per_page: 50 total_pages: 1 total_count: 3 type: list schema: "$ref": "#/components/schemas/external_pages_list" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: bd0c53dd-d3fd-4095-be25-94537a8ba364 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: a3e5b8e2-1234-5678-9abc-def012345678 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '400': description: Bad request content: application/json: examples: Invalid page: value: type: error.list request_id: 6c1f2a54-8d0b-4e0e-9a43-0f5b1d7a2c11 errors: - code: parameter_invalid message: Page must be greater than or equal to 1 Page size too large: value: type: error.list request_id: b7d94e0a-3f52-4c58-8a1e-52c0e9d36f27 errors: - code: parameter_invalid message: Page size must be less than or equal to 150 Page limit exceeded: value: type: error.list request_id: d2a8f6c1-5b3e-4a79-8e0d-7c41f9b2a6e3 errors: - code: bad_request message: page limit reached, please use scroll API schema: "$ref": "#/components/schemas/error" post: summary: Create an external page (or update an external page by external ID) parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - AI Content operationId: createExternalPage description: | You can create a new external page by sending a POST request to this endpoint. If an external page already exists with the specified source_id and external_id, it will be updated instead. OAuth tokens must have the `read_write_ai_content` scope. responses: '200': description: successful content: application/json: examples: successful: value: id: '21' type: external_page title: Test html: "This is external content
" url: https://support.example.com/us/6 ai_agent_availability: true ai_copilot_availability: true ai_sales_agent_availability: true fin_availability: true locale: en source_id: 46 external_id: '5' audience_ids: [] tags: type: tag.list tags: [] created_at: 1734537278 updated_at: 1734537278 last_ingested_at: 1734537278 schema: "$ref": "#/components/schemas/external_page" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 504cde98-f786-4f64-b373-e26a6a41fd11 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: a3e5b8e2-1234-5678-9abc-def012345678 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: External page not found content: application/json: examples: External page not found: value: type: error.list request_id: d41b7e92-6a03-4f8c-91e5-3c2a8b0f6d74 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" put: summary: Update an external page parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - AI Content operationId: updateExternalPage description: | You can update an existing external page (if it was created via the API). OAuth tokens must have the `read_write_ai_content` scope. responses: '200': description: successful content: application/json: examples: successful: value: id: '24' type: external_page title: Test html: "Body of the Article
body_markdown: "Body of the Article\n" author_id: 991267497 state: published created_at: 1734537288 updated_at: 1734537288 url: http://help-center.test/myapp-68/en/articles/42-thanks-for-everything audience_ids: [] ai_chatbot_availability: true ai_copilot_availability: true ai_sales_agent_availability: true created_by_id: 5017691 updated_by_id: 5017691 has_unpublished_changes: false draft_updated_at: null schema: "$ref": "#/components/schemas/article" '400': description: Bad Request. A JSON request whose body is an empty object returns `400` with no response body. content: application/json: examples: Bad Request: value: type: error.list request_id: e522ca8a-cd15-404e-84b3-7f7536003d4a errors: - code: parameter_not_found message: author_id must be in the main body or default locale translated_content object Missing title: value: type: error.list request_id: b052ee5c-f602-5d9a-8356-94544cd9b12a errors: - code: parameter_not_found message: Title is a required parameter Unsupported locale: value: type: error.list request_id: 00e07e24-9182-5d6a-8830-4a977fd902c9 errors: - code: data_invalid message: Locale 'xx' isn't supported. Collection not found: value: type: error.list request_id: 4c9f130d-bfb7-5cab-9a98-7c9fa6650ea9 errors: - code: parameter_invalid message: Collection not found Publish time in the past: value: type: error.list request_id: b0015de0-8628-523f-bca1-780ed3bdcc75 errors: - code: parameter_invalid message: scheduled_publish_at must be in the future schema: "$ref": "#/components/schemas/error" '404': description: 'Not found: the author, an audience, the folder or a collection in `parent_ids` does not exist.' content: application/json: examples: Author not found: value: type: error.list request_id: e1650d39-7d30-554f-aeb1-b4aa32837f1a errors: - code: not_found message: Admin not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 85e91429-72df-4e69-8a12-b55793dff59f errors: - code: unauthorized message: Access Token Invalid Author not authorised: value: type: error.list request_id: 4be1f5b3-3590-5eb7-83df-6d852559f097 errors: - code: action_forbidden message: author_id 991267497 is not authorised on this workspace schema: "$ref": "#/components/schemas/error" '422': description: Unprocessable Entity content: application/json: examples: Body and body_markdown both provided: value: type: error.list request_id: a560a2a1-1b69-5178-8953-b3d8c982eb29 errors: - code: parameter_invalid message: body and body_markdown are mutually exclusive - please provide only one Invalid availability value: value: type: error.list request_id: 3a0b96f7-6f76-5b2e-899a-776192cb6235 errors: - code: parameter_invalid message: ai_chatbot_availability must be true or false schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/create_article_request" examples: article_created: summary: article created value: title: Thanks for everything description: Description of the Article body: Body of the Article author_id: 991267497 state: published parent_id: 145 translated_content: fr: title: Merci pour tout description: Description de l'article body: Corps de l'article author_id: 991267497 state: published bad_request: summary: Bad Request value: title: Thanks for everything description: Description of the Article body: Body of the Article state: published "/articles/{article_id}": get: summary: Retrieve an article parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: article_id in: path required: true description: The unique identifier for the article which is given by Intercom. example: 123 schema: type: integer tags: - Articles operationId: retrieveArticle description: | You can fetch the details of a single article by making a GET request to `https://api.intercom.io/articles/New gifts in store for the jolly season
body_markdown: "New gifts in store for the jolly season\n" author_id: 991267508 state: published created_at: 1734537297 updated_at: 1734537298 url: http://help-center.test/myapp-80/en/articles/48-christmas-is-here audience_ids: [] ai_chatbot_availability: true ai_copilot_availability: true ai_sales_agent_availability: true created_by_id: 5017691 updated_by_id: 5017691 has_unpublished_changes: false draft_updated_at: null schema: "$ref": "#/components/schemas/article" '400': description: Bad Request. A JSON request whose body is an empty object returns `400` with no response body. content: application/json: examples: Publish and unpublish in the same request: value: type: error.list request_id: 884b59c8-2bae-51de-b300-e9b78dfa793c errors: - code: parameter_invalid message: Cannot schedule a publish and unpublish in the same request Publish time in the past: value: type: error.list request_id: 9936f252-ad05-5bf2-b681-c94d83904f71 errors: - code: parameter_invalid message: scheduled_publish_at must be in the future Unpublish on an article that is not published: value: type: error.list request_id: 4d09d60a-6f62-5b5e-b71a-92c949fad184 errors: - code: parameter_invalid message: Cannot schedule an unpublish on an article that is not currently published Unsupported locale: value: type: error.list request_id: bf534ebb-919e-5f80-91d0-35de1deffc4a errors: - code: data_invalid message: Locale 'xx' isn't supported. Collection not found: value: type: error.list request_id: f1c380ad-c52e-50ba-a678-70a258799efe errors: - code: parameter_invalid message: Collection not found schema: "$ref": "#/components/schemas/error" '404': description: Article Not Found content: application/json: examples: Article Not Found: value: type: error.list request_id: f9adccb2-9fca-4b87-bbb7-65f2af5e1d78 errors: - code: not_found message: Resource Not Found Author not found: value: type: error.list request_id: da7836a0-95a1-5926-969c-6bc26f5a6633 errors: - code: not_found message: Admin not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: d1ea223d-bb62-42e3-8bcf-30fdcf7dbd99 errors: - code: unauthorized message: Access Token Invalid Author not authorised: value: type: error.list request_id: f62b30e2-5b2e-561d-b1e8-01a84a380ee2 errors: - code: action_forbidden message: author_id 991267508 is not authorised on this workspace schema: "$ref": "#/components/schemas/error" '422': description: Unprocessable Entity content: application/json: examples: Body and body_markdown both provided: value: type: error.list request_id: 2ee5920d-5fd3-5adc-8a58-d3e0cf3723c1 errors: - code: parameter_invalid message: body and body_markdown are mutually exclusive - please provide only one Invalid availability value: value: type: error.list request_id: f504af40-1675-56e1-8d06-28eae3412526 errors: - code: parameter_invalid message: ai_chatbot_availability must be true or false schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/update_article_request" examples: successful: summary: successful value: title: Christmas is here! body: "New gifts in store for the jolly season
" article_not_found: summary: Article Not Found value: title: Christmas is here! body: "New gifts in store for the jolly season
" delete: summary: Delete an article parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: article_id in: path required: true description: The unique identifier for the article which is given by Intercom. example: 123 schema: type: integer tags: - Articles operationId: deleteArticle description: | You can delete a single article by making a DELETE request to `https://api.intercom.io/articles/Unpublished changes staged as a draft
body_markdown: "Unpublished changes staged as a draft\n" author_id: 991267502 state: published created_at: 1734537292 updated_at: 1734537292 url: http://help-center.test/myapp-74/en/articles/45-this-is-the-article-title audience_ids: [] ai_chatbot_availability: true ai_copilot_availability: true ai_sales_agent_availability: true created_by_id: 5017691 updated_by_id: 5017691 has_unpublished_changes: true draft_updated_at: 1734537292 schema: "$ref": "#/components/schemas/article" '404': "$ref": "#/components/responses/ObjectNotFound" '401': "$ref": "#/components/responses/Unauthorized" put: summary: Stage an article draft parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier for the article which is given by Intercom. example: 123 schema: type: integer tags: - Articles operationId: stageArticleDraft description: | Stage changes to a published article as a draft by making a PUT request to `https://api.intercom.io/articles/New gifts in store for the jolly season
body_markdown: "New gifts in store for the jolly season\n" author_id: 991267508 state: published created_at: 1734537297 updated_at: 1734537298 url: http://help-center.test/myapp-80/en/articles/48-christmas-is-here audience_ids: [] ai_chatbot_availability: true ai_copilot_availability: true ai_sales_agent_availability: true created_by_id: 5017691 updated_by_id: 5017691 has_unpublished_changes: true draft_updated_at: 1734537298 schema: "$ref": "#/components/schemas/article" '404': "$ref": "#/components/responses/ObjectNotFound" '422': description: Article is not published, or a requested locale is not published content: application/json: examples: Article not published: value: errors: - message: Article must be published before a draft can be staged status: 422 Locale not published: value: type: error.list request_id: 6f3c2b1a-2d4e-4f6a-9b8c-1a2b3c4d5e6f errors: - code: parameter_invalid message: 'Cannot stage a draft for locale(s) that are not published on the article: fr' schema: "$ref": "#/components/schemas/error" '401': "$ref": "#/components/responses/Unauthorized" requestBody: content: application/json: schema: "$ref": "#/components/schemas/update_article_request" examples: Draft staged: summary: Stage a draft value: title: Christmas is here! body: "New gifts in store for the jolly season
" "/articles/{id}/draft/publish": post: summary: Publish an article draft parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier for the article which is given by Intercom. example: 123 schema: type: integer tags: - Articles operationId: publishArticleDraft description: | Publish a staged draft by making a POST request to `https://api.intercom.io/articles/New gifts in store for the jolly season
body_markdown: "New gifts in store for the jolly season\n" author_id: 991267508 state: published created_at: 1734537297 updated_at: 1734537299 url: http://help-center.test/myapp-80/en/articles/48-christmas-is-here audience_ids: [] ai_chatbot_availability: true ai_copilot_availability: true ai_sales_agent_availability: true created_by_id: 5017691 updated_by_id: 5017691 has_unpublished_changes: false draft_updated_at: null schema: "$ref": "#/components/schemas/article" '404': "$ref": "#/components/responses/ObjectNotFound" '422': description: No draft to publish, locales not specified on a multilingual workspace, or a requested locale has no pending changes content: application/json: examples: No draft to publish: value: errors: - message: Article has no draft to publish status: 422 Locales required on a multilingual workspace: value: type: error.list request_id: 9b2c3d4e-5f6a-7b8c-9d0e-1f2a3b4c5d6e errors: - code: parameter_not_found message: locales must be specified to publish a draft on a multilingual workspace Locale has no pending changes: value: type: error.list request_id: 0c3d4e5f-6a7b-8c9d-0e1f-2a3b4c5d6e7f errors: - code: parameter_invalid message: 'Cannot publish a draft for locale(s) without pending changes: fr' schema: "$ref": "#/components/schemas/error" '401': "$ref": "#/components/responses/Unauthorized" requestBody: required: false content: application/json: schema: "$ref": "#/components/schemas/publish_article_draft_request" examples: Publish specific locales: summary: Publish specific locales on a multilingual workspace value: locales: - en - fr "/articles/{article_id}/tags": post: summary: Add a tag to an article tags: - Articles - Tags parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: article_id in: path required: true description: The unique identifier for the article which is given by Intercom. example: 123 schema: type: integer operationId: attachTagToArticle description: | Apply an existing tag to an article. Returns the tag that was applied. The tag must already exist in the workspace (create tags with the Tags API), and the authenticating teammate must have the `manage_knowledge_base_content` permission. Requires the `read_write_articles_scope` or `create_update_articles` OAuth scope. requestBody: content: application/json: schema: type: object required: - id properties: id: type: string description: The unique identifier of the tag to apply, as given by Intercom. example: '7522907' admin_id: type: string nullable: true description: Optional id of the teammate to attribute the tagging to. Defaults to the authenticating teammate. Does not affect authorization. example: '1234' examples: successful: summary: Apply a tag value: id: '7522907' responses: '200': description: Tag applied content: application/json: examples: Tag applied: value: type: tag id: '7522907' name: Independent applied_at: 1663597223 applied_by: type: admin id: '1234' schema: "$ref": "#/components/schemas/tag" '403': description: Forbidden content: application/json: examples: Forbidden: value: type: error.list request_id: 6f3c2b1a-2d4e-4f6a-9b8c-1a2b3c4d5e6f errors: - code: forbidden message: Not authorized to manage knowledge base content schema: "$ref": "#/components/schemas/error" '404': description: Article, tag or teammate not found content: application/json: examples: Article not found: value: type: error.list request_id: 302049fb-b8c1-4dc8-a327-a8f6e1923484 errors: - code: article_not_found message: Article not found Tag not found: value: type: error.list request_id: 8a3e4f88-ae65-433a-b4eb-46780ffc5402 errors: - code: tag_not_found message: Tag not found Admin not found: value: type: error.list request_id: 7a34a204-9fae-5335-b818-1da0df3b5234 errors: - code: admin_not_found message: Admin not found schema: "$ref": "#/components/schemas/error" '401': "$ref": "#/components/responses/Unauthorized" "/articles/{article_id}/tags/{id}": delete: summary: Remove a tag from an article tags: - Articles - Tags parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: article_id in: path required: true description: The unique identifier for the article which is given by Intercom. example: 123 schema: type: integer - name: id in: path required: true description: The unique identifier of the tag to remove, as given by Intercom. example: '7522907' schema: type: string operationId: detachTagFromArticle description: | Remove a tag from an article. Returns the tag that was removed, with null `applied_at` and `applied_by`. The authenticating teammate must have the `manage_knowledge_base_content` permission. Requires the `read_write_articles_scope` or `create_update_articles` OAuth scope. responses: '200': description: Tag removed content: application/json: examples: Tag removed: value: type: tag id: '7522907' name: Independent applied_at: null applied_by: null schema: "$ref": "#/components/schemas/tag" '403': description: Forbidden content: application/json: examples: Forbidden: value: type: error.list request_id: 6f3c2b1a-2d4e-4f6a-9b8c-1a2b3c4d5e6f errors: - code: forbidden message: Not authorized to manage knowledge base content schema: "$ref": "#/components/schemas/error" '404': description: Article or tag not found content: application/json: examples: Article not found: value: type: error.list request_id: 302049fb-b8c1-4dc8-a327-a8f6e1923484 errors: - code: article_not_found message: Article not found Tag not found: value: type: error.list request_id: 8a3e4f88-ae65-433a-b4eb-46780ffc5402 errors: - code: tag_not_found message: Tag not found schema: "$ref": "#/components/schemas/error" '401': "$ref": "#/components/responses/Unauthorized" "/articles/{article_id}/versions": get: summary: List article versions parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: article_id in: path required: true description: The unique identifier for the article whose versions you are listing. example: 123 schema: type: integer - name: page in: query required: false description: The page of results to fetch. Defaults to the first page. example: 1 schema: type: integer - name: per_page in: query required: false description: The number of results to return per page. Defaults to 10. example: 10 schema: type: integer - name: locale in: query required: false description: Filter versions to a specific locale. Use the locale identifier (for example `en`, `fr`). If the article has no content in that locale, a `400` is returned. example: en schema: type: string tags: - Articles operationId: listArticleVersions description: | Fetch the version history of an article by making a GET request to `https://api.intercom.io/articles/Body of this version
body_markdown: "Body of this version\n" author_id: '991267502' created_by_id: '5017691' created_via: web from_version_id: '300' state: published created_at: 1734537292 updated_at: 1734537292 schema: "$ref": "#/components/schemas/article_version" '400': description: No content for the requested locale content: application/json: examples: No content for locale: value: type: error.list request_id: 6f3c2b1a-2d4e-4f6a-9b8c-1a2b3c4d5e6f errors: - code: parameter_invalid message: No content found for locale 'fr' on article 123 schema: "$ref": "#/components/schemas/error" '404': "$ref": "#/components/responses/ObjectNotFound" '401': "$ref": "#/components/responses/Unauthorized" "/articles/search": get: summary: Search for articles parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: phrase in: query required: false description: The phrase within your articles to search for. Maximum length is 500 characters. example: Getting started schema: type: string maxLength: 500 - name: state in: query required: false description: The state of the Articles returned. One of `published`, `draft` or `all`. Defaults to `published`. example: published schema: type: string enum: - published - draft - all default: published - name: help_center_id in: query required: false description: The ID of the Help Center to search in. example: 123 schema: type: integer - name: highlight in: query required: false description: Return a highlighted version of the matching content within your articles. Refer to the response schema for more details. example: false schema: type: boolean - name: page in: query required: false description: The page of results to fetch. Defaults to the first page. example: 1 schema: type: integer - name: per_page in: query required: false description: The number of results to return per page. Defaults to 10. example: 10 schema: type: integer tags: - Articles operationId: searchArticles description: | You can search for articles by making a GET request to `https://api.intercom.io/articles/search`. If no articles match the search, `data` is an empty array rather than an object. Requires the `read_articles_scope` or `create_update_articles` OAuth scope. responses: '200': description: Search successful content: application/json: examples: Search successful: value: type: list total_count: 1 data: articles: - id: '55' type: article workspace_id: this_is_an_id92_that_should_be_at_least_4 parent_ids: [] folder_id: null tags: type: tag.list tags: [] exclude_from_article_suggestions: false help_center_audience: everyone scheduled_publish_at: null scheduled_unpublish_at: null content_id: '91' title: Title 1 description: '' body: '' body_markdown: '' author_id: 991267521 state: draft created_at: 1734537306 updated_at: 1734537306 url: audience_ids: [] ai_chatbot_availability: true ai_copilot_availability: true ai_sales_agent_availability: true created_by_id: 5017691 updated_by_id: 5017691 has_unpublished_changes: false draft_updated_at: null highlights: [] pages: type: pages page: 1 total_pages: 1 per_page: 10 No results: value: type: list total_count: 0 data: [] pages: type: pages page: 1 total_pages: 1 per_page: 10 schema: "$ref": "#/components/schemas/article_search_response" '400': description: Bad Request content: application/json: examples: Phrase too long: value: type: error.list request_id: 1bc9b60b-0786-5071-8f02-7a1774b9e60c errors: - code: parameter_invalid message: Phrase is too long Invalid state: value: type: error.list request_id: 45ab1896-953a-51ff-ab2a-208ae54fd42c errors: - code: parameter_mismatch message: Article state must be one of published, draft, all Invalid help center: value: type: error.list request_id: 4a19af49-61cb-5405-a03e-240ff7d4e685 errors: - code: invalid_help_center_id message: Invalid Help Center ID Invalid pagination: value: type: error.list request_id: a88426cc-4cdd-5084-baf4-4db7b55bd4f9 errors: - code: data_invalid message: Pagination data must be a number greater than 0 schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: c70746a8-a5b2-4772-afba-1a4b487ea75d errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" "/away_status_reasons": get: summary: List all away status reasons parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Away Status Reasons operationId: listAwayStatusReasons description: "Returns a list of all away status reasons configured for the workspace, including deleted ones." responses: '200': description: Successful response content: application/json: schema: "$ref": "#/components/schemas/away_status_reason_list" '401': "$ref": "#/components/responses/Unauthorized" "/audiences": get: summary: List all audiences parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: page in: query required: false description: The page of results to fetch. Defaults to the first page. Values below 1 are treated as 1. example: 1 schema: type: integer - name: per_page in: query required: false description: The number of results to return per page. Defaults to 50. Values above 50 are reduced to 50, and values below 1 are treated as 1. example: 50 schema: type: integer maximum: 50 tags: - Audiences operationId: listAudiences description: | You can fetch a list of all audiences for the workspace. Requires the `read_audiences` or `read_write_audiences` OAuth scope. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: list data: - type: audience id: '123' name: VIP Customers predicates: - attribute: company.name type: string comparison: contains value: Acme role_predicates: - attribute: role type: role comparison: in value: - user_role - contact_role - visitor_role created_at: 1717200000 updated_at: 1717200000 - type: audience id: '456' name: Enterprise Accounts predicates: - attribute: custom_attributes.plan type: string comparison: eq value: enterprise role_predicates: - attribute: role type: role comparison: in value: - user_role - contact_role - visitor_role created_at: 1717200000 updated_at: 1717200000 total_count: 2 page: 1 per_page: 50 total_pages: 1 schema: "$ref": "#/components/schemas/audience_list" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: b1939528-98f0-4a63-a442-2cc9203fc8c7 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: ca9d1103-eb54-42e8-8da4-45c95f943584 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" post: summary: Create an audience parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Audiences operationId: createAudience description: | You can create a new audience by making a POST request to `https://api.intercom.io/audiences`. Requires the `read_write_audiences` OAuth scope. requestBody: required: true content: application/json: schema: "$ref": "#/components/schemas/create_audience_request" examples: audience_created: summary: Audience created value: name: VIP Customers predicates: - attribute: company.name type: string comparison: contains value: Acme role_predicates: - attribute: role type: role comparison: in value: - user_role - contact_role - visitor_role responses: '201': description: Audience created content: application/json: examples: Audience created: value: type: audience id: '789' name: VIP Customers predicates: - attribute: company.name type: string comparison: contains value: Acme role_predicates: - attribute: role type: role comparison: in value: - user_role - contact_role - visitor_role created_at: 1717200000 updated_at: 1717200000 schema: "$ref": "#/components/schemas/audience" '422': description: Validation error content: application/json: examples: Validation error: value: type: error.list request_id: errors: - code: validation_error message: Name is required schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: c1d2e3f4-5a6b-7c8d-9e0f-1a2b3c4d5e6f errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 66178beb-eb7f-43da-b4e9-7376cb2f7df9 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/audiences/{id}": get: summary: Retrieve an audience parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier for the audience. example: '123' schema: type: string tags: - Audiences operationId: retrieveAudience description: | You can fetch the details of a single audience by making a GET request to `https://api.intercom.io/audiences/{id}`. Requires the `read_audiences` or `read_write_audiences` OAuth scope. responses: '200': description: Audience found content: application/json: examples: Audience found: value: type: audience id: '123' name: VIP Customers predicates: - attribute: company.name type: string comparison: contains value: Acme role_predicates: - attribute: role type: role comparison: in value: - user_role - contact_role - visitor_role created_at: 1717200000 updated_at: 1717200000 schema: "$ref": "#/components/schemas/audience" '404': description: Audience not found content: application/json: examples: Audience not found: value: type: error.list request_id: errors: - code: not_found message: Audience not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: c4d5e6f7-8a9b-0c1d-2e3f-4a5b6c7d8e9f errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: e8cd397d-4b39-428b-b05d-5834060184e3 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" put: summary: Update an audience parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier for the audience. example: '123' schema: type: string tags: - Audiences operationId: updateAudience description: | You can update the details of a single audience by making a PUT request to `https://api.intercom.io/audiences/{id}`. You can also send this request with `PATCH`; it behaves the same as `PUT`. Requires the `read_write_audiences` OAuth scope. requestBody: content: application/json: schema: "$ref": "#/components/schemas/update_audience_request" examples: audience_updated: summary: Audience updated value: name: Enterprise Accounts predicates: - attribute: custom_attributes.plan type: string comparison: eq value: enterprise responses: '200': description: Audience updated content: application/json: examples: Audience updated: value: type: audience id: '123' name: Enterprise Accounts predicates: - attribute: custom_attributes.plan type: string comparison: eq value: enterprise role_predicates: - attribute: role type: role comparison: in value: - user_role - contact_role - visitor_role created_at: 1717200000 updated_at: 1717200100 schema: "$ref": "#/components/schemas/audience" '404': description: Audience not found content: application/json: examples: Audience not found: value: type: error.list request_id: errors: - code: not_found message: Audience not found schema: "$ref": "#/components/schemas/error" '422': description: Validation error content: application/json: examples: Name cannot be blank: value: type: error.list request_id: errors: - code: validation_error message: Name cannot be blank Audience has no ruleset: value: type: error.list request_id: errors: - code: validation_error message: Audience has no ruleset schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: f8a9b0c1-2d3e-4f5a-6b7c-8d9e0f1a2b3c errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: a97359e1-abb7-4055-9af3-f7e7554012c9 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" delete: summary: Delete an audience parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier for the audience. example: '123' schema: type: string tags: - Audiences operationId: deleteAudience description: | You can delete a single audience by making a DELETE request to `https://api.intercom.io/audiences/{id}`. An audience that is still used by other objects, such as a workflow, cannot be deleted. Requires the `read_write_audiences` OAuth scope. responses: '204': description: Audience deleted '400': description: Bad Request content: application/json: examples: Audience has dependent objects: value: type: error.list request_id: 5b5800b4-d2ef-4a6c-8b4c-ac586553b4de errors: - code: audience_has_dependent_objects message: Unable to delete audience with dependent objects. data: dependent_count: 2 schema: "$ref": "#/components/schemas/error" '404': description: Audience not found content: application/json: examples: Audience not found: value: type: error.list request_id: errors: - code: not_found message: Audience not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: a700781a-7897-4cdc-93d9-dfb1becab382 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/export/reporting_data/enqueue": post: summary: Enqueue a new reporting data export job description: | For the conversation dataset, from API version 2.16 this export returns all conversations, including those that never received a user reply. Earlier versions return only conversations that received at least one user reply. Other datasets are unaffected. Requires the `export_reporting_data` OAuth scope. tags: [Reporting Data Export] parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" requestBody: required: true content: application/json: schema: type: object required: [dataset_id, attribute_ids, start_time, end_time] properties: dataset_id: type: string example: conversation attribute_ids: type: array description: List of attribute identifiers to include in the export. Requires qualified_id format (e.g., "people.Brand", "standard.conversation_id"). Use the qualified_id returned from the get_datasets response. items: type: string example: [standard.conversation_id, timestamp.conversation_started_at] start_time: type: integer format: int64 description: Start of the export period, as a Unix timestamp in seconds. Must be within your workspace's reporting data retention period, which is 2 years by default (3 years for workspaces with extended retention). example: 1788220800 end_time: type: integer format: int64 description: End of the export period, as a Unix timestamp in seconds. Must not be earlier than start_time and must also be within the retention period. example: 1788307200 responses: '200': description: Job enqueued successfully content: application/json: schema: type: object properties: job_identifier: type: string example: job1 status: type: string description: The status of the job. A newly enqueued job is `pending`. example: pending download_url: type: string description: Empty until the job is complete. download_expires_at: type: string description: Empty until the job is complete. '400': description: Bad request (e.g. validation errors) content: application/json: examples: No dataset_id: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: "'dataset_id' is a required parameter" Invalid dataset_id: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: imaginary is not a valid dataset_id No attribute_ids: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: "'attribute_ids' is a required parameter" Empty attribute_ids: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: attribute_ids must contain at least one attribute_id Non array attribute_ids: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: "'attribute_ids: not an array' must be of type Array" Invalid attribute_ids: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: "attribute_ids invalid for conversation dataset: non_existent" Unqualified attribute_ids: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: "attribute_ids must use qualified_id format (e.g., 'people.Brand' instead of 'Brand'). Use the qualified_id from the get_datasets response. Unqualified ids: conversation_id" start_time too far in the past: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: "'start_time' parameter too far in past (more than 2 years)" end_time before start_time: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: end_time is less than start_time Unknown parameter: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: bad_request message: "bad 'unknown_field' parameter" Not available in this API version: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: intercom_version_invalid message: Requested resource is not available in current API version schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '429': description: Too many jobs in progress content: application/json: examples: Unauthorized: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: rate_limit_exceeded message: Exceeded rate limit of 5 pending reporting dataset export jobs schema: "$ref": "#/components/schemas/error" "/export/reporting_data/{job_identifier}": get: summary: Get export job status description: Requires the `export_reporting_data` OAuth scope. tags: [Reporting Data Export] parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: job_identifier description: Unique identifier of the job. in: path required: true schema: type: string responses: '200': description: Job status returned successfully content: application/json: examples: With pending status: value: job_identifier: job1 status: pending download_url: '' download_expires_at: '' With complete status: value: job_identifier: job1 status: complete download_url: https://api.intercom.io/download/reporting_data/job1 download_expires_at: 1788480000 With failed status: value: job_identifier: job1 status: failed download_url: '' download_expires_at: '' schema: type: object properties: job_identifier: type: string description: Unique identifier of the job. status: type: string description: The status of the job. enum: - pending - complete - failed download_url: type: string description: The URL to download the export from. Empty until the job is complete. download_expires_at: description: The time after which the export can no longer be downloaded, as a Unix timestamp in seconds. Empty string until the job is complete. oneOf: - type: integer format: int64 - type: string maxLength: 0 '400': description: Bad Request content: application/json: examples: Not available in this API version: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: intercom_version_invalid message: Requested resource is not available in current API version schema: "$ref": "#/components/schemas/error" '401': "$ref": "#/components/responses/Unauthorized" '404': description: When the job is not found or was created by a different teammate content: application/json: examples: Not found: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: not_found message: "Export job not found for identifier: job1" schema: "$ref": "#/components/schemas/error" "/export/reporting_data/get_datasets": get: summary: List available datasets and attributes description: Requires the `export_reporting_data` or `read_reporting_datasets` OAuth scope. parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: [Reporting Data Export] responses: '200': description: List of datasets content: application/json: schema: type: object properties: type: type: string example: list data: type: array items: type: object properties: id: type: string example: conversation name: type: string example: Conversation description: type: string example: "Conversation-level details: status, channel, assignee." default_time_attribute_id: type: string example: conversation.conversation_created_at attributes: type: array items: type: object properties: id: type: string description: The simple attribute identifier. Note that this may be ambiguous if the same name exists across different attribute types. Use qualified_id when calling the enqueue endpoint. example: conversation_id qualified_id: type: string description: A namespaced identifier that uniquely identifies the attribute across all types. Format is "prefix.name" (e.g., "people.Brand", "conversation.Brand"). A ticket field also includes its ticket type (e.g., "ticket.Bug.Priority"). Required when calling the enqueue endpoint. example: standard.conversation_id name: type: string example: Conversation ID '400': description: Bad Request content: application/json: examples: Not available in this API version: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: intercom_version_invalid message: Requested resource is not available in current API version schema: "$ref": "#/components/schemas/error" '401': "$ref": "#/components/responses/Unauthorized" "/download/reporting_data/{job_identifier}": get: summary: Download completed export job data description: | Download the data from a completed reporting data export job. > Octet header required > > You will have to specify the header Accept: `application/octet-stream` when hitting this endpoint. Requires the `export_reporting_data` OAuth scope. tags: [Reporting Data Export] parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: Accept in: header required: true schema: type: string example: application/octet-stream enum: - application/octet-stream description: "Required header for downloading the export file" - name: job_identifier description: Unique identifier of the job. in: path required: true schema: type: string responses: '200': description: "Export file downloaded. The CSV data is gzip-compressed and the response has a `Content-Encoding: gzip` header, so most HTTP clients decompress it automatically." headers: Content-Encoding: description: The encoding applied to the response body. schema: type: string example: gzip content: application/octet-stream: schema: type: string format: binary '400': description: Bad Request content: application/json: examples: Not available in this API version: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: intercom_version_invalid message: Requested resource is not available in current API version schema: "$ref": "#/components/schemas/error" '401': "$ref": "#/components/responses/Unauthorized" '404': description: When the job is not found, was created by a different teammate, or is not complete, or the export file is no longer available content: application/json: examples: Not found: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: not_found message: "Export job not found for identifier: job1" Export file not found: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: not_found message: Object not found schema: "$ref": "#/components/schemas/error" "/fin/start": post: summary: Start a conversation with Fin parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Fin Agent operationId: startFinConversation description: | Initialize Fin by passing it the user's message along with conversation history and user details. These additional pieces of context will be used by Fin to provide a better and more contextual answer to the user. {% admonition type="warning" %} To request access to the Fin Agent API, go to **Settings > Integrations > Fin Agent API** in your workspace and tell us about your use case. Once access is granted, **Fin Agent API** appears under **Fin AI Agent > Deploy**. {% /admonition %} Once Fin is initialized, it progresses through a series of statuses such as *thinking*, *replying*, *awaiting_user_reply*, or *resolved* before ending with a status of *complete*. During this workflow, the client should allow Fin to continue uninterrupted until a final *complete* status is returned via webhook, at which point control of the conversation passes back to the client. responses: '200': description: Fin conversation started successfully content: application/json: examples: Successful response: value: conversation_id: ext-123 intercom_conversation_id: '192837465' user_id: user-456 status: thinking created_at_ms: '2025-01-24T10:00:00.123Z' Response with attribute errors: value: conversation_id: ext-123 intercom_conversation_id: '192837465' user_id: user-456 status: thinking created_at_ms: '2025-01-24T10:00:00.123Z' errors: user: attributes: invalid_attr: User attribute 'invalid_attr' does not exist conversation: attributes: bad_attr: Conversation attribute 'bad_attr' does not exist schema: type: object properties: conversation_id: type: string description: The ID of the conversation. example: ext-123 intercom_conversation_id: type: string description: The internal Intercom conversation ID, useful for matching this Agent API session to the conversation in Intercom. example: '192837465' user_id: type: string description: The ID of the user. example: user-456 status: type: string enum: - thinking - replying - awaiting_user_reply - escalated - resolved - complete description: | Fin's status when the request was accepted. Always `thinking`; later statuses arrive as events. example: thinking created_at_ms: type: string format: date-time description: The timestamp the response was created at, with millisecond precision. example: '2025-01-24T10:00:00.123Z' errors: "$ref": "#/components/schemas/fin_agent_attribute_errors" '400': description: Bad Request content: application/json: examples: Not available in this API version: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: intercom_version_invalid message: Requested resource is not available in current API version schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: unauthorized message: Access Token Invalid Token not authorized: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '403': description: Forbidden content: application/json: examples: Fin Agent API not enabled: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: api_plan_restricted message: Fin Agent API is not enabled for your app. Wrong credentials for the Fin Agent API: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: forbidden message: Use your workspace's Fin Agent API key to call the Fin Agent API Response format not available: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: api_plan_restricted message: The requested response format is not available. schema: "$ref": "#/components/schemas/error" '422': description: The request could not be processed. The response body maps each field name to its error message, or uses `base` for request-level failures. Values are usually strings. When a required field inside an object, such as `user.id`, is missing or invalid, the error is a nested object keyed by the inner field. content: application/json: examples: Conversation ID missing: value: errors: conversation_id: Conversation ID is required Conversation already exists: value: errors: conversation_id: Fin session already exists for this conversation. Please use /reply to continue the conversation. Message timestamp missing: value: errors: message: timestamp_ms is required Too many user attributes: value: errors: user: Cannot update more than 10 attributes at once. Received 11 attributes. Too many history items: value: errors: conversation_metadata: Conversation history cannot contain more than 10 items Invalid environment on a Fin for Platforms workspace: value: errors: environment: Invalid environment schema: type: object properties: errors: type: object description: Validation messages keyed by the field they apply to, or `base` for request-level failures. example: conversation_id: Conversation ID is required additionalProperties: true requestBody: required: true content: application/json: schema: type: object properties: conversation_id: type: string description: The ID of the conversation that is calling Fin via this API. example: ext-123 message: "$ref": "#/components/schemas/fin_agent_message" user: "$ref": "#/components/schemas/fin_agent_user" attachments: type: array description: An array of attachments to include with the message. Maximum of 10 attachments. maxItems: 10 items: "$ref": "#/components/schemas/fin_agent_attachment" conversation_metadata: "$ref": "#/components/schemas/fin_agent_conversation_metadata" environment: type: string description: The identifier of the environment to start the conversation in. Only Fin for Platforms workspaces use it; other workspaces ignore it. Use the same value as `messenger_environment` in your Messenger installation. Defaults to the workspace's default environment. On a Fin for Platforms workspace, an identifier that matches no environment returns a 422 error. example: a1b2c3d4e5 response_format: type: string enum: - html - markdown default: html description: The format of the `body` in Fin's replies. Defaults to `html`. Requesting `markdown` on a workspace where it is not enabled returns a 403 error. example: html required: - conversation_id - message - user examples: Basic request: value: conversation_id: ext-123 message: author: user body: How can I see my account details? timestamp: '2025-01-24T10:01:20.000Z' user: id: '123456' name: John Doe email: john.doe@example.com Request with conversation history: value: conversation_id: ext-123 message: author: user body: How can I see my account details? timestamp: '2025-01-24T10:01:20.000Z' user: id: '123456' name: John Doe email: john.doe@example.com attributes: plan_type: Pro subscription_status: active conversation_metadata: history: - author: user body: I need help timestamp: '2025-01-24T10:00:01Z' - author: agent body: What do you need help with? timestamp: '2025-01-24T10:01:00Z' attributes: priority_level: high department: sales Request with attachments: value: conversation_id: ext-123 message: author: user body: Here is a screenshot of the issue timestamp: '2025-01-24T10:01:20.000Z' user: id: '123456' name: John Doe email: john.doe@example.com attachments: - type: url url: https://example.com/document.pdf - type: file name: screenshot.png content_type: image/png data: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk... "/fin/reply": post: summary: Reply to Fin parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Fin Agent operationId: replyToFin description: | Once Fin has returned a response to a user's message, its status will be `awaiting_user_reply`. If a user replies, use this endpoint to send this response to Fin. {% admonition type="warning" %} To request access to the Fin Agent API, go to **Settings > Integrations > Fin Agent API** in your workspace and tell us about your use case. Once access is granted, **Fin Agent API** appears under **Fin AI Agent > Deploy**. {% /admonition %} responses: '200': description: Reply sent successfully content: application/json: examples: Successful response: value: conversation_id: ext-123 intercom_conversation_id: '192837465' user_id: user-456 status: thinking created_at_ms: '2025-01-24T10:00:00.123Z' Response with attribute errors: value: conversation_id: ext-123 intercom_conversation_id: '192837465' user_id: user-456 status: thinking created_at_ms: '2025-01-24T10:00:00.123Z' errors: user: attributes: invalid_attr: User attribute 'invalid_attr' does not exist schema: type: object properties: conversation_id: type: string description: The ID of the conversation. example: ext-123 intercom_conversation_id: type: string description: The internal Intercom conversation ID, useful for matching this Agent API session to the conversation in Intercom. example: '192837465' user_id: type: string description: The ID of the user. example: user-456 status: type: string enum: - thinking - replying - awaiting_user_reply - escalated - resolved - complete description: | Fin's status when the request was accepted. Always `thinking`; later statuses arrive as events. example: thinking created_at_ms: type: string format: date-time description: The timestamp the response was created at, with millisecond precision. example: '2025-01-24T10:00:00.123Z' errors: "$ref": "#/components/schemas/fin_agent_attribute_errors" '400': description: Bad Request content: application/json: examples: Not available in this API version: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: intercom_version_invalid message: Requested resource is not available in current API version schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: unauthorized message: Access Token Invalid Token not authorized: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '403': description: Forbidden content: application/json: examples: Fin Agent API not enabled: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: api_plan_restricted message: Fin Agent API is not enabled for your app. Wrong credentials for the Fin Agent API: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: forbidden message: Use your workspace's Fin Agent API key to call the Fin Agent API Response format not available: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: api_plan_restricted message: The requested response format is not available. schema: "$ref": "#/components/schemas/error" '422': description: The request could not be processed. The response body maps each field name to its error message, or uses `base` for request-level failures. Values are usually strings. When a required field inside an object, such as `user.id`, is missing or invalid, the error is a nested object keyed by the inner field. content: application/json: examples: Conversation ID missing: value: errors: conversation_id: Conversation ID is required Conversation not found: value: errors: conversation_id: Conversation not found for the given conversation_id Message timestamp missing: value: errors: message: timestamp_ms is required Too many user attributes: value: errors: user: Cannot update more than 10 attributes at once. Received 11 attributes. schema: type: object properties: errors: type: object description: Validation messages keyed by the field they apply to, or `base` for request-level failures. example: conversation_id: Conversation ID is required additionalProperties: true requestBody: required: true content: application/json: schema: type: object properties: conversation_id: type: string description: The ID of the conversation. example: '123456' message: "$ref": "#/components/schemas/fin_agent_message" user: "$ref": "#/components/schemas/fin_agent_user" attachments: type: array description: An array of attachments to include with the message. Maximum of 10 attachments. maxItems: 10 items: "$ref": "#/components/schemas/fin_agent_attachment" response_format: type: string enum: - html - markdown default: html description: The format of the `body` in Fin's replies. Defaults to `html`. Requesting `markdown` on a workspace where it is not enabled returns a 403 error. example: html required: - conversation_id - message - user examples: Basic reply: value: conversation_id: '123456' message: author: user body: Here's the information you requested. timestamp: '2025-01-24T09:01:00.000Z' user: id: '123456' name: John Doe email: john.doe@example.com Reply with attachments: value: conversation_id: '123456' message: author: user body: Here's the invoice you asked for. timestamp: '2025-01-24T09:01:00.000Z' user: id: '123456' name: John Doe email: john.doe@example.com attachments: - type: url url: https://example.com/invoice.pdf "/fin/csat": post: summary: Submit a CSAT rating parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Fin Agent operationId: submitFinCsat description: | Record a customer's satisfaction rating for a conversation, with an optional free-text remark. Fin decides *when* to ask for a rating — this reuses the CSAT settings on your Fin workflow, not this API. When Fin asks, it fires a `csat_requested` event over webhooks carrying the rating options to show the user. Present those options, then submit the user's choice here. Submitting the same rating again, with no new remark, is a no-op and stays successful, so an at-least-once client can safely retry. Submitting a *different* rating updates the stored rating while the update window is still open, and a first remark can be added to an already-rated survey. Once a remark has been recorded the rating is locked and can no longer be changed. {% admonition type="warning" %} To request access to the Fin Agent API, go to **Settings > Integrations > Fin Agent API** in your workspace and tell us about your use case. Once access is granted, **Fin Agent API** appears under **Fin AI Agent > Deploy**. {% /admonition %} responses: '200': description: Rating recorded successfully content: application/json: examples: Successful response: value: conversation_id: ext-123 rating: amazing status: rated schema: type: object properties: conversation_id: type: string description: The external ID of the rated conversation. example: ext-123 rating: type: string enum: - terrible - bad - ok - good - amazing description: The rating now recorded on the conversation. example: amazing status: type: string enum: - rated description: The result of the submission. example: rated '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: Forbidden content: application/json: examples: Fin Agent API not enabled: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: api_plan_restricted message: Fin Agent API is not enabled for your app. Wrong credentials for the Fin Agent API: value: type: error.list request_id: b68959ea-6328-4f70-83cb-e7913dba1542 errors: - code: forbidden message: Use your workspace's Fin Agent API key to call the Fin Agent API schema: "$ref": "#/components/schemas/error" '422': description: | The rating could not be recorded. Common causes: no conversation exists for the given `conversation_id`, Fin never requested a rating for it, the rating window has closed, the rating is locked because a remark was already submitted, or `rating` is not one of the supported values. content: application/json: examples: Conversation not found: value: errors: conversation_id: Conversation not found for the given conversation_id No rating requested: value: errors: base: No rating survey found for this conversation Rating window closed: value: errors: base: The rating window for this conversation has closed Rating locked by a remark: value: errors: base: This rating can no longer be changed because a remark has already been submitted Invalid rating: value: errors: rating: Rating isn't an option schema: type: object properties: errors: type: object description: Validation messages keyed by the field they apply to, or `base` for conversation-level failures. example: base: The rating window for this conversation has closed additionalProperties: type: string requestBody: required: true content: application/json: schema: type: object properties: conversation_id: type: string description: Your external conversation ID — the same ID you started the conversation with, and the one echoed on the `csat_requested` event. example: ext-123 rating: type: string enum: - terrible - bad - ok - good - amazing description: The rating the user selected — one of the `key` values from the `csat_requested` event's options. example: amazing remark: type: string description: Optional free-text comment the user left alongside the rating. Can be added to an already-rated survey, but only once — the rating locks after a remark is recorded. example: Fin solved my problem in seconds. required: - conversation_id - rating examples: Submit a rating: value: conversation_id: ext-123 rating: amazing Submit a rating with a remark: value: conversation_id: ext-123 rating: amazing remark: Fin solved my problem in seconds. "/fin/capabilities": post: summary: Discover Fin's capabilities parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Fin Agent operationId: listFinCapabilities description: | Return a machine-readable, per-user list of what Fin can do for a given end user, so an orchestrating agent can decide which endpoint to call. The response is audience-matched to the supplied user: each live, API-triggerable procedure is checked against that user before being included, alongside the static `reply`, `ask`, and `escalate` actions. {% admonition type="warning" %} To request access to the Fin Agent API, go to **Settings > Integrations > Fin Agent API** in your workspace and tell us about your use case. Once access is granted, **Fin Agent API** appears under **Fin AI Agent > Deploy**. {% /admonition %} responses: '200': description: Capabilities returned successfully content: application/json: examples: Successful response: value: version: "2.17" capabilities: - name: run_procedure_reset_password_12345 description: |-New gifts in store for the jolly season
" internal_article_not_found: summary: Internal article not found value: title: Christmas is here! body: "New gifts in store for the jolly season
" delete: summary: Delete an internal article parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: internal_article_id in: path required: true description: The unique identifier for the internal article which is given by Intercom. example: 123 schema: type: integer tags: - Internal Articles operationId: deleteInternalArticle description: | You can delete a single internal article by making a DELETE request to `https://api.intercom.io/internal_articles/Text for the note.
" url: "/companies/6762f07f1bb69f9f2193baf5/notes" total_count: 1 has_more: false schema: oneOf: - "$ref": "#/components/schemas/company" - "$ref": "#/components/schemas/company_list" - "$ref": "#/components/schemas/company_user_list" '400': description: Bad Request content: application/json: examples: Per page too big: value: type: error.list request_id: 4a0e1b25-bd6f-4e92-be70-5f612c839ea4 errors: - code: parameter_invalid message: Per Page is too big Page limit reached: value: type: error.list request_id: 5b1f2c36-ce70-4fa3-cf81-6a723d94afb5 errors: - code: bad_request message: page limit reached, please use scroll API schema: "$ref": "#/components/schemas/error" '404': description: Company Not Found content: application/json: examples: Company Not Found: value: type: error.list request_id: 9bc4fc62-7cdf-4f72-a56e-02af4836d499 errors: - code: company_not_found message: Company Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 2fa563ba-f9c9-4281-a76b-10bfd777dfd7 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '503': description: Service Unavailable content: application/json: examples: Search temporarily unavailable: value: type: error.list request_id: 6c2a3d47-df81-40b4-d092-7b834ea5b0c6 errors: - code: service_unavailable message: Feature temporarily unavailable schema: "$ref": "#/components/schemas/error" "/companies/{company_id}": get: summary: Retrieve a company by ID parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: company_id in: path required: true description: The unique identifier for the company which is given by Intercom example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 schema: type: string - name: type in: query required: false description: Set to `user` or `users` to return the company's users instead of the company. The response is then a `user.list` object with a `users` array in the legacy user format. example: users schema: type: string enum: - user - users - name: page in: query required: false description: The page of users to fetch. Used only when `type` is `user` or `users`. Defaults to first page. There is a limit of 10,000 users; a `page` and `per_page` that go past it return a `400` error with code `bad_request`. example: 1 schema: type: integer - name: per_page in: query required: false description: How many users to return per page. Used only when `type` is `user` or `users`. Defaults to 50. A value above 60 returns a `400` error with code `parameter_invalid`. example: 50 schema: type: integer maximum: 60 tags: - Companies operationId: RetrieveACompanyById description: You can fetch a single company. responses: '200': description: Successful content: application/json: examples: Successful: value: type: company company_id: '1' id: 6762f07f1bb69f9f2193baf5 app_id: this_is_an_id159_that_should_be_at_least_ name: company1 remote_created_at: 1734537343 created_at: 1734537343 updated_at: 1734537343 monthly_spend: 0 session_count: 0 user_count: 1 tags: type: tag.list tags: [] segments: type: segment.list segments: [] plan: {} custom_attributes: {} notes: type: note.list data: [] url: "/companies/6762f07f1bb69f9f2193baf5/notes" total_count: 0 has_more: false schema: oneOf: - "$ref": "#/components/schemas/company" - "$ref": "#/components/schemas/company_user_list" '400': description: Bad Request content: application/json: examples: Per page too big: value: type: error.list request_id: ebc33a9a-9163-41a5-8ac3-fde3d8098bf7 errors: - code: parameter_invalid message: Per Page is too big Page limit reached: value: type: error.list request_id: b739b9c2-ed4a-46f2-9fe9-3e2e7ba028fa errors: - code: bad_request message: page limit reached, please use scroll API schema: "$ref": "#/components/schemas/error" '404': description: Company Not Found content: application/json: examples: Company Not Found: value: type: error.list request_id: 57d57564-b5e2-4064-abfe-4653e5ac24c0 errors: - code: company_not_found message: Company Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: caf73ce4-bda6-4f2b-bbfb-0d984d430335 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" put: summary: Update a company parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: company_id in: path required: true description: The unique identifier for the company which is given by Intercom example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 schema: type: string tags: - Companies operationId: UpdateCompany description: | You can update a single company using the Intercom provisioned `id`. Every custom attribute you send must already exist in your workspace. Sending one that doesn't returns a `400` error. You can also send this request with `PATCH`; it behaves the same as `PUT`. {% admonition type="warning" name="Using `company_id`" %} When updating a company it is not possible to update `company_id`. This can only be set once upon creation of the company. {% /admonition %} Requires the `write_users_companies` OAuth scope. requestBody: content: application/json: schema: "$ref": "#/components/schemas/update_company_request" examples: successful: summary: Successful value: name: my company website: http://www.mycompany.com/ bad_request: summary: Bad Request value: test: invalid responses: '200': description: Successful content: application/json: examples: Successful: value: type: company company_id: '1' id: 6762f0841bb69f9f2193baff app_id: this_is_an_id165_that_should_be_at_least_ name: company2 remote_created_at: 1734537348 created_at: 1734537348 updated_at: 1734537348 monthly_spend: 0 session_count: 0 user_count: 1 tags: type: tag.list tags: [] segments: type: segment.list segments: [] plan: {} custom_attributes: {} notes: type: note.list data: [] url: "/companies/6762f0841bb69f9f2193baff/notes" total_count: 0 has_more: false schema: "$ref": "#/components/schemas/company" '400': description: Bad Request content: application/json: examples: Custom attribute does not exist: value: type: error.list request_id: 7d3b4e58-e092-41c5-e1a3-8c945fb6c1d7 errors: - code: parameter_invalid message: Custom attribute 'plan_tier' does not exist Custom attribute value is an object: value: type: error.list request_id: 8e4c5f69-f1a3-42d6-f2b4-9da56ac7d2e8 errors: - code: nested_custom_attributes message: Cannot submit an object as a custom attribute value schema: "$ref": "#/components/schemas/error" '404': description: Company Not Found content: application/json: examples: Company Not Found: value: type: error.list request_id: daa64b43-3e3c-4fc4-aef9-91eb40c7885c errors: - code: company_not_found message: Company Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 4748eb32-3261-4798-ace0-a5825edf4eb5 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 9f5d6a7a-02b4-43e7-a3c5-aeb67bd8e3f9 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '422': description: Unprocessable Entity content: application/json: examples: Monthly spend out of range: value: type: error.list request_id: b93c392a-918e-4fdf-bf6a-73554a31106c errors: - code: unprocessable_entity message: monthly_spend has to be in range [-2147483648, 2147483647] schema: "$ref": "#/components/schemas/error" delete: summary: Delete a company parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: company_id in: path required: true description: The unique identifier for the company which is given by Intercom example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 schema: type: string tags: - Companies operationId: deleteCompany description: | Delete a single company. The company record is kept in your workspace, but all contacts are detached. The contacts themselves are not deleted. Detaching contacts is permanent and can't be reversed. These changes may take some time to be reflected in your workspace. The response returns `"deleted": true` as soon as the request is accepted; the contacts are detached in the background. A `company.deleted` webhook is sent after that work finishes, so it arrives some time after the response. No webhook is sent for a company that has no contacts attached, because there is nothing to detach. {% admonition type="warning" %} Third-party integrations that sync companies into Intercom (for example, Salesforce or Chargebee) will recreate any company deleted through this endpoint on their next sync. To prevent recreation, remove or filter the company at the source integration before deleting it via the API. {% /admonition %} Requires the `write_users_companies` OAuth scope. responses: '200': description: Successful content: application/json: examples: Successful: value: id: 6762f0881bb69f9f2193bb09 object: company deleted: true schema: "$ref": "#/components/schemas/deleted_company_object" '404': description: Company Not Found content: application/json: examples: Company Not Found: value: type: error.list request_id: 4f41d1d6-7a42-45e3-a24e-544deb62da47 errors: - code: company_not_found message: Company Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 7b13fd9c-31be-40de-94e1-d71f260a3458 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: a06e7b8b-13c5-44f8-b4d6-bfc78ce9f40a errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/companies/{company_id}/contacts": get: summary: List attached contacts parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: company_id in: path required: true description: The unique identifier for the company which is given by Intercom example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 schema: type: string - name: per_page in: query required: false description: How many contacts to return per page. Defaults to 50. example: 50 schema: type: integer - name: starting_after in: query required: false description: The cursor to fetch the next page of contacts. Use the `starting_after` value from `pages.next` in the previous response. schema: type: string - name: include_merge_history in: query required: false description: Set to `true` to include each contact's `merge_history`. Any other value omits it. example: 'true' schema: type: string tags: - Companies - Contacts operationId: ListAttachedContacts description: | You can fetch a list of all contacts that belong to a company. Requires the `read_users_companies` OAuth scope. responses: '200': description: Successful content: application/json: examples: Successful: value: type: list data: [] total_count: 0 pages: type: pages page: 1 per_page: 50 total_pages: 0 schema: "$ref": "#/components/schemas/company_attached_contacts" '400': description: Bad Request content: application/json: examples: Invalid starting_after: value: type: error.list request_id: b17f8a9b-139c-4418-b4e6-bfd79cf9040a errors: - code: client_error message: Invalid starting_after param. Please try again using a starting_after value from a paginated response schema: "$ref": "#/components/schemas/error" '404': description: Company Not Found content: application/json: examples: Company Not Found: value: type: error.list request_id: 5dde0b79-8c81-4d9e-a4d4-736a44cf2f00 errors: - code: company_not_found message: Company Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: f7586690-c217-47db-9042-cb9550b81260 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: c281819c-24d6-4509-c5e7-c0d89adfa51b errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/companies/{company_id}/segments": get: summary: List attached segments for companies parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: company_id in: path required: true description: The unique identifier for the company which is given by Intercom example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 schema: type: string tags: - Companies operationId: ListAttachedSegmentsForCompanies description: | You can fetch a list of all segments that belong to a company. Requires the `read_users_companies` OAuth scope. responses: '200': description: Successful content: application/json: examples: Successful: value: type: list data: [] schema: "$ref": "#/components/schemas/company_attached_segments" '404': description: Company Not Found content: application/json: examples: Company Not Found: value: type: error.list request_id: de5d939e-77fb-46d7-a3b9-f34199d9f25a errors: - code: company_not_found message: Company Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 91f04dce-5759-4d80-981e-f598ec989d1a errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: d392920d-35e7-461a-d6f8-d1e90be0b62c errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/companies/{company_id}/notes": get: summary: List all company notes parameters: - name: company_id in: path required: true description: The unique identifier for the company which is given by Intercom example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 schema: type: string - name: page in: query required: false description: The page of results to return. Defaults to `1`. example: 1 schema: type: integer - name: per_page in: query required: false description: The number of notes to return per page. Defaults to `50`, maximum `60`. example: 50 schema: type: integer - name: order in: query required: false description: The order the notes are returned in, by id. Defaults to `desc`. example: desc schema: type: string enum: - asc - desc - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Notes - Companies operationId: listCompanyNotes description: | You can fetch a list of notes that are associated to a company. Requires the `read_users_companies` OAuth scope. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: list data: - type: note id: '26' created_at: 1733932587 company: type: company id: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 author: type: admin id: '991267581' name: Ciaran122 Lee email: admin122@email.com away_mode_enabled: false away_mode_reassign: false away_status_reason_id: null has_inbox_seat: true team_ids: [] team_priority_level: {} body: "This is a note.
" total_count: 1 pages: type: pages next: page: 1 per_page: 50 total_pages: 1 schema: "$ref": "#/components/schemas/note_list" '400': description: Bad Request content: application/json: examples: Page size too big: value: type: error.list request_id: 4a1f7c90-2b63-4f18-9d7a-0c5e8b41d9f2 errors: - code: parameter_invalid message: Per Page is too big schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 7d2e5b14-8a06-4c39-bf5d-91e07c3a6b48 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 0f6c3a92-57d1-4e80-b23f-6a9d5c8e14b7 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: Company not found content: application/json: examples: Company not found: value: type: error.list request_id: 57055cde-3d0d-4c67-b5c9-b20b80340bf0 errors: - code: company_not_found message: Company Not Found schema: "$ref": "#/components/schemas/error" post: summary: Create a company note parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: company_id in: path required: true description: The unique identifier for the company which is given by Intercom example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 schema: type: string tags: - Notes - Companies operationId: createCompanyNote description: | You can add a note to a single company. Requires the `write_users_companies` OAuth scope. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: note id: '31' created_at: 1734537390 company: type: company id: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 author: type: admin id: '991267583' name: Ciaran124 Lee email: admin124@email.com away_mode_enabled: false away_mode_reassign: false body: "Hello
" schema: "$ref": "#/components/schemas/note" '400': description: Bad Request content: application/json: examples: Body missing: value: type: error.list request_id: 2b84c6e0-91fd-4a37-8c52-6e7d093af415 errors: - code: parameter_invalid message: Body can't be nil schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 5e9a2d71-6c04-4bf8-93ae-1d0f74b25c69 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 8c1b70d3-4f25-49ea-a6d8-3b5f92e07a14 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: Company or admin not found content: application/json: examples: Admin not found: value: type: error.list request_id: 168f1bc3-d198-4797-8422-9f93fe8af5ad errors: - code: not_found message: Resource Not Found Company not found: value: type: error.list request_id: 6f372239-0259-428f-9943-91b8f7a92162 errors: - code: company_not_found message: Company Not Found schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: type: object required: - body properties: body: type: string description: The text of the note. example: New note admin_id: type: string description: The unique identifier of the admin creating the note. If not provided, defaults to the admin associated with the access token. example: '991267583' examples: successful_response: summary: Successful response value: body: Hello admin_id: '991267583' admin_not_found: summary: Admin not found value: body: Hello admin_id: '123' company_not_found: summary: Company not found value: body: Hello "/companies/search": post: summary: Search companies parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Companies operationId: searchCompanies description: | You can search for companies by the value of their attributes in order to fetch exactly the companies you want. To search for companies, send a `POST` request to `https://api.intercom.io/companies/search`, with a query object in the body defining your filters. Note that the API does not include companies who have no associated users in search results. {% admonition type="warning" name="Optimizing search queries" %} Search queries can be complex, so optimizing them can help the performance of your search. Use the `AND` and `OR` operators to combine multiple filters to get the exact results you need and utilize pagination to limit the number of results returned. The default is `15` results per page. See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#example-search-conversations-request) for more details on how to use the `starting_after` param. {% /admonition %} ### Nesting & Limitations You can nest these filters in order to get even more granular insights that pinpoint exactly what you need. Example: (1 OR 2) AND (3 OR 4). There are some limitations to the amount of multiple's there can be: * There's a limit of max 2 nested filters * There's a limit of max 15 filters for each AND or OR group ### Accepted Fields Most keys listed as part of the Companies Model are searchable. The value you search for has to match the accepted type, otherwise the query will fail (ie. as `created_at` accepts a date, the `value` cannot be a string such as `"foobar"`). | Field | Type | | ---------------------------------- | ------------------------------ | | company_id | String | | name | String | | created_at | Date (UNIX Timestamp) | | updated_at | Date (UNIX Timestamp) | | remote_created_at | Date (UNIX Timestamp) | | last_request_at | Date (UNIX Timestamp) | | monthly_spend | Integer | | session_count | Integer | | user_count | Integer | | tag_id | String | | custom_attributes.{attribute_name} | String | The `plan.id` and `plan.name` fields are not searchable and return a `400` error with code `invalid_field`. ### Accepted Operators The table below shows the operators you can use to define how you want to search for the value. The operator should be put in as a string (`"="`). The operator has to be compatible with the field's type (eg. you cannot search with `>` for a given string value as it's only compatible for integer's and dates). Searching by `tag_id` supports only the `=` and `!=` operators. The `IN` and `NIN` operators are not supported for Date fields. | Operator | Valid Types | Description | | :------- | :------------------------------- | :--------------------------------------------------------------- | | = | All | Equals | | != | All | Doesn't Equal | | IN | All except Date and tag_id | InThis is a note.
" - type: note id: '25' created_at: 1733846187 contact: type: contact id: 6762f0ab1bb69f9f2193bb60 author: type: admin id: '991267581' name: Ciaran122 Lee email: admin122@email.com away_mode_enabled: false away_mode_reassign: false body: "This is a note.
" - type: note id: '24' created_at: 1733846187 contact: type: contact id: 6762f0ab1bb69f9f2193bb60 author: type: admin id: '991267581' name: Ciaran122 Lee email: admin122@email.com away_mode_enabled: false away_mode_reassign: false body: "This is a note.
" total_count: 3 pages: type: pages next: page: 1 per_page: 50 total_pages: 1 schema: "$ref": "#/components/schemas/note_list" '400': description: Bad Request content: application/json: examples: Page size too big: value: type: error.list request_id: 6f3b2d41-7ce9-4a05-91d8-2b74e0c6a93f errors: - code: parameter_invalid message: Per Page is too big schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 3a7d90c5-14e6-4b28-bf03-85c1d6e742ab errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 9b5e41a7-0d38-4c6f-a920-7e3f85b14c6d errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: 57055cde-3d0d-4c67-b5c9-b20b80340bf0 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" post: summary: Create a note parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path required: true description: The unique identifier of a given contact. example: 6762f0ad1bb69f9f2193bb62 schema: type: string tags: - Notes - Contacts operationId: createNote description: | You can add a note to a single contact. Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: note id: '31' created_at: 1734537390 contact: type: contact id: 6762f0ad1bb69f9f2193bb62 author: type: admin id: '991267583' name: Ciaran124 Lee email: admin124@email.com away_mode_enabled: false away_mode_reassign: false body: "Hello
" schema: "$ref": "#/components/schemas/note" '400': description: Bad Request content: application/json: examples: Body missing: value: type: error.list request_id: c40d9e58-1b76-4f23-85a0-7d6c2e914bf3 errors: - code: parameter_invalid message: Body can't be nil schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 1e68b70f-9c3d-4a51-b48e-20d9f7c536a1 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 74c0a9e3-5d81-4b62-9f07-e3a5861d2c4b errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: Contact not found content: application/json: examples: Admin not found: value: type: error.list request_id: 168f1bc3-d198-4797-8422-9f93fe8af5ad errors: - code: not_found message: Resource Not Found Contact not found: value: type: error.list request_id: 6f372239-0259-428f-9943-91b8f7a92162 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: type: object required: - body properties: body: type: string description: The text of the note. example: New note admin_id: type: string description: The unique identifier of a given admin. example: '123' examples: successful_response: summary: Successful response value: admin_id: '991267583' body: Hello admin_not_found: summary: Admin not found value: admin_id: '123' body: Hello contact_not_found: summary: Contact not found value: admin_id: '991267585' body: Hello "/contacts/{contact_id}/segments": get: summary: List attached segments for contact parameters: - name: contact_id in: path description: The unique identifier for the contact which is given by Intercom example: 63a07ddf05a32042dffac965 required: true schema: type: string - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Contacts - Segments operationId: listSegmentsForAContact description: | You can fetch a list of segments that are associated to a contact. Requires the `read_users_companies` or `read_write_users` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: list data: - type: segment id: 6762f0b21bb69f9f2193bb65 name: segment created_at: 1734537394 updated_at: 1734537394 person_type: user schema: "$ref": "#/components/schemas/contact_segments" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: 61c119c7-b2f0-4158-8457-fd53e83f936a errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 0273c219-51b7-4938-95d2-19996b2e2734 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: ca383411-d6ac-5db4-9c4d-352b36f69c8d errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/contacts/{contact_id}/subscriptions": get: summary: List subscriptions for a contact parameters: - name: contact_id in: path description: The unique identifier for the contact which is given by Intercom example: 63a07ddf05a32042dffac965 required: true schema: type: string - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Contacts - Subscription Types operationId: listSubscriptionsForAContact description: | You can fetch a list of subscription types that are attached to a contact. These can be subscriptions that a user has 'opted-in' to or has 'opted-out' from, depending on the subscription type. This will return a list of Subscription Type objects that the contact is associated with. The data property will show a combined list of: 1.Opt-out subscription types that the user has opted-out from. 2.Opt-in subscription types that the user has opted-in to receiving. **Note:** This endpoint only returns subscriptions where the contact has explicitly configured their preference. Subscriptions that are in the default state — where the contact has not made an explicit opt-in or opt-out choice — are not included in the response. responses: '200': description: Successful content: application/json: examples: Successful: value: type: list data: - type: subscription id: '91' state: live consent_type: opt_out default_translation: name: Newsletters description: Lorem ipsum dolor sit amet locale: en translations: - name: Newsletters description: Lorem ipsum dolor sit amet locale: en content_types: - email - type: subscription id: '93' state: live consent_type: opt_in default_translation: name: Newsletters description: Lorem ipsum dolor sit amet locale: en translations: - name: Newsletters description: Lorem ipsum dolor sit amet locale: en content_types: - sms_message schema: "$ref": "#/components/schemas/subscription_type_list" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: c9b793ad-ff39-436c-80c9-db6f24d0d444 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 7323b97b-9ba4-4c54-946c-38cecea65b3c errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" post: summary: Add subscription to a contact tags: - Subscription Types - Contacts parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path description: The unique identifier for the contact which is given by Intercom example: 63a07ddf05a32042dffac965 required: true schema: type: string operationId: attachSubscriptionTypeToContact description: | You can add a specific subscription to a contact. In Intercom, we have two different subscription types based on user consent - opt-out and opt-in: 1.Attaching a contact to an opt-out subscription type will opt that user out from receiving messages related to that subscription type. 2.Attaching a contact to an opt-in subscription type will opt that user in to receiving messages related to that subscription type. This will return a subscription type model for the subscription type that was added to the contact. Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: Successful content: application/json: examples: Successful: value: type: subscription id: '106' state: live consent_type: opt_in default_translation: name: Newsletters description: Lorem ipsum dolor sit amet locale: en translations: - name: Newsletters description: Lorem ipsum dolor sit amet locale: en content_types: - sms_message schema: "$ref": "#/components/schemas/subscription_type" '404': description: Resource not found content: application/json: examples: Contact not found: value: type: error.list request_id: 0c2871af-abed-4bce-a5c5-77efbe721711 errors: - code: not_found message: User Not Found Resource not found: value: type: error.list request_id: 2774db46-34d9-4925-a24d-8203d4a39f65 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: f615465d-fd5f-4d68-8498-389130b897e4 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 82051728-b8a8-5bfd-9f10-71f9a1dc3107 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: type: object required: - id properties: id: type: string description: The unique identifier for the subscription which is given by Intercom example: '37846' consent_type: type: string description: Ignored. Whether the contact is opted in or out is decided by the subscription type's own `consent_type`, not by this value. example: opt_in examples: successful: summary: Successful value: id: 106 consent_type: opt_in contact_not_found: summary: Contact not found value: id: 110 consent_type: opt_in resource_not_found: summary: Resource not found value: id: invalid_id consent_type: opt_in "/contacts/{contact_id}/subscriptions/{subscription_id}": delete: summary: Remove subscription from a contact tags: - Subscription Types - Contacts parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path description: The unique identifier for the contact which is given by Intercom example: 63a07ddf05a32042dffac965 required: true schema: type: string - name: subscription_id in: path description: The unique identifier for the subscription type which is given by Intercom example: '37846' required: true schema: type: string operationId: detachSubscriptionTypeToContact description: | You can remove a specific subscription from a contact. This will return a subscription type model for the subscription type that was removed from the contact. Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: Successful content: application/json: examples: Successful: value: type: subscription id: '122' state: live consent_type: opt_in default_translation: name: Newsletters description: Lorem ipsum dolor sit amet locale: en translations: - name: Newsletters description: Lorem ipsum dolor sit amet locale: en content_types: - sms_message schema: "$ref": "#/components/schemas/subscription_type" '404': description: Resource not found content: application/json: examples: Contact not found: value: type: error.list request_id: 82b37940-b43f-46ee-a492-11543a317c97 errors: - code: not_found message: User Not Found Resource not found: value: type: error.list request_id: c18422ca-5454-42af-9e1d-dd92066e6e9d errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: c7de741d-dc8f-49b1-8cbe-791668ade76c errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 9c562afa-93d0-53d2-bfa4-bb6463fa84ee errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/contacts/{contact_id}/tags": get: summary: List tags attached to a contact tags: - Contacts - Tags parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path description: The unique identifier for the contact which is given by Intercom example: 63a07ddf05a32042dffac965 required: true schema: type: string operationId: listTagsForAContact description: You can fetch a list of all tags that are attached to a specific contact. responses: '200': description: successful content: application/json: examples: successful: value: type: list data: - type: tag id: '80' name: Manual tag applied_at: 1663597223 applied_by: type: admin id: '456' schema: "$ref": "#/components/schemas/tag_list" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: 302049fb-b8c1-4dc8-a327-a8f6e1923484 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: ca3c5e6e-c743-428b-aa8a-ac371a50cc39 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" post: summary: Add tag to a contact tags: - Tags - Contacts parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path description: The unique identifier for the contact which is given by Intercom example: 63a07ddf05a32042dffac965 required: true schema: type: string operationId: attachTagToContact description: | You can tag a specific contact. This will return a tag object for the tag that was added to the contact. Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: tag id: '81' name: Manual tag applied_at: 1663597223 applied_by: type: admin id: '456' schema: "$ref": "#/components/schemas/tag" '404': description: Tag not found content: application/json: examples: Contact not found: value: type: error.list request_id: f22a7847-ee33-449f-80c0-707efd295a53 errors: - code: not_found message: User Not Found Tag not found: value: type: error.list request_id: 8a3e4f88-ae65-433a-b4eb-46780ffc5402 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 9b1c9966-caeb-485a-8419-d707fd472c63 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 42e197b1-6bc2-5504-915d-97e9e59f6c28 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: type: object required: - id properties: id: type: string description: The unique identifier for the tag which is given by Intercom example: '7522907' examples: successful: summary: successful value: id: '81' contact_not_found: summary: Contact not found value: id: '82' tag_not_found: summary: Tag not found value: id: '123' "/contacts/{contact_id}/tags/{tag_id}": delete: summary: Remove tag from a contact tags: - Tags - Contacts parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path description: The unique identifier for the contact which is given by Intercom example: 63a07ddf05a32042dffac965 required: true schema: type: string - name: tag_id in: path description: The unique identifier for the tag which is given by Intercom example: '7522907' required: true schema: type: string operationId: detachTagFromContact description: | You can remove tag from a specific contact. This will return a tag object for the tag that was removed from the contact. Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: tag id: '84' name: Manual tag applied_at: 1663597223 applied_by: type: admin id: '456' schema: "$ref": "#/components/schemas/tag" '404': description: Tag not found content: application/json: examples: Contact not found: value: type: error.list request_id: b3d41080-5b35-42b8-8584-31e4660d355f errors: - code: not_found message: User Not Found Tag not found: value: type: error.list request_id: '02871f7a-860e-433a-8545-6a73fbbe5e22' errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 491beaa4-a452-4940-85e0-498c0ca5528d errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: c6d0888c-4330-545c-8476-656828fed13d errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/contacts/deleted": get: summary: List deleted contacts parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: per_page in: query description: The number of results per page. Defaults to `10`, with a maximum of `150`; larger values are treated as `150`. Only the leading digits are read, so `1.5` is treated as `1`. A value that doesn't start with a positive integer, such as `0` or `abc`, returns a `400` error with code `invalid_per_page`. required: false schema: type: integer minimum: 1 default: 10 maximum: 150 - name: page in: query description: The page of results to fetch. Defaults to `1`. required: false schema: type: integer minimum: 1 default: 1 - name: escape_identity in: query description: By default, `email` values in the response are HTML-escaped (for example, `&` is returned as `&`). Pass `false` to return them unescaped. required: false schema: type: boolean default: true tags: - Contacts operationId: listDeletedContacts description: | Fetch a paginated list of the contacts in your workspace that are no longer active, so you can recover ones whose `id`, `email`, or `external_id` you no longer have and then permanently delete them. Each entry carries a `status` describing why the contact is inactive: `archived`, `blocked`, `merged`, `pending_deletion`, or `permanently_deleted`. `merged_into_id` is present only when `status` is `merged`, and `external_id` and `email` are `null` for `permanently_deleted` contacts. Requires the `read_users_companies` or `read_write_users` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: list data: - type: contact id: 5ba682d23d7cf92bef87bfd4 external_id: "70" email: joe@example.com role: user status: archived updated_at: 1756636800 - type: contact id: 5ba682d23d7cf92bef87bfd5 external_id: "71" email: jane@example.com role: user status: merged merged_into_id: 5ba682d23d7cf92bef87bfd9 updated_at: 1756636800 - type: contact id: 5ba682d23d7cf92bef87bfd6 external_id: email: role: user status: permanently_deleted updated_at: 1756636800 total_count: 3 pages: type: pages page: 1 per_page: 10 total_pages: 1 schema: "$ref": "#/components/schemas/deleted_contact_list" '400': description: Bad Request content: application/json: examples: Bad Request: value: type: error.list request_id: 6a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d errors: - code: invalid_page message: page must be a positive integer Invalid per_page: value: type: error.list request_id: 7b2c3d4e-5f6a-4b8c-9d0e-1f2a3b4c5d6e errors: - code: invalid_per_page message: per_page must be a positive integer schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: e097e446-9ae6-44a8-8e13-2bf3008b87ef errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 4cd97183-4b6b-5eb9-a020-439cc6964338 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/contacts/{contact_id}": put: summary: Update a contact parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path description: id example: 63a07ddf05a32042dffac965 required: true schema: type: string - name: include_merge_history in: query description: Pass `true` to include the contact's merge history in the response. Returned for contacts of any role, with at most the 10 most recent merges. required: false schema: type: boolean default: false tags: - Contacts - Custom Object Instances operationId: UpdateContact description: | You can update an existing contact (ie. user or lead). {% admonition type="info" %} This endpoint handles both **contact updates** and **custom object associations**. See _`update a contact with an association to a custom object instance`_ in the request/response examples to see the custom object association format. {% /admonition %} Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: contact id: 6762f0cd1bb69f9f2193bb7c workspace_id: this_is_an_id279_that_should_be_at_least_ external_id: '70' role: user email: joebloggs@intercom.io email_domain: intercom.io email_verified: false phone: whatsapp_number: name: joe bloggs avatar: owner_id: social_profiles: type: list data: [] has_hard_bounced: false marked_email_as_spam: false unsubscribed_from_emails: false created_at: 1734537421 updated_at: 1734537422 signed_up_at: 1734537421 last_seen_at: last_replied_at: last_contacted_at: last_email_opened_at: last_email_clicked_at: language_override: browser: browser_version: browser_language: os: location: type: location country: region: city: country_code: continent_code: android_app_name: android_app_version: android_device: android_os_version: android_sdk_version: android_last_seen_at: ios_app_name: ios_app_version: ios_device: ios_os_version: ios_sdk_version: ios_last_seen_at: custom_attributes: {} tags: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/tags" total_count: 0 has_more: false notes: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/notes" total_count: 0 has_more: false companies: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/companies" total_count: 0 has_more: false opted_out_subscription_types: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/subscriptions" total_count: 0 has_more: false opted_in_subscription_types: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/subscriptions" total_count: 0 has_more: false utm_campaign: utm_content: utm_medium: utm_source: utm_term: referrer: sms_consent: false unsubscribed_from_sms: false enabled_push_messaging: update a contact with an association to a custom object instance: value: type: contact id: 6762f0cd1bb69f9f2193bb7c workspace_id: this_is_an_id279_that_should_be_at_least_ external_id: '70' role: user email: joebloggs@intercom.io email_domain: intercom.io email_verified: false phone: whatsapp_number: name: joe bloggs avatar: owner_id: social_profiles: type: list data: [] has_hard_bounced: false marked_email_as_spam: false unsubscribed_from_emails: false created_at: 1734537421 updated_at: 1734537422 signed_up_at: 1734537421 last_seen_at: last_replied_at: last_contacted_at: last_email_opened_at: last_email_clicked_at: language_override: browser: browser_version: browser_language: os: location: type: location country: region: city: country_code: continent_code: android_app_name: android_app_version: android_device: android_os_version: android_sdk_version: android_last_seen_at: ios_app_name: ios_app_version: ios_device: ios_os_version: ios_sdk_version: ios_last_seen_at: custom_attributes: order: type: Order.list instances: - id: '21' external_id: '123' external_created_at: 1392036272 external_updated_at: 1392036272 custom_attributes: order_number: ORDER-12345 total_amount: 99.99 type: Order tags: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/tags" total_count: 0 has_more: false notes: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/notes" total_count: 0 has_more: false companies: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/companies" total_count: 0 has_more: false opted_out_subscription_types: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/subscriptions" total_count: 0 has_more: false opted_in_subscription_types: type: list data: [] url: "/contacts/6762f0cd1bb69f9f2193bb7c/subscriptions" total_count: 0 has_more: false utm_campaign: utm_content: utm_medium: utm_source: utm_term: referrer: sms_consent: false unsubscribed_from_sms: false enabled_push_messaging: schema: allOf: - "$ref": "#/components/schemas/contact" properties: enabled_push_messaging: type: boolean nullable: true description: If the user has enabled push messaging. example: true '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 89ce96d9-aae9-4eec-ace2-d68cc4f74879 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 186669b6-de99-567c-91ac-c5d9e513b0a6 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '400': description: Bad Request content: application/json: examples: Invalid timestamp: value: type: error.list request_id: 2d0c4b6e-8f1a-4c3d-9e5b-7a6f8d9c0b1e errors: - code: parameter_invalid message: "'signed_up_at' appears to be in milliseconds. Timestamps must be Unix timestamps in seconds." Owner not a teammate: value: type: error.list request_id: 3e1d5c7f-9a2b-4d4e-8f6c-8b7a9e0d1c2f errors: - code: parameter_invalid message: The owner specified is not a member of the app Custom attribute does not exist: value: type: error.list request_id: 4f2e6d8a-0b3c-4e5f-9a7d-9c8b0f1e2d3a errors: - code: parameter_invalid message: Custom attribute 'plan_tier' does not exist Invalid custom attributes: value: type: error.list request_id: 5a3f7e9b-1c4d-4f6a-8b8e-0d9c1a2f3e4b errors: - code: nested_custom_attributes message: "'custom_attributes' must be an object" User can't become a lead: value: type: error.list request_id: 8e4c2a6f-3b7d-4e9a-a1c5-6f0d2b8e4a37 errors: - code: client_error message: Contact with user role can't be converted to a lead schema: "$ref": "#/components/schemas/error" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: 6b4a8f0c-2d5e-4a7b-9c9f-1e0d2b3a4f5c errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '422': description: Unprocessable Entity content: application/json: examples: Invalid email: value: type: error.list request_id: 7c5b9a1d-3e6f-4b8c-8d0a-2f1e3c4b5a6d errors: - code: parameter_invalid message: "'email' is not a valid email address." schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: oneOf: - "$ref": "#/components/schemas/update_contact_request" examples: successful: summary: successful value: email: joebloggs@intercom.io name: joe bloggs update_a_contact_with_an_association_to_a_custom_object_instance: summary: update a contact with an association to a custom object instance value: custom_attributes: order: - '21' get: summary: Get a contact parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path description: contact_id example: 63a07ddf05a32042dffac965 required: true schema: type: string - name: include_merge_history in: query description: Pass `true` to include the contact's merge history in the response. Returned for contacts of any role, with at most the 10 most recent merges. required: false schema: type: boolean default: false - name: escape_identity in: query description: By default, `name` and `email` values in the response, including nested ones such as social profile names, are HTML-escaped (for example, `&` is returned as `&`). Custom attributes and tags are never escaped. Pass `false` to return them unescaped. required: false schema: type: boolean default: true tags: - Contacts operationId: ShowContact description: | You can fetch the details of a single contact. {% admonition type="info" name="Merged contacts return 410 Gone" %} If a contact has been merged into another contact via the Merge endpoint (`POST /contacts/merge`), requesting it by its original ID will return **HTTP 410 Gone** with a `Link` header pointing to the canonical (merged-into) contact. **Response headers:** ``` Link: ; rel="canonical" ``` **Response body:** ```json { "type": "error.list", "errors": [{ "code": "contact_merged", "message": "This contact has been merged. See the 'Link' header for the canonical contact." }] } ``` The `Link` header contains the path to the final merge target, resolving multi-hop merge chains (up to 3 hops). {% /admonition %} Requires the `read_single_user`, `read_users_companies` or `read_write_users` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: contact id: 6762f0d01bb69f9f2193bb7d workspace_id: this_is_an_id283_that_should_be_at_least_ external_id: '70' role: user email: joe@bloggs.com email_domain: bloggs.com email_verified: false phone: whatsapp_number: name: Joe Bloggs avatar: owner_id: social_profiles: type: list data: [] has_hard_bounced: false marked_email_as_spam: false unsubscribed_from_emails: false created_at: 1734537424 updated_at: 1734537424 signed_up_at: 1734537424 last_seen_at: last_replied_at: last_contacted_at: last_email_opened_at: last_email_clicked_at: language_override: browser: browser_version: browser_language: os: location: type: location country: region: city: country_code: continent_code: android_app_name: android_app_version: android_device: android_os_version: android_sdk_version: android_last_seen_at: ios_app_name: ios_app_version: ios_device: ios_os_version: ios_sdk_version: ios_last_seen_at: custom_attributes: {} tags: type: list data: [] url: "/contacts/6762f0d01bb69f9f2193bb7d/tags" total_count: 0 has_more: false notes: type: list data: [] url: "/contacts/6762f0d01bb69f9f2193bb7d/notes" total_count: 0 has_more: false companies: type: list data: [] url: "/contacts/6762f0d01bb69f9f2193bb7d/companies" total_count: 0 has_more: false opted_out_subscription_types: type: list data: [] url: "/contacts/6762f0d01bb69f9f2193bb7d/subscriptions" total_count: 0 has_more: false opted_in_subscription_types: type: list data: [] url: "/contacts/6762f0d01bb69f9f2193bb7d/subscriptions" total_count: 0 has_more: false utm_campaign: utm_content: utm_medium: utm_source: utm_term: referrer: sms_consent: false unsubscribed_from_sms: false enabled_push_messaging: schema: allOf: - "$ref": "#/components/schemas/contact" properties: enabled_push_messaging: type: boolean nullable: true description: If the user has enabled push messaging. example: true '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 45b30bd1-75d2-40cc-bb39-74ac133a2836 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 4beb09b4-d430-59c9-ad44-0708cfbc1825 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: 6f4e8d0a-2b5c-4e7f-9a9d-1c0b2f3e4d5a errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '410': description: Contact Merged headers: Link: description: 'Link to the canonical (merged-into) contact. Format: `; rel="canonical"`' schema: type: string example: '; rel="canonical"' content: application/json: examples: Contact Merged: value: type: error.list request_id: 45b30bd1-75d2-40cc-bb39-74ac133a2836 errors: - code: contact_merged message: This contact has been merged. See the 'Link' header for the canonical contact. schema: "$ref": "#/components/schemas/error" delete: summary: Delete a contact parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path description: contact_id required: true schema: type: string tags: - Contacts operationId: DeleteContact description: | You can delete a single contact. Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: successful content: application/json: schema: "$ref": "#/components/schemas/contact_deleted" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: a947b2f0-23d3-419d-9ec4-cdd191cea676 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 4631d568-2a95-5889-81c9-f779723578c9 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: 8b6a0f2c-4d7e-4a9b-9c1f-3e2d4b5a6f7c errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" "/contacts/merge": post: summary: Merge two contacts parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: include_merge_history in: query description: Pass `true` to include the merge history of the resulting contact in the response, with at most the 10 most recent merges. required: false schema: type: boolean default: false tags: - Contacts operationId: MergeContact description: | You can merge one contact into another. Both lead-into-user and user-into-user merges are supported: the source contact (`from`) may have a `role` of `lead` or `user`, and the destination contact (`into`) must have a `role` of `user`. {% admonition type="warning" name="User-to-user merges" %} When you merge a user into another user, the source user's attribute values (standard and custom) are discarded and are not moved onto the target user. The target user keeps its own attribute values. Records associated with the source, such as conversations, notes, and tags, are still reassigned to the target. Merging a user into another user requires the `merge_users` OAuth scope on your access token, in addition to the scope required for lead-into-user merges. Tokens without this scope receive a `401 Unauthorized` when the source contact is a user. {% /admonition %} {% admonition type="warning" name="Merged contacts are not retrievable via the API" %} Once a merge is completed, the source contact (`from`) is permanently removed from the active contact list. This means: - **GET /contacts/{id}** — Requesting the source contact by its original ID returns `410 Gone` with a `Link` header pointing to the contact it was merged into. See [Get a contact](/docs/references/rest-api/api.intercom.io/contacts/showcontact). - **POST /contacts/search** — The source contact will not appear in search results, including queries filtered by `updated_at`. - **GET /contacts** — The source contact will not appear in list results. Only the target contact (`into`) remains accessible. If your application stores contact IDs, update them to use the target contact's ID after a merge. {% /admonition %} Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: contact id: 6762f0d51bb69f9f2193bb80 workspace_id: this_is_an_id291_that_should_be_at_least_ external_id: '70' role: user email: joe@bloggs.com email_domain: bloggs.com email_verified: false phone: whatsapp_number: name: Joe Bloggs avatar: owner_id: social_profiles: type: list data: [] has_hard_bounced: false marked_email_as_spam: false unsubscribed_from_emails: false created_at: 1734537429 updated_at: 1734537430 signed_up_at: 1734537429 last_seen_at: last_replied_at: last_contacted_at: last_email_opened_at: last_email_clicked_at: language_override: browser: browser_version: browser_language: os: location: type: location country: region: city: country_code: continent_code: android_app_name: android_app_version: android_device: android_os_version: android_sdk_version: android_last_seen_at: ios_app_name: ios_app_version: ios_device: ios_os_version: ios_sdk_version: ios_last_seen_at: custom_attributes: {} tags: type: list data: [] url: "/contacts/6762f0d51bb69f9f2193bb80/tags" total_count: 0 has_more: false notes: type: list data: [] url: "/contacts/6762f0d51bb69f9f2193bb80/notes" total_count: 0 has_more: false companies: type: list data: [] url: "/contacts/6762f0d51bb69f9f2193bb80/companies" total_count: 0 has_more: false opted_out_subscription_types: type: list data: [] url: "/contacts/6762f0d51bb69f9f2193bb80/subscriptions" total_count: 0 has_more: false opted_in_subscription_types: type: list data: [] url: "/contacts/6762f0d51bb69f9f2193bb80/subscriptions" total_count: 0 has_more: false utm_campaign: utm_content: utm_medium: utm_source: utm_term: referrer: sms_consent: false unsubscribed_from_sms: false enabled_push_messaging: schema: allOf: - "$ref": "#/components/schemas/contact" properties: enabled_push_messaging: type: boolean nullable: true description: If the user has enabled push messaging. example: true '400': description: Bad Request content: application/json: examples: Not a duplicate: value: type: error.list errors: - code: invalid_merge message: Contacts can only be merged when they are duplicates (matching email or phone). Pass skip_duplicate_validation=true to override this check. schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: ff328c7c-6140-48eb-84dd-bb8960b66cd0 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 3a3f8861-b1ec-52f1-856e-b1b9bb28275c errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: 9c7b1a3d-5e8f-4b0c-8d2a-4f3e5c6b7a8d errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '409': description: Merge in progress content: application/json: examples: Merge in progress: value: type: error.list request_id: 0d8c2b4e-6f9a-4c1d-9e3b-5a4f6d7c8b9e errors: - code: merge_in_progress message: Merge already in progress for one of these contacts. Please retry shortly. schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/merge_contacts_request" examples: successful: summary: successful value: from: 6762f0d51bb69f9f2193bb7f into: 6762f0d51bb69f9f2193bb80 skip duplicate validation: summary: skip duplicate validation value: from: 6762f0d51bb69f9f2193bb7f into: 6762f0d51bb69f9f2193bb80 skip_duplicate_validation: true "/contacts/merge/preview": post: summary: Preview a contact merge parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Contacts operationId: PreviewMergeContact description: | Preview the result of merging one contact into another without applying the merge. This is a read-only dry run: it reports whether the merge is allowed and, if so, exactly what would change, **without modifying any data**. Send the same `from` and `into` contact IDs you would pass to [Merge two contacts](/docs/references/rest-api/api.intercom.io/contacts/mergecontact). As with the merge endpoint, `from` may have a `role` of `lead` or `user`, and `into` must have a `role` of `user`. You can optionally pass `custom_attribute_names` to include specific custom attributes in the previewed attribute changes. - When `allowed` is `true`, the response contains a `summary`: every attribute change (with the resulting value on the surviving contact) and, for each object type, two counts — `from`, how many are on the source contact and would move to the destination, and `into`, how many the destination already has. Counts are reported for conversations, tickets, phone calls, notes, and tags. `conversations` counts non-ticket conversations only; tickets are reported separately under `tickets`, and `phone_calls` is present only for phone-channel merges. - When `allowed` is `false`, the response contains `reasons`. Each reason has a stable `code` you can branch on and a human-readable `message` you can display. {% admonition type="warning" name="Previewing non-duplicate contacts" %} By default a merge requires the two contacts to share an identifier (email or phone). Set `skip_duplicate_validation` to `true` to preview a merge of contacts that don't, the same rule the merge endpoint enforces. {% /admonition %} When `allowed` is `false`, `reasons[].code` is one of: | code | meaning | | --- | --- | | `source_same_as_target` | The source contact (`from`) and the destination contact (`into`) are the same contact. A contact can't be merged into itself. | | `invalid_merge_role_pair` | The `from`/`into` roles aren't mergeable. `into` must be a user. | | `no_shared_identifier` | The contacts share no email or phone. The source's phone also counts as shared when it matches the destination's WhatsApp number. Set `skip_duplicate_validation` to preview anyway. | | `facebook_user` | Facebook contacts can't be merged. | | `external_lead_channel_not_allowed` | The source is an external-channel lead that isn't eligible for merging. | | `mailing_list` | Contacts created from a mailing list can't be merged. | | `user_to_lead` | `into` is a lead or visitor. A user can only be merged into another user. | | `whatsapp_data_cannot_be_merged` | The WhatsApp number on the source contact can't be reassigned to the destination. | | `telegram_data_cannot_be_merged` | The Telegram sender on the source contact can't be reassigned to the destination. | | `ms_teams_data_cannot_be_merged` | The destination contact already has a Microsoft Teams sender for the same team as the source contact, so the source's sender can't be reassigned to it. | | `source_has_telegram_data` | The source contact has Telegram data, which user-into-user merges don't yet support moving. | | `phone_data_cannot_be_merged` | The phone data on the source contact can't be reassigned to the destination. | Requires the `read_write_users` OAuth scope. responses: '200': description: successful content: application/json: examples: allowed: summary: Merge allowed value: allowed: true summary: attribute_changes: attributes: - field: name outcome: adopted from_value: Jo new_into_value: Jo - field: companies outcome: merged from_value: - Beta into_value: - Acme new_into_value: - Acme - Beta - field: phone outcome: discarded from_value: "+1555" into_value: "+1999" new_into_value: "+1999" total_count: 3 reassignments: conversations: from: 12 into: 5 tickets: from: 2 into: 1 phone_calls: from: 1 into: 0 tags: from: 3 into: 4 notes: from: 2 into: 6 blocked: summary: Merge not allowed value: allowed: false reasons: - code: no_shared_identifier message: These contacts don't share a common identifier (email, phone, or external ID), so they aren't recognised as duplicates. Set skip_duplicate_validation to true to preview the merge anyway. schema: "$ref": "#/components/schemas/merge_preview_response" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: ff328c7c-6140-48eb-84dd-bb8960b66cd0 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 5216a8fb-f031-5110-b19d-30868b50e550 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: 1e9d3c5f-7a0b-4d2e-8f4c-6b5a7e8d9c0f errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/merge_preview_request" examples: allowed: summary: successful value: from: 6762f0d51bb69f9f2193bb7f into: 6762f0d51bb69f9f2193bb80 "/contacts/search": post: summary: Search contacts parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: include_merge_history in: query description: Pass `true` in the query string to include a `merge_history` array on each contact in the response; a JSON boolean in the request body is ignored. Returned for contacts of any role, with at most the 10 most recent merges. required: false schema: type: boolean default: false - name: escape_identity in: query description: By default, `name` and `email` values in the response, including nested ones such as social profile names, are HTML-escaped (for example, `&` is returned as `&`). Custom attributes and tags are never escaped. Pass `false` to return them unescaped. required: false schema: type: boolean default: true tags: - Contacts operationId: SearchContacts description: | You can search for multiple contacts by the value of their attributes in order to fetch exactly who you want. To search for contacts, you need to send a `POST` request to `https://api.intercom.io/contacts/search`. This will accept a query object in the body which will define your filters in order to search for contacts. {% admonition type="warning" name="Optimizing search queries" %} Search queries can be complex, so optimizing them can help the performance of your search. Use the `AND` and `OR` operators to combine multiple filters to get the exact results you need and utilize pagination to limit the number of results returned. The default is `50` results per page. See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#example-search-conversations-request) for more details on how to use the `starting_after` param. {% /admonition %} ### Merged Contacts Contacts that have been merged (via POST /contacts/merge) are excluded from search results. If a contact was recently merged into another, it will no longer appear in queries filtered by `updated_at` or any other field. Only the target contact from the merge remains searchable. ### Contact Creation Delay If a contact has recently been created, there is a possibility that it will not yet be available when searching. This means that it may not appear in the response. This delay can take a few minutes. If you need to be instantly notified it is recommended to use webhooks and iterate to see if they match your search filters. ### Nesting & Limitations You can nest these filters in order to get even more granular insights that pinpoint exactly what you need. Example: (1 OR 2) AND (3 OR 4). There are some limitations to the amount of multiple's there can be: * There's a limit of max 2 nested filters * There's a limit of max 15 filters for each AND or OR group * There's a limit of max 15 values in an `IN` or `NIN` array * `pagination.per_page` must be between 1 and 150 ### Searching for Timestamp Fields Standard timestamp fields and Date custom attributes behave differently. **Standard timestamp fields** (`created_at`, `updated_at`, `last_seen_at` etc.) are filtered on the exact second, in UTC. `=` matches only Contacts whose value is that exact second, and `>`, `<`, `>=` and `<=` compare against the exact instant you pass - the value is not rounded or truncated. These fields report a type of `datetime` on the Data Attributes endpoint. Note that `!=` also matches Contacts with no value set for the field. **Date custom attributes** are matched by calendar day, and the day boundary is always UTC regardless of your workspace's timezone. `=` matches the whole UTC day, `>` matches from the start of the *next* UTC day, and `<` matches everything before the start of that day. The `!=`, `>=`, `<=`, `IN` and `NIN` operators are not supported on these fields and return an error. **Example.** Searching for `created_at` greater than `1577869200` (January 1st, 2020 9:00 AM UTC) returns Contacts created after that exact instant. Passing the same value for a Date custom attribute truncates it to `1577836800` (January 1st, 2020 12:00 AM UTC), so those results begin from January 2nd, 2020 12:00 AM UTC. Only search queries behave this way. Responses always carry the full UNIX timestamp, and sorting uses the full value. ### Accepted Fields Most key listed as part of the Contacts Model are searchable, whether writeable or not. The value you search for has to match the accepted type, otherwise the query will fail (ie. as `created_at` accepts a date, the `value` cannot be a string such as `"foorbar"`). | Field | Type | | ---------------------------------- | ------------------------------ | | id | String | | role | StringHi there!
" style: inline position: top show_dismiss_button: true action: client_targeting: created_at: 1780580493 schema: "$ref": "#/components/schemas/banner_list" '401': "$ref": "#/components/responses/Unauthorized" '404': description: Contact not found content: application/json: examples: Contact not found: value: type: error.list request_id: 57055cde-3d0d-4c67-b5c9-b20b80340bf0 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" "/contacts/{id}/banners/{view_id}/dismiss": post: summary: Dismiss a banner for a contact parameters: - name: id in: path required: true description: The unique identifier of a contact. schema: type: string - name: view_id in: path required: true description: The `view_id` of the banner to dismiss, as returned by the list banners endpoint. schema: type: string - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Banners - Contacts operationId: dismissContactBanner description: | Records that a contact has dismissed a banner. Dismissals are shared across surfaces, so a banner dismissed through this endpoint will also stop appearing in the web Messenger for that contact, and vice versa. The request is idempotent: dismissing an already-dismissed banner succeeds and returns the same response. Requires the `read_write_users` OAuth scope. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: banner_dismiss view_id: '645719311' dismissed: true schema: "$ref": "#/components/schemas/banner_dismiss" '401': "$ref": "#/components/responses/Unauthorized" '404': description: Banner view or contact not found content: application/json: examples: Banner view not found: value: type: error.list request_id: 57055cde-3d0d-4c67-b5c9-b20b80340bf0 errors: - code: not_found message: Resource Not Found Contact not found: value: type: error.list request_id: 8a2d6f0e-4b7c-4e19-9f3a-1c5e8b2d7f46 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" "/contacts/{contact_id}/block": post: summary: Block contact parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: contact_id in: path description: contact_id example: 63a07ddf05a32042dffac965 required: true schema: type: string tags: - Contacts operationId: BlockContact description: | Block a single contact.You can request a refund within 30 days of purchase.
" responses: '201': description: Dynamic content created content: application/json: examples: Dynamic content created: value: type: dynamic_content id: '123' name: Support phone number key: support-phone-number content_type: inline default_locale: en variations: - type: dynamic_content_variation id: '456' locale: en brand_id: text_content: "+1-555-0100" json_blocks: intentionally_empty: false created_at: 1663597223 updated_at: 1663597223 - type: dynamic_content_variation id: '457' locale: fr brand_id: text_content: "+33 1 23 45 67 89" json_blocks: intentionally_empty: false created_at: 1663597223 updated_at: 1663597223 created_at: 1663597223 updated_at: 1663597223 schema: "$ref": "#/components/schemas/dynamic_content" '400': description: Bad Request content: application/json: examples: Unknown field: value: type: error.list request_id: c9369cf1-9610-4a1a-91b9-bc3dfde9df4f errors: - code: parameter_invalid message: 'found unpermitted parameter: :key' schema: "$ref": "#/components/schemas/error" '401': "$ref": "#/components/responses/Unauthorized" '403': description: Dynamic content is not enabled content: application/json: examples: Dynamic content is not enabled: value: type: error.list request_id: 591a0c2f-78b3-41bb-bfa7-f1fae15107b9 errors: - code: api_plan_restricted message: Dynamic content is not enabled for this workspace schema: "$ref": "#/components/schemas/error" '422': description: Validation error content: application/json: examples: Name already in use: value: type: error.list request_id: errors: - code: validation_error message: A dynamic content named 'Support phone number' already exists Missing default locale variation: value: type: error.list request_id: errors: - code: validation_error message: Variations must include a brand-agnostic variation for the default locale 'en' Missing text content: value: type: error.list request_id: errors: - code: validation_error message: Inline-type variations require text_content Unknown brand: value: type: error.list request_id: errors: - code: validation_error message: Variations must reference a brand in the same workspace schema: "$ref": "#/components/schemas/error" "/dynamic_contents/{id}": get: summary: Retrieve dynamic content parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier for the dynamic content. schema: type: string example: '123' tags: - Dynamic Content operationId: getDynamicContent description: | You can fetch a single dynamic content by its id. Requires the `read_dynamic_content` or `read_write_dynamic_content` OAuth scope. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: dynamic_content id: '124' name: Refund policy key: refund-policy content_type: block default_locale: en variations: - type: dynamic_content_variation id: '458' locale: en brand_id: text_content: json_blocks: - type: paragraph text: You can request a refund within 30 days of purchase. intentionally_empty: false created_at: 1663597223 updated_at: 1663597223 - type: dynamic_content_variation id: '459' locale: en brand_id: '42' text_content: json_blocks: - type: paragraph text: You can request a refund within 60 days of purchase. intentionally_empty: false created_at: 1663597223 updated_at: 1663597223 created_at: 1663597223 updated_at: 1663597223 schema: "$ref": "#/components/schemas/dynamic_content" '401': "$ref": "#/components/responses/Unauthorized" '403': description: Dynamic content is not enabled content: application/json: examples: Dynamic content is not enabled: value: type: error.list request_id: 591a0c2f-78b3-41bb-bfa7-f1fae15107b9 errors: - code: api_plan_restricted message: Dynamic content is not enabled for this workspace schema: "$ref": "#/components/schemas/error" '404': description: Dynamic content not found content: application/json: examples: Dynamic content not found: value: type: error.list request_id: errors: - code: not_found message: Dynamic content not found schema: "$ref": "#/components/schemas/error" put: summary: Update dynamic content parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier for the dynamic content. schema: type: string example: '123' tags: - Dynamic Content operationId: updateDynamicContent description: | You can update existing dynamic content. Only the fields you provide are changed. You can also send this request with `PATCH`; it behaves the same as `PUT`. Requires the `read_write_dynamic_content` OAuth scope. requestBody: required: true content: application/json: schema: "$ref": "#/components/schemas/dynamic_content_update_request" examples: Update dynamic content: value: variations: - locale: en text_content: "+1-555-0199" - locale: fr text_content: "+33 1 23 45 67 89" responses: '200': description: Dynamic content updated content: application/json: examples: Dynamic content updated: value: type: dynamic_content id: '123' name: Support phone number key: support-phone-number content_type: inline default_locale: en variations: - type: dynamic_content_variation id: '456' locale: en brand_id: text_content: "+1-555-0199" json_blocks: intentionally_empty: false created_at: 1663597223 updated_at: 1663597300 - type: dynamic_content_variation id: '457' locale: fr brand_id: text_content: "+33 1 23 45 67 89" json_blocks: intentionally_empty: false created_at: 1663597223 updated_at: 1663597223 created_at: 1663597223 updated_at: 1663597300 schema: "$ref": "#/components/schemas/dynamic_content" '400': description: Bad Request content: application/json: examples: Unknown field: value: type: error.list request_id: c3bf536d-e972-4310-86c4-f0c3503284ce errors: - code: parameter_invalid message: 'found unpermitted parameter: :type' schema: "$ref": "#/components/schemas/error" '401': "$ref": "#/components/responses/Unauthorized" '403': description: Dynamic content is not enabled content: application/json: examples: Dynamic content is not enabled: value: type: error.list request_id: 591a0c2f-78b3-41bb-bfa7-f1fae15107b9 errors: - code: api_plan_restricted message: Dynamic content is not enabled for this workspace schema: "$ref": "#/components/schemas/error" '404': description: Dynamic content not found content: application/json: examples: Dynamic content not found: value: type: error.list request_id: errors: - code: not_found message: Dynamic content not found schema: "$ref": "#/components/schemas/error" '422': description: Validation error content: application/json: examples: Content type cannot change: value: type: error.list request_id: errors: - code: validation_error message: content_type is immutable after creation Key cannot change: value: type: error.list request_id: errors: - code: validation_error message: key is immutable after creation Empty variations: value: type: error.list request_id: errors: - code: validation_error message: At least one variation is required Missing default locale variation: value: type: error.list request_id: errors: - code: validation_error message: Variations must include a brand-agnostic variation for the default locale 'en' schema: "$ref": "#/components/schemas/error" delete: summary: Delete dynamic content parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier for the dynamic content. schema: type: string example: '123' tags: - Dynamic Content operationId: deleteDynamicContent description: | You can delete a single dynamic content by its id. Dynamic content that is still used in an article can't be deleted. Requires the `read_write_dynamic_content` OAuth scope. responses: '204': description: Dynamic content deleted '401': "$ref": "#/components/responses/Unauthorized" '403': description: Dynamic content is not enabled content: application/json: examples: Dynamic content is not enabled: value: type: error.list request_id: 591a0c2f-78b3-41bb-bfa7-f1fae15107b9 errors: - code: api_plan_restricted message: Dynamic content is not enabled for this workspace schema: "$ref": "#/components/schemas/error" '404': description: Dynamic content not found content: application/json: examples: Dynamic content not found: value: type: error.list request_id: errors: - code: not_found message: Dynamic content not found schema: "$ref": "#/components/schemas/error" '422': description: Dynamic content is still in use content: application/json: examples: Dynamic content is still in use: value: type: error.list request_id: errors: - code: validation_error message: Cannot delete 'Support phone number' because it is still used in 2 articles schema: "$ref": "#/components/schemas/error" "/conversations/{conversation_id}/tags": post: summary: Add tag to a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path description: conversation_id example: '64619700005694' required: true schema: type: string tags: - Tags - Conversations operationId: attachTagToConversation description: You can tag a specific conversation. This will return a tag object for the tag that was added to the conversation. responses: '200': description: successful content: application/json: examples: successful: value: type: tag id: '86' name: Manual tag applied_at: 1663597223 applied_by: type: admin id: '456' schema: "$ref": "#/components/schemas/tag" '404': description: Conversation not found content: application/json: examples: Conversation not found: value: type: error.list request_id: c6e8c74f-a354-4dfd-a5be-6061d2d26341 errors: - code: not_found message: Conversation not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 617bb25d-4dea-4a68-ae74-2fb8f4e87b39 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: type: object required: - id - admin_id properties: id: type: string description: The unique identifier for the tag which is given by Intercom example: '7522907' admin_id: type: string description: The unique identifier for the admin which is given by Intercom. example: '780' examples: successful: summary: successful value: id: 86 admin_id: 991267618 conversation_not_found: summary: Conversation not found value: id: 87 admin_id: 991267620 "/conversations/{conversation_id}/tags/{tag_id}": delete: summary: Remove tag from a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path description: conversation_id example: '64619700005694' required: true schema: type: string - name: tag_id in: path description: tag_id example: '7522907' required: true schema: type: string tags: - Tags - Conversations operationId: detachTagFromConversation description: You can remove tag from a specific conversation. This will return a tag object for the tag that was removed from the conversation. responses: '200': description: successful content: application/json: examples: successful: value: type: tag id: '89' name: Manual tag applied_at: 1663597223 applied_by: type: admin id: '456' schema: "$ref": "#/components/schemas/tag" '404': description: Tag not found content: application/json: examples: Conversation not found: value: type: error.list request_id: 84db22c5-0fef-465a-a909-2643d8a22c69 errors: - code: not_found message: Conversation not found Tag not found: value: type: error.list request_id: 1fe3e9ec-6a5b-4abc-b51c-a515f77d9577 errors: - code: tag_not_found message: Tag not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: df73b7b4-2352-44fd-8d14-4ea8536ad138 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: type: object required: - admin_id properties: admin_id: type: string description: The unique identifier for the admin which is given by Intercom. example: '123' examples: successful: summary: successful value: admin_id: 991267622 conversation_not_found: summary: Conversation not found value: admin_id: 991267624 tag_not_found: summary: Tag not found value: admin_id: 991267625 "/conversations": get: summary: List all conversations parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: per_page in: query schema: type: integer default: 20 maximum: 150 required: false description: How many results per page - name: starting_after in: query required: false description: String used to get the next page of conversations. schema: type: string - name: include_monitors in: query required: false description: If set to true, the response will include a `monitor_evaluations` array on each conversation with the latest QA monitor evaluation for each monitor that has evaluated it. example: true schema: type: boolean default: false - name: include_scorecards in: query required: false description: If set to true, the response will include a `scorecards` array on each conversation with any QA scorecard results. example: true schema: type: boolean default: false tags: - Conversations operationId: listConversations description: | You can fetch a list of all conversations. You can optionally request the result page size and the cursor to start after to fetch the result. {% admonition type="warning" name="Pagination" %} You can use pagination to limit the number of results returned. The default is `20` results per page. See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#pagination-for-list-apis) for more details on how to use the `starting_after` param. {% /admonition %} responses: '200': description: successful content: application/json: examples: successful: value: type: conversation.list pages: type: pages page: 1 per_page: 20 total_pages: 1 total_count: 1 conversations: - type: conversation id: '471' created_at: 1734537460 updated_at: 1734537460 waiting_since: snoozed_until: source: type: conversation id: '403918320' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267628' name: Ciaran166 Lee email: admin166@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f0f31bb69f9f2193bb8b email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: false state: closed read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false sales_agent_participated: false sales_agent: company: external_references: [] channel: initial: messenger current: messenger schema: "$ref": "#/components/schemas/conversation_list" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: b14d75ab-7d26-4191-b33f-77ca0a4d4ede errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: API plan restricted content: application/json: examples: API plan restricted: value: type: error.list request_id: 591a0c2f-78b3-41bb-bfa7-f1fae15107b9 errors: - code: api_plan_restricted message: Active subscription needed. schema: "$ref": "#/components/schemas/error" '400': description: Invalid request content: application/json: examples: Invalid per_page: value: type: error.list request_id: 3b6e9d52-7a04-4c81-b5f3-0d8a2e4c1f69 errors: - code: invalid_per_page message: per_page must be an integer between 0 and 150 Invalid starting_after: value: type: error.list request_id: c9a5e130-6d72-4f48-8b0e-2a7c4d1f5b83 errors: - code: client_error message: Invalid starting_after param. Please try again using a starting_after value from a paginated response schema: "$ref": "#/components/schemas/error" post: summary: Creates a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Conversations operationId: createConversation description: |+ You can create a conversation that has been initiated by a contact (ie. user or lead). The conversation can be an in-app message only. {% admonition type="info" name="Sending for visitors" %} You can also send a message from a visitor by specifying their `id` value in the `from` field, along with a `type` field value of `lead`. This visitor will be automatically converted to a contact with a lead role once the conversation is created. {% /admonition %} This will return the Message model that has been created. responses: '200': description: conversation created content: application/json: examples: conversation created: value: type: user_message id: '403918330' created_at: 1734537501 body: Hello there message_type: inapp conversation_id: '499' schema: allOf: - "$ref": "#/components/schemas/message" required: - conversation_id '404': description: Contact Not Found content: application/json: examples: Contact Not Found: value: type: error.list request_id: d7eb553e-74ae-4341-820b-5d38a94d4a99 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 68e42c33-8220-48ea-906f-75584c3ec440 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: API plan restricted content: application/json: examples: API plan restricted: value: type: error.list request_id: dcf1b373-3e66-4026-a987-98c16f00a908 errors: - code: api_plan_restricted message: Active subscription needed. schema: "$ref": "#/components/schemas/error" '400': description: Invalid request content: application/json: examples: Sender missing: value: type: error.list request_id: 2a9c6e13-5d70-4b84-8f21-6c3e0a7d9b58 errors: - code: data_invalid message: "Field 'from' must be an object" schema: "$ref": "#/components/schemas/error" '422': description: Unprocessable entity content: application/json: examples: Message too long: value: type: error.list request_id: f0b4d728-1e63-4a95-b7c0-8d2a5e9c3f16 errors: - code: parameter_invalid message: Message is too long. Maximum length is 300000 schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/create_conversation_request" examples: conversation_created: summary: conversation created value: from: type: user id: 6762f11b1bb69f9f2193bba3 body: Hello there contact_not_found: summary: Contact Not Found value: from: type: user id: 123_doesnt_exist body: Hello there "/conversations/{conversation_id}": get: summary: Retrieve a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path required: true description: The id of the conversation to target example: 123 schema: type: integer - name: display_as in: query required: false description: Set to plaintext to retrieve conversation messages in plain text. This affects both the body and subject fields. Inline links are rendered as `label (url)`, preserving the link URL alongside the visible text. Line breaks inside a paragraph are rendered as newlines. example: plaintext schema: type: string - name: include_translations in: query required: false description: If set to true, conversation parts will be translated to the detected language of the conversation. example: true schema: type: boolean - name: include_email_history in: query required: false description: If set to true, the source of the conversation will include the email history, for conversations started by email. example: true schema: type: boolean - name: parts_created_after in: query required: false description: Only include conversation parts created at or after this time, as a Unix timestamp in seconds. example: 1700000000 schema: type: integer - name: parts_created_before in: query required: false description: Only include conversation parts created at or before this time, as a Unix timestamp in seconds. example: 1700086400 schema: type: integer - name: include_monitors in: query required: false description: If set to true, the response will include a `monitor_evaluations` array with the latest QA monitor evaluation for each monitor that has evaluated this conversation. example: true schema: type: boolean default: false - name: include_scorecards in: query required: false description: If set to true, the response will include a `scorecards` array with any QA scorecard results for this conversation. example: true schema: type: boolean default: false - name: include_part_types in: query required: false description: A comma-separated list of conversation part types to return, such as `assignment`, `note` or `snoozed`. Cannot be combined with `exclude_part_types`. example: comment,note schema: type: array minItems: 1 maxItems: 50 items: type: string style: form explode: false - name: exclude_part_types in: query required: false description: A comma-separated list of conversation part types to leave out, such as `assignment`, `note` or `snoozed`. Cannot be combined with `include_part_types`. example: assignment schema: type: array minItems: 1 maxItems: 50 items: type: string style: form explode: false - name: page in: query required: false description: The page of conversation parts to return. When sent, parts are paginated oldest first, so page 1 holds the oldest parts. A page past the end returns an empty list. example: 1 schema: type: integer minimum: 1 - name: per_page in: query required: false description: The number of conversation parts per page, between 1 and 500. Only used when `page` is sent. example: 50 schema: type: integer minimum: 1 maximum: 500 default: 20 tags: - Conversations operationId: retrieveConversation description: |2 You can fetch the details of a single conversation. This will return a single Conversation model with all its conversation parts. {% admonition type="info" name="Conversation parts limit" %} Without `page`, the response returns the 500 most recent conversation parts. If you need more than the 500 most recent parts, send `page` (and optionally `per_page`) to page through every part, oldest first, following `conversation_parts.pages.next`. Part type and `parts_created_after`/`parts_created_before` filters are applied first. `conversation_parts.total_count` counts the parts in this response after filtering, not the conversation's total part count. {% /admonition %} For AI agent conversation metadata, please note that you need to have the agent enabled in your workspace, which is a [paid feature](https://www.intercom.com/help/en/articles/8205718-fin-resolutions#h_97f8c2e671). responses: '200': description: conversation found content: application/json: examples: conversation found: value: type: conversation id: '503' created_at: 1734537511 updated_at: 1734537511 waiting_since: snoozed_until: source: type: conversation id: '403918334' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267645' name: Ciaran176 Lee email: admin176@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1261bb69f9f2193bba7 email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: false state: closed read: false tags: type: tag.list tags: - type: tag id: '123456' name: Test tag applied_at: 1663597223 applied_by: type: contact id: '1a2b3c' priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '1' part_type: comment body:Okay!
created_at: 1663597223 updated_at: 1663597260 notified_at: 1663597260 assigned_to: author: type: admin id: '274' name: Operator email: operator+abcd1234@intercom.io attachments: [] external_id: 'abcd1234' redacted: false email_message_metadata: null state: open tags: - type: tag id: '123456' name: Test tag event_details: app_package_code: null translations: original: en en: 'Okay!
' es: '¡Vale!
' - type: conversation_part id: '2' part_type: custom_action_started body: created_at: 1740141842 updated_at: 1740141842 notified_at: 1740141842 assigned_to: author: type: admin id: '274' name: Jamie Oliver email: jamie+abcd1234@intercom.io attachments: [] external_id: redacted: false email_message_metadata: null state: open tags: [] event_details: action: name: Jira Create Issue app_package_code: test-integration - type: conversation_part id: '3' part_type: conversation_attribute_updated_by_admin body: created_at: 1740141851 updated_at: 1740141851 notified_at: 1740141851 assigned_to: author: type: bot id: '278' name: Fin email: operator+abcd1234@intercom.io attachments: [] external_id: redacted: false email_message_metadata: null state: open tags: [] event_details: attribute: name: jira_issue_key value: name: PROJ-007 app_package_code: null - type: conversation_part id: '4' part_type: custom_action_finished body: created_at: 1740141857 updated_at: 1740141857 notified_at: 1740141857 assigned_to: author: type: admin id: '274' name: Jamie Oliver email: jamie+abcd1234@intercom.io attachments: [] external_id: redacted: false email_message_metadata: null state: closed tags: [] event_details: action: name: Jira Create Issue result: success app_package_code: null - type: conversation_part id: '7' part_type: standalone_platform_handoff body: created_at: 1740141910 updated_at: 1740141910 notified_at: 1740141910 assigned_to: author: type: bot id: '278' name: Fin email: operator+abcd1234@intercom.io attachments: [] external_id: redacted: false email_message_metadata: null state: closed tags: [] event_details: handoff: type: zendesk_ticket success: true data: {} app_package_code: null total_count: 5 schema: "$ref": "#/components/schemas/conversation" '404': description: Not found content: application/json: examples: Not found: value: type: error.list request_id: 8c288c4f-b699-4209-9de4-064398f02785 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 1350c241-0f22-48ca-bab9-169080340870 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: API plan restricted content: application/json: examples: API plan restricted: value: type: error.list request_id: 8b3deed3-fd8b-43d6-b6a8-428c9e17aabb errors: - code: api_plan_restricted message: Active subscription needed. schema: "$ref": "#/components/schemas/error" '422': description: Invalid part type filter content: application/json: examples: Unknown part type name: value: type: error.list request_id: 1f2e3d4c-5b6a-4798-8c9d-0e1f2a3b4c5d errors: - code: parameter_invalid message: 'Unknown conversation part types: foo' Filtering on the unknown part type: value: type: error.list request_id: 5d6e7f80-9102-4123-8d4e-5f6a7b8c9d0e errors: - code: parameter_invalid message: 'Unknown conversation part types: unknown' Both filters supplied: value: type: error.list request_id: 2a3b4c5d-6e7f-4890-9a1b-2c3d4e5f6a7b errors: - code: parameter_invalid message: include_part_types and exclude_part_types cannot be used together Too many values: value: type: error.list request_id: 3b4c5d6e-7f80-4901-8b2c-3d4e5f6a7b8c errors: - code: parameter_invalid message: At most 50 conversation part types may be supplied Empty filter value: value: type: error.list request_id: 6e7f8091-0213-4234-9e5f-6a7b8c9d0e1f errors: - code: parameter_invalid message: include_part_types must name at least one conversation part type Non-string filter value: value: type: error.list request_id: 7f809102-1324-4345-8f6a-7b8c9d0e1f2a errors: - code: parameter_invalid message: include_part_types must be a comma-separated list of conversation part types Unsupported API version: value: type: error.list request_id: 4c5d6e7f-8091-4012-9c3d-4e5f6a7b8c9d errors: - code: parameter_invalid message: include_part_types and exclude_part_types are not supported on this API version Invalid page: value: type: error.list request_id: 8091a2b3-c4d5-4e6f-8a7b-9c0d1e2f3a4b errors: - code: parameter_invalid message: page must be a positive integer Invalid per_page: value: type: error.list request_id: 91a2b3c4-d5e6-4f70-9b8c-0d1e2f3a4b5c errors: - code: parameter_invalid message: per_page must be an integer between 1 and 500 schema: "$ref": "#/components/schemas/error" put: summary: Update a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path required: true description: The id of the conversation to target example: 123 schema: type: integer - name: display_as in: query required: false description: Set to plaintext to retrieve conversation messages in plain text. This affects both the body and subject fields. Inline links are rendered as `label (url)`, preserving the link URL alongside the visible text. Line breaks inside a paragraph are rendered as newlines. example: plaintext schema: type: string tags: - Conversations - Custom Object Instances operationId: updateConversation description: |2+ You can update an existing conversation. {% admonition type="info" name="Replying and other actions" %} If you want to reply to a coveration or take an action such as assign, unassign, open, close or snooze, take a look at the reply and manage endpoints. {% /admonition %} {% admonition type="info" %} This endpoint handles both **conversation updates** and **custom object associations**. See _`update a conversation with an association to a custom object instance`_ in the request/response examples to see the custom object association format. {% /admonition %} {% admonition type="danger" name="Breaking change: duplicate custom attribute names" %} The `PUT /conversations/{id}` endpoint now returns a `400 INVALID_PARAMETER` error when the request includes `custom_attributes` and your workspace contains multiple non-archived conversation custom attributes with the same name. Previously, the update would silently apply to a non-deterministic attribute. To resolve, rename or archive the duplicate attribute in your workspace settings, then retry the request. {% /admonition %} responses: '200': description: update a conversation with an association to a custom object instance content: application/json: examples: conversation found: value: type: conversation id: '507' created_at: 1734537521 updated_at: 1734537523 waiting_since: snoozed_until: source: type: conversation id: '403918338' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267653' name: Ciaran180 Lee email: admin180@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1301bb69f9f2193bbab email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: false state: closed read: true tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: issue_type: Billing priority: High topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '129' part_type: conversation_attribute_updated_by_admin body: created_at: 1734537523 updated_at: 1734537523 notified_at: 1734537523 assigned_to: author: id: '991267654' type: bot name: Fin email: operator+this_is_an_id354_that_should_be_at_least_@intercom.io attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null - type: conversation_part id: '130' part_type: conversation_attribute_updated_by_admin body: created_at: 1734537523 updated_at: 1734537523 notified_at: 1734537523 assigned_to: author: id: '991267654' type: bot name: Fin email: operator+this_is_an_id354_that_should_be_at_least_@intercom.io attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null total_count: 2 update a conversation with an association to a custom object instance: value: type: conversation id: '508' created_at: 1734537525 updated_at: 1734537525 waiting_since: snoozed_until: source: type: conversation id: '403918339' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267659' name: Ciaran185 Lee email: admin185@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1341bb69f9f2193bbac email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: false state: closed read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: order: type: Order.list instances: - id: '21' external_id: '123' external_created_at: 1392036272 external_updated_at: 1392036272 custom_attributes: order_number: ORDER-12345 total_amount: 99.99 type: Order topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: [] total_count: 0 schema: "$ref": "#/components/schemas/conversation" '404': description: Not found content: application/json: examples: Not found: value: type: error.list request_id: de1be01d-a0d3-48a6-9ea6-9789931a6887 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: de63ddb2-c525-4ebf-ad38-82ed8b44c896 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: API plan restricted content: application/json: examples: API plan restricted: value: type: error.list request_id: 34072e07-6b70-4f59-96bf-3106a3563a24 errors: - code: api_plan_restricted message: Active subscription needed. schema: "$ref": "#/components/schemas/error" '400': description: Invalid request content: application/json: examples: Side conversation: value: type: error.list request_id: c6a1d739-8e25-4f40-b9c7-2d5e0a3b7f19 errors: - code: side_conversation message: action can not be performed on a side conversation Unknown conversation attribute: value: type: error.list request_id: 83b4e6f0-2d17-4a59-8c36-0e9a1b5d7c42 errors: - code: parameter_invalid message: Conversation attribute 'Region' does not exist schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/update_conversation_request" examples: conversation_found: summary: conversation found value: read: true title: new conversation title custom_attributes: issue_type: Billing priority: High update_a_conversation_with_an_association_to_a_custom_object_instance: summary: update a conversation with an association to a custom object instance value: custom_attributes: order: - '21' not_found: summary: Not found value: read: true title: new conversation title custom_attributes: issue_type: Billing priority: High delete: summary: Delete a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path description: id required: true schema: type: integer - name: retain_metrics in: query required: false description: If true (default), deletes the conversation while retaining reporting data. If false, deletes the conversation and all associated reporting data. Setting to false requires the `delete_conversations_and_metrics` OAuth scope. example: true schema: type: boolean tags: - Conversations operationId: deleteConversation description: | {% admonition type="warning" name="Irreversible after the recovery window" %} With `retain_metrics=false`, deleting a conversation is permanent and cannot be reversed. With the default `retain_metrics=true`, the conversation's data is retained for 7 days before being permanently deleted, and recovering it during that window isn't available through the API. {% /admonition %} You can delete a single conversation. The behavior depends on the `retain_metrics` parameter: - **With `retain_metrics=true` (default)**: Deletes the conversation while retaining reporting data. The conversation will still appear in reporting, though some data may be incomplete due to the deletion. - **With `retain_metrics=false`**: Deletes the conversation and all associated reporting data. The conversation will be completely removed from both the inbox and all reporting. {% admonition type="info" name="Required scope for retain_metrics=false" %} Using `retain_metrics=false` requires the `delete_conversations_and_metrics` OAuth scope. {% /admonition %} For more info, see [this help center article](https://www.intercom.com/help/en/articles/13885146-deleting-a-conversation). responses: '200': description: successful content: application/json: examples: successful: value: id: '512' object: conversation deleted: true schema: "$ref": "#/components/schemas/conversation_deleted" '400': description: Side conversation content: application/json: examples: Side conversation: value: type: error.list request_id: 44656d97-2081-44b1-b5f7-c14d0bb1b894 errors: - code: side_conversation message: action can not be performed on a side conversation schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 310f55b0-2660-43e8-bed4-7e82b2f40920 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: API plan restricted content: application/json: examples: API plan restricted: value: type: error.list request_id: 7a80b950-b392-499f-85db-ea7c6c424d37 errors: - code: api_plan_restricted message: Active subscription needed. schema: "$ref": "#/components/schemas/error" "/conversations/search": post: summary: Search conversations parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: include_monitors in: query required: false description: If set to true, the response will include a `monitor_evaluations` array on each conversation with the latest QA monitor evaluation for each monitor that has evaluated it. example: true schema: type: boolean default: false - name: include_scorecards in: query required: false description: If set to true, the response will include a `scorecards` array on each conversation with any QA scorecard results. example: true schema: type: boolean default: false tags: - Conversations operationId: searchConversations description: | You can search for multiple conversations by the value of their attributes in order to fetch exactly which ones you want. To search for conversations, you need to send a `POST` request to `https://api.intercom.io/conversations/search`. This will accept a query object in the body which will define your filters in order to search for conversations. {% admonition type="warning" name="Optimizing search queries" %} Search queries can be complex, so optimizing them can help the performance of your search. Use the `AND` and `OR` operators to combine multiple filters to get the exact results you need and utilize pagination to limit the number of results returned. The default is `20` results per page and maximum is `150`. See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#example-search-conversations-request) for more details on how to use the `starting_after` param. {% /admonition %} ### Nesting & Limitations You can nest these filters in order to get even more granular insights that pinpoint exactly what you need. Example: (1 OR 2) AND (3 OR 4). There are some limitations to the amount of multiple's there can be: - There's a limit of max 2 nested filters - There's a limit of max 15 filters for each AND or OR group ### Accepted Fields Most keys listed in the conversation model are searchable, whether writeable or not. The value you search for has to match the accepted type, otherwise the query will fail (ie. as `created_at` accepts a date, the `value` cannot be a string such as `"foorbar"`). The `source.body` field is unique as the search will not be performed against the entire value, but instead against every element of the value separately. For example, when searching for a conversation with a `"I need support"` body - the query should contain a `=` operator with the value `"support"` for such conversation to be returned. A query with a `=` operator and a `"need support"` value will not yield a result. | Field | Type | | :---------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- | | id | Integer | | type | String | | created_at | Date (UNIX timestamp) | | updated_at | Date (UNIX timestamp) | | source.type | Stringthis is the message body
" author: type: admin id: '991267691' name: Ciaran210 Lee email: admin210@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f14a1bb69f9f2193bbb3 email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: false state: closed read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false sales_agent_participated: false sales_agent: company: external_references: [] channel: initial: messenger current: messenger schema: "$ref": "#/components/schemas/conversation_list" '400': description: Invalid request content: application/json: examples: Invalid query: value: type: error.list request_id: 5e0a9c24-6f18-4d73-a2b5-8c1e3d7f9a60 errors: - code: invalid_query message: "Invalid query. Ensure 'field', 'operator', 'value' are present for simple queries. Ensure 'operator' and 'value' for composite queries. Ensure query is a JSON object." Invalid operator: value: type: error.list request_id: a1c7e439-0b52-4f86-9d24-3e6a8c0b5d71 errors: - code: invalid_operator message: Composite operators must be of type AND or OR Invalid field: value: type: error.list request_id: 2f8d6b05-9a31-4c47-b1e8-7d0c5a3e9f36 errors: - code: invalid_field message: foo is not a valid search field Invalid per_page: value: type: error.list request_id: e9b3a728-4d60-4a15-8f7c-1c5e0d2b6a94 errors: - code: invalid_per_page message: per_page must be an integer between 0 and 150 Invalid starting_after: value: type: error.list request_id: 74a0c5d1-8e39-4b62-a9f4-6b2d1e8c3a07 errors: - code: client_error message: Invalid starting_after param. Please try again using a starting_after value from a paginated response schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: d0c4f817-3a96-4e25-8b1d-5f7a2c9e0b38 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/search_request" examples: successful: summary: successful value: query: operator: AND value: - field: created_at operator: ">" value: '1306054154' pagination: per_page: 5 "/conversations/{conversation_id}/reply": post: summary: Reply to a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path required: true description: "The Intercom provisioned identifier for the conversation, or the string `last` to use the most recent conversation of a contact. With `last`, also send the contact's `intercom_user_id`, `user_id` or `email` in the request body, whatever type of request you send. A contact that can't be found returns a `404` error, and a contact with no conversations returns a `422` error." example: 123 or "last" schema: type: string tags: - Conversations operationId: replyConversation description: |- You can reply to a conversation with a message from an admin or on behalf of a contact, or with a note for admins. {% admonition type="warning" name="Bot replies to inbound email" %} By default, bot or Operator replies to an inbound email conversation aren't sent to your customer. The reply is stored as an unnotifiable bot comment, and no `seen` receipt is generated until an email is actually delivered. To send these replies as outbound emails, reach out to your accounts team to enable the email-reply feature flag for your workspace. {% /admonition %} {% admonition type="info" name="Managing a conversation" %} To close, open, snooze or assign a conversation, use [Manage a conversation](/docs/references/rest-api/api.intercom.io/conversations/manageconversation). {% /admonition %} responses: '200': description: User last conversation reply content: application/json: examples: User reply: value: type: conversation id: '524' created_at: 1734537559 updated_at: 1734537561 waiting_since: 1734537561 snoozed_until: source: type: conversation id: '403918349' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267694' name: Ciaran212 Lee email: admin212@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1571bb69f9f2193bbbb email: joe@example.com external_id: '70' first_contact_reply: created_at: 1734537561 type: conversation url: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: true state: open read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '132' part_type: open body: "Thanks again :)
" created_at: 1734537561 updated_at: 1734537561 notified_at: 1734537561 assigned_to: author: id: 6762f1571bb69f9f2193bbbb type: user name: Joe Bloggs email: joe@bloggs.com attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null total_count: 1 Admin Reply with a Note: value: type: conversation id: '525' created_at: 1734537563 updated_at: 1734537565 waiting_since: snoozed_until: source: type: conversation id: '403918350' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267696' name: Ciaran213 Lee email: admin213@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f15b1bb69f9f2193bbbc email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: false state: closed read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '133' part_type: note body: |-this is the message body
" author: type: admin id: '991267698' name: Ciaran214 Lee email: admin214@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f15e1bb69f9f2193bbbd email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: false state: closed read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '134' part_type: quick_reply body: created_at: 1734537568 updated_at: 1734537568 notified_at: 1734537568 assigned_to: author: id: '991267698' type: admin name: Ciaran214 Lee email: admin214@email.com attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null total_count: 1 User last conversation reply: value: type: conversation id: '527' created_at: 1734537571 updated_at: 1734537572 waiting_since: 1734537572 snoozed_until: source: type: conversation id: '403918352' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267700' name: Ciaran215 Lee email: admin215@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1621bb69f9f2193bbbe email: joe@example.com external_id: '70' first_contact_reply: created_at: 1734537572 type: conversation url: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: true state: open read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '135' part_type: open body: "Thanks again :)
" created_at: 1734537572 updated_at: 1734537572 notified_at: 1734537572 assigned_to: author: id: 6762f1621bb69f9f2193bbbe type: user name: Joe Bloggs email: joe@bloggs.com attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null total_count: 1 schema: "$ref": "#/components/schemas/conversation" '404': description: Not found content: application/json: examples: Not found: value: type: error.list request_id: '06234918-c245-4caa-a2cc-90247983c6ff' errors: - code: not_found message: Resource Not Found Contact not found: value: type: error.list request_id: 19e8b3c6-0a74-4f52-b6d1-3c9a5e7d2b04 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 50f1e8d1-cf1a-450c-a7b5-87a264076241 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: Forbidden content: application/json: examples: API plan restricted: value: type: error.list request_id: 48ad16d0-525c-40bf-b733-89239feb70e3 errors: - code: api_plan_restricted message: Active subscription needed. Admin lacks permission: value: type: error.list request_id: d3a6f081-5b27-4e94-8c1d-7a0e9b2c4f68 errors: - code: action_forbidden message: The admin doesn't have the permissions required to reply to this conversation schema: "$ref": "#/components/schemas/error" '400': description: Invalid request content: application/json: examples: Side conversation: value: type: error.list request_id: b5e90d26-7c14-4a83-8f3b-1d6a2c9e4b70 errors: - code: side_conversation message: action can not be performed on a side conversation Unsupported message type: value: type: error.list request_id: 4c7a1e85-2f90-4d63-a5b8-9e3d0c6f1a27 errors: - code: parameter_invalid message: Unsupported message type schema: "$ref": "#/components/schemas/error" '422': description: Unprocessable entity content: application/json: examples: No conversation for the contact: value: type: error.list request_id: 0e5c9a37-4b82-4d16-a3f7-7c1d8b6e2a49 errors: - code: parameter_invalid message: No conversation for this user Message too long: value: type: error.list request_id: 7f2d5a98-1c46-4b03-9e7a-6b8c0d3f5a21 errors: - code: parameter_invalid message: Message is too long. Maximum length is 300000 schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/reply_conversation_request" examples: user_reply: summary: User reply value: message_type: comment type: user intercom_user_id: 6762f1571bb69f9f2193bbbb body: Thanks again :) admin_note_reply: summary: Admin Reply with a Note value: message_type: note type: admin admin_id: '991267696' body: "this is the message body
" author: type: admin id: '991267708' name: Ciaran219 Lee email: admin219@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f16e1bb69f9f2193bbc2 email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: false state: closed read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '136' part_type: close body: "Goodbye :)
" created_at: 1734537584 updated_at: 1734537584 notified_at: 1734537584 assigned_to: author: id: '991267708' type: admin name: Ciaran219 Lee email: admin219@email.com attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null translations: original: en en: 'Goodbye :)
' es: '¡Adiós! :)
' total_count: 1 Snooze a conversation: value: type: conversation id: '532' created_at: 1734537586 updated_at: 1734537587 waiting_since: snoozed_until: 1734541187 source: type: conversation id: '403918357' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267710' name: Ciaran220 Lee email: admin220@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1711bb69f9f2193bbc3 email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: true state: snoozed read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '137' part_type: snoozed body: created_at: 1734537587 updated_at: 1734537587 notified_at: 1734537587 assigned_to: author: id: '991267710' type: admin name: Ciaran220 Lee email: admin220@email.com attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null total_count: 1 Open a conversation: value: type: conversation id: '537' created_at: 1734537587 updated_at: 1734537601 waiting_since: snoozed_until: source: type: conversation id: '403918358' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267712' name: Ciaran221 Lee email: admin221@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1781bb69f9f2193bbc8 email: joe@example.com external_id: '74' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: true state: open read: true tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: '' custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '139' part_type: open body: created_at: 1734537601 updated_at: 1734537601 notified_at: 1734537601 assigned_to: author: id: '991267712' type: admin name: Ciaran221 Lee email: admin221@email.com attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null total_count: 1 Assign a conversation: value: type: conversation id: '542' created_at: 1734537603 updated_at: 1734537605 waiting_since: snoozed_until: source: type: conversation id: '403918361' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267715' name: Ciaran223 Lee email: admin223@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1831bb69f9f2193bbcc email: joe@example.com external_id: '70' first_contact_reply: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: true state: open read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '140' part_type: assign_and_reopen body: created_at: 1734537605 updated_at: 1734537605 notified_at: 1734537605 assigned_to: type: admin id: '991267715' author: id: '991267715' type: admin name: Ciaran223 Lee email: admin223@email.com attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null total_count: 1 schema: "$ref": "#/components/schemas/conversation" '404': description: Not found content: application/json: examples: Not found: value: type: error.list request_id: e056b3c3-fae3-4a3c-9bcf-836b84efa331 errors: - code: not_found message: Resource Not Found Contact not found: value: type: error.list request_id: 19e8b3c6-0a74-4f52-b6d1-3c9a5e7d2b04 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 623bbbb8-f6fb-45f3-a2e2-4106ff3a4349 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: Forbidden content: application/json: examples: API plan restricted: value: type: error.list request_id: a57737d0-63a7-42bd-aa65-8380ef828124 errors: - code: api_plan_restricted message: Active subscription needed. Admin lacks permission: value: type: error.list request_id: d3a6f081-5b27-4e94-8c1d-7a0e9b2c4f68 errors: - code: action_forbidden message: The admin doesn't have the permissions required to reply to this conversation schema: "$ref": "#/components/schemas/error" '400': description: Invalid request content: application/json: examples: Side conversation: value: type: error.list request_id: b5e90d26-7c14-4a83-8f3b-1d6a2c9e4b70 errors: - code: side_conversation message: action can not be performed on a side conversation Unsupported message type: value: type: error.list request_id: 4c7a1e85-2f90-4d63-a5b8-9e3d0c6f1a27 errors: - code: parameter_invalid message: Unsupported message type schema: "$ref": "#/components/schemas/error" '422': description: Unprocessable entity content: application/json: examples: Snooze time not in the future: value: type: error.list request_id: 6d1a8f40-9c37-4e25-b0d8-2f7a4c5e8b93 errors: - code: parameter_invalid message: snoozed_until must be in the future Already assigned: value: type: error.list request_id: a8f2c514-3e69-4b07-9d1a-5e0c7b3d6f82 errors: - code: conversation_already_assigned_to_assignee message: The conversation is already assigned to the specified assignee Message too long: value: type: error.list request_id: 7f2d5a98-1c46-4b03-9e7a-6b8c0d3f5a21 errors: - code: parameter_invalid message: Message is too long. Maximum length is 300000 schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: oneOf: - "$ref": "#/components/schemas/close_conversation_request" - "$ref": "#/components/schemas/snooze_conversation_request" - "$ref": "#/components/schemas/open_conversation_request" - "$ref": "#/components/schemas/assign_conversation_request" examples: close_a_conversation: summary: Close a conversation value: message_type: close type: admin admin_id: '991267708' body: Goodbye :) snooze_a_conversation: summary: Snooze a conversation value: message_type: snoozed admin_id: '991267710' snoozed_until: 1734541187 open_a_conversation: summary: Open a conversation value: message_type: open admin_id: '991267712' assign_a_conversation: summary: Assign a conversation value: message_type: assignment type: admin admin_id: '991267715' assignee_id: '991267715' not_found: summary: Not found value: message_type: close type: admin admin_id: '991267717' body: Goodbye :) "/conversations/{conversation_id}/customers": post: summary: Attach a contact to a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path required: true description: The identifier for the conversation as given by Intercom. example: '123' schema: type: string tags: - Conversations operationId: attachContactToConversation description: |+ You can add participants who are contacts to a conversation, on behalf of either another contact or an admin. {% admonition type="warning" name="Contacts without an email" %} If you add a contact via the email parameter and there is no user/lead found on that workspace with he given email, then we will create a new contact with `role` set to `lead`. {% /admonition %} responses: '200': description: Attach a contact to a conversation content: application/json: examples: Attach a contact to a conversation: value: customers: - type: user id: 6762f19b1bb69f9f2193bbd4 schema: "$ref": "#/components/schemas/conversation_participants_response" '400': description: Side conversation content: application/json: examples: Side conversation: value: type: error.list request_id: af2cd450-2764-402c-a0e0-cae08a72647b errors: - code: side_conversation message: action can not be performed on a side conversation schema: "$ref": "#/components/schemas/error" '404': description: Not found content: application/json: examples: Not found: value: type: error.list request_id: 86fd8b2e-7048-4fbd-9fb0-d73085d7210b errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 9dc7c1a0-b818-472c-adf6-3e327f22f541 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: API plan restricted content: application/json: examples: API plan restricted: value: type: error.list request_id: 99f72599-ac98-4b1e-af96-808654b6383e errors: - code: api_plan_restricted message: Active subscription needed. schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/attach_contact_to_conversation_request" examples: attach_a_contact_to_a_conversation: summary: Attach a contact to a conversation value: admin_id: 991267731 customer: intercom_user_id: 6762f19b1bb69f9f2193bbd4 not_found: summary: Not found value: admin_id: 991267733 customer: intercom_user_id: 6762f19e1bb69f9f2193bbd5 "/conversations/{conversation_id}/customers/{contact_id}": delete: summary: Detach a contact from a group conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path required: true description: The identifier for the conversation as given by Intercom. example: '123' schema: type: string - name: contact_id in: path required: true description: The identifier for the contact as given by Intercom. example: '123' schema: type: string tags: - Conversations operationId: detachContactFromConversation description: |+ You can remove participants who are contacts from a group conversation, on behalf of an admin. {% admonition type="warning" name="Removing the last participant" %} You cannot remove the last remaining contact from a conversation. {% /admonition %} responses: '200': description: Detach a contact from a group conversation content: application/json: examples: Detach a contact from a group conversation: value: customers: - type: user id: 6762f1b41bb69f9f2193bbe0 schema: "$ref": "#/components/schemas/conversation_participants_response" '400': description: Side conversation content: application/json: examples: Side conversation: value: type: error.list request_id: 83b5ee5b-1971-4594-a6fd-581ee7c56adb errors: - code: side_conversation message: action can not be performed on a side conversation schema: "$ref": "#/components/schemas/error" '404': description: Contact not found content: application/json: examples: Conversation not found: value: type: error.list request_id: 89835b60-6756-4d2a-b148-26ca0cb49f9f errors: - code: not_found message: Resource Not Found Contact not found: value: type: error.list request_id: ab1b9371-3185-417f-a53a-dcae35892980 errors: - code: not_found message: User Not Found schema: "$ref": "#/components/schemas/error" '422': description: Last customer content: application/json: examples: Last customer: value: type: error.list request_id: 8275e92f-66b7-40f9-82a8-9647ca8d7eb4 errors: - code: parameter_invalid message: Removing the last customer is not allowed schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 89ef64b2-d1f9-40c3-89e9-d39175d3d647 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: API plan restricted content: application/json: examples: API plan restricted: value: type: error.list request_id: 6fe4106b-967a-46ba-b1c9-9996aff6e8c3 errors: - code: api_plan_restricted message: Active subscription needed. schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/detach_contact_from_conversation_request" examples: detach_a_contact_from_a_group_conversation: summary: Detach a contact from a group conversation value: admin_id: 991267739 conversation_not_found: summary: Conversation not found value: admin_id: 991267742 contact_not_found: summary: Contact not found value: admin_id: 991267745 last_customer: summary: Last customer value: admin_id: 991267748 "/conversations/{id}/handling_events": get: summary: List handling events parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The identifier for the conversation as given by Intercom. example: '123' schema: type: string tags: - Conversations operationId: listHandlingEvents description: | List all pause/resume events for a conversation. These events track when teammates paused or resumed handling a conversation. Requires the `read_conversations` OAuth scope. responses: '200': description: Successful response content: application/json: schema: "$ref": "#/components/schemas/handling_event_list" examples: Successful response: value: handling_events: - teammate: type: admin id: 123 name: Jane Example email: jane@example.com type: paused timestamp: "2026-01-09T09:00:00Z" reason: Paused - teammate: type: admin id: 123 name: Jane Example email: jane@example.com type: resumed timestamp: "2026-01-09T09:10:00Z" '401': description: Unauthorized content: application/json: schema: "$ref": "#/components/schemas/error" '404': description: Conversation not found content: application/json: schema: "$ref": "#/components/schemas/error" "/conversations/{id}/team_handling_segments": get: summary: List team handling segments parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The identifier for the conversation as given by Intercom. example: '123' schema: type: string tags: - Conversations operationId: listTeamHandlingSegments description: | Shows the time teammates spent actively working on a conversation, and which team the conversation was assigned to while they did. Each period covers a single team assignment, and never continues across a team change. `team` is `null` for time when no team was assigned. The response doesn't say which teammate did the work. Moving a conversation to another team usually unassigns the teammate as well. Their period then ends with an `end_reason` of `assignment`, and the next period starts, with a `start_reason` of `null`, when a teammate picks the conversation up again. You'll only see `team_change` when the team changes and the same teammate keeps working without a break, for example when round robin assigns the conversation back to the teammate who already had it. Periods with no team assigned are returned with `team` set to `null`. `ended_at` is `null` while a period is still open. Requires the `read_conversations` OAuth scope, and the caller must be able to access the conversation. responses: '200': description: Successful response content: application/json: schema: "$ref": "#/components/schemas/team_handling_segment_list" examples: Successful response: value: team_handling_segments: - team: type: team id: '111' name: Billing started_at: "2026-01-20T13:10:05Z" ended_at: "2026-01-20T13:20:00Z" start_reason: end_reason: assignment - team: type: team id: '113' name: Refunds started_at: "2026-01-20T13:24:30Z" ended_at: "2026-01-20T13:31:44Z" start_reason: end_reason: close '400': description: Requested resource is not available in current API version content: application/json: schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: schema: "$ref": "#/components/schemas/error" '403': description: The teammate cannot access the conversation content: application/json: schema: "$ref": "#/components/schemas/error" '404': description: Conversation not found content: application/json: schema: "$ref": "#/components/schemas/error" "/conversations/{id}/hitl_events": get: summary: List HITL events parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The identifier for the conversation as given by Intercom. example: '123' schema: type: string tags: - Conversations operationId: listHitlEvents description: | List the human-in-the-loop (HITL) events for a conversation. When Fin is unsure of an answer it can consult a teammate before replying, proposing a draft that the teammate approves, steers with free-text feedback, or takes over. Each consultation is returned as a series of events, oldest first, across every consultation on the conversation. Requires the `read_conversations` OAuth scope, and the caller must be able to access the conversation. Events are only recorded once a consultation has ended, so a consultation still awaiting a teammate does not appear. Which fields appear in `data` depends on `event_type`: | `event_type` | `data` fields | |---|---| | `fin_consultation_started` | `channel`, `rule_threshold_percent`, `confidence_percent`, `sharp_ask`, `ask_rationale`, `issue_summary`, `customer_question` | | `fin_draft_proposed` | `draft` | | `fin_teammate_input_received` | `round_index`, `teammate_input`, `reviewer_admin_id`, `regeneration_outcome` | | `fin_draft_revised` | `round_index`, `revised_draft`, `regeneration_outcome` | | `fin_consultation_finished` | `outcome`, `approved_draft_type`, `final_draft`, `sent_text`, `reviewer_admin_id`, `duration_seconds`, `rounds_count`, `payload_truncated` | A consultation always produces a `fin_consultation_started` and a `fin_consultation_finished` event. `fin_draft_proposed` appears when Fin proposed a draft. `fin_teammate_input_received` appears once per round of teammate feedback, and `fin_draft_revised` once per round where Fin produced a revised draft in response. Notes on interpreting the response: - `hitl_cycle_id` identifies the consultation, so it is the same on every event of one consultation. It is not unique per event. A conversation can hold several consultations — a consultation that replaces an outstanding one finishes with an `outcome` of `superseded`. - `conversation_part_id` links an event to a conversation part where one exists. It is `null` in ordinary cases: teammate feedback given through the inbox creates no conversation part, a revised draft has no part of its own, and a consultation that escalated or was superseded sent no reply. - `created_at` on `fin_draft_proposed` is approximate. It reports when the consultation started, which is when the draft was proposed. - `rule_id`, `rule_name` and `rule_threshold_percent` are recorded when the consultation begins and are not updated afterwards, so a rule that has since been renamed or retuned will not match its current settings. They are `null` for consultations not triggered by a rule. - `reviewer_admin_id` identifies the teammate involved in that event: on `fin_teammate_input_received` the teammate who gave the feedback, and on `fin_consultation_finished` the teammate who approved the draft or took over. On a consultation with several rounds these can be different teammates. - `rounds_count` counts every round of teammate feedback the consultation had. Only the ten most recent rounds are retained, so a heavily steered consultation returns fewer `fin_teammate_input_received` events than `rounds_count`. - Redacting a conversation removes this data. Depending on how it was redacted, the conversation either returns no events or returns events whose text fields are all `null`. responses: '200': description: Successful response content: application/json: schema: "$ref": "#/components/schemas/hitl_event_list" examples: Successful response: value: type: list data: - hitl_cycle_id: 3f2a91c4-8e77-4d61-9a2b-0c5d7e1f4a80 event_type: fin_consultation_started conversation_part_id: '4471002' rule_id: '88' rule_name: Refunds over $100 created_at: 1767225600 data: channel: email rule_threshold_percent: 60 confidence_percent: 42 sharp_ask: How long do refunds take? ask_rationale: No article covers refund timelines. issue_summary: Customer chasing a refund. customer_question: Where is my refund? - hitl_cycle_id: 3f2a91c4-8e77-4d61-9a2b-0c5d7e1f4a80 event_type: fin_draft_proposed conversation_part_id: '4471008' rule_id: '88' rule_name: Refunds over $100 created_at: 1767225600 data: draft: Refunds are processed within 30 days. - hitl_cycle_id: 3f2a91c4-8e77-4d61-9a2b-0c5d7e1f4a80 event_type: fin_teammate_input_received conversation_part_id: rule_id: '88' rule_name: Refunds over $100 created_at: 1767225701 data: round_index: 1 teammate_input: Tell them 5 business days. reviewer_admin_id: '4001' regeneration_outcome: answer - hitl_cycle_id: 3f2a91c4-8e77-4d61-9a2b-0c5d7e1f4a80 event_type: fin_draft_revised conversation_part_id: rule_id: '88' rule_name: Refunds over $100 created_at: 1767225760 data: round_index: 1 revised_draft: Refunds take 5 business days. regeneration_outcome: answer - hitl_cycle_id: 3f2a91c4-8e77-4d61-9a2b-0c5d7e1f4a80 event_type: fin_consultation_finished conversation_part_id: '4471029' rule_id: '88' rule_name: Refunds over $100 created_at: 1767225780 data: outcome: approved approved_draft_type: revised final_draft: Refunds take 5 business days. sent_text: Refunds take 5 business days. reviewer_admin_id: '4001' duration_seconds: 180 rounds_count: 1 payload_truncated: false '401': description: Unauthorized content: application/json: schema: "$ref": "#/components/schemas/error" '404': description: Conversation not found content: application/json: schema: "$ref": "#/components/schemas/error" "/conversations/{id}/side_conversations": get: summary: List side conversations parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The identifier for the conversation as given by Intercom. example: '123' schema: type: string - name: page in: query required: false description: The page number of results to return (starting from 1). schema: type: integer default: 1 - name: per_page in: query required: false description: The number of side conversations to return per page (max 50). schema: type: integer default: 25 maximum: 50 tags: - Conversations operationId: listSideConversations description: | List side conversations for a given conversation. Side conversations are internal threads created by teammates from within a conversation. Each side conversation includes its conversation parts (messages). Results are paginated. Requires the `read_conversations` OAuth scope. responses: '200': description: Successful response content: application/json: schema: "$ref": "#/components/schemas/side_conversation_list" examples: Successful response: value: type: side_conversation.list side_conversations: - side_conversation_id: '456' conversation_parts: - type: conversation_part id: '789' part_type: comment body: "Internal note about this issue
" author: type: admin id: '123' name: Jane Example email: jane@example.com created_at: 1663597223 updated_at: 1663597223 total_count: 1 total_count: 1 pages: type: pages page: 1 per_page: 25 total_pages: 1 '401': description: Unauthorized content: application/json: schema: "$ref": "#/components/schemas/error" '404': description: Conversation not found content: application/json: schema: "$ref": "#/components/schemas/error" "/conversations/{conversation_id}/rating": post: summary: Rate a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path required: true description: The unique identifier for the conversation. example: '215471234567890' schema: type: string tags: - Conversations operationId: rateConversation description: | Record a contact's CSAT rating, and an optional remark, on the latest rating request Intercom sent for a conversation. The rating counts in your CSAT reports for the teammate, Fin or workflow that was rated. Only the contact the request was sent to can answer. Pass their Intercom ID as `intercom_user_id`. Sending the same rating and remark again returns the current rating without changing it, so it is safe to retry. A different `rating` replaces the earlier one while the rating request still accepts answers. A `remark` can be added to a rating that has none. Once a remark is set, the rating and the remark can no longer be changed. Requires the `write_conversations` permission. requestBody: content: application/json: schema: "$ref": "#/components/schemas/rate_conversation_request" examples: successful: summary: successful value: intercom_user_id: 6541f0a2c3d4e5f607182930 rating: 4 remark: Fast and friendly responses: '200': description: Rating recorded content: application/json: examples: successful: value: type: conversation_rating conversation_id: '215471234567890' rating: 4 remark: Fast and friendly created_at: 1793664000 updated_at: 1793664120 customer: type: user id: 6541f0a2c3d4e5f607182930 teammate: type: admin id: '12345' schema: "$ref": "#/components/schemas/rated_conversation" '400': description: Bad request content: application/json: examples: Resource not available: value: type: error.list request_id: 7a80b950-b392-499f-85db-ea7c6c424d37 errors: - code: intercom_version_invalid message: Requested resource is not available in current API version Missing parameter: value: type: error.list request_id: 5f0c2a8e-3d71-4b96-a1e4-9c6b7d2f8e13 errors: - code: parameter_not_found message: rating parameter is required Invalid parameter type: value: type: error.list request_id: 0e4b9d1c-6a85-4f32-b7d0-2c8e5a1f9b64 errors: - code: parameter_invalid message: rating must be a integer Rating out of range: value: type: error.list request_id: c3a1e7f5-82d4-4b09-9e6a-1d5b0f7c2a48 errors: - code: parameter_invalid message: rating must be an integer from 1 to 5 schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 7d3e1f0a-5b2c-4a96-8c41-0e9f6b2d7a35 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: Forbidden content: application/json: examples: Different contact: value: type: error.list request_id: 9b1c2d3e-4f50-4a61-8b72-c3d4e5f60718 errors: - code: forbidden message: The rating request for this conversation was sent to a different contact Conversation access restricted: value: type: error.list request_id: 2c8a4e6b-9f1d-4b73-a5e0-6d1c3f8b9a47 errors: - code: token_unauthorized message: Not authorized to access this conversation schema: "$ref": "#/components/schemas/error" '404': description: The conversation was not found, or the endpoint is not enabled for the workspace content: application/json: examples: Conversation not found: value: type: error.list request_id: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d errors: - code: conversation_not_found message: Conversation not found schema: "$ref": "#/components/schemas/error" '422': description: Rating not accepted content: application/json: examples: No rating request: value: type: error.list request_id: 6e2f8a1b-0c47-4d93-8b5a-7f1e3c9d0a26 errors: - code: rating_request_not_found message: No rating request has been sent for this conversation Rating window closed: value: type: error.list request_id: 1d7c4b9a-5e30-4f68-a2b1-8c0e6d3f7a95 errors: - code: rating_window_closed message: The rating window for this conversation has closed Rating locked: value: type: error.list request_id: 8f3a6c2d-1b94-4e07-9d5c-0a7b2e4f1c63 errors: - code: rating_locked message: This rating can no longer be changed because a remark has already been submitted schema: "$ref": "#/components/schemas/error" "/conversations/redact": post: summary: Redact a conversation part parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Conversations operationId: redactConversation description: |+ You can redact a conversation part or the source message of a conversation (as seen in the source object). {% admonition type="info" name="Redacting parts and messages" %} If you are redacting a conversation part, it must have a `body`. If you are redacting a source message, it must have been created by a contact. We will return a `conversation_part_not_redactable` error if these criteria are not met. {% /admonition %} responses: '200': description: Redact a conversation part content: application/json: examples: Redact a conversation part: value: type: conversation id: '608' created_at: 1734537721 updated_at: 1734537724 waiting_since: 1734537722 snoozed_until: source: type: conversation id: '403918391' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267757' name: Ciaran247 Lee email: admin247@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1f81bb69f9f2193bc09 email: joe@example.com external_id: '70' first_contact_reply: created_at: 1734537722 type: conversation url: admin_assignee_id: 991267715 team_assignee_id: 5017691 open: true state: open read: true tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '149' part_type: open body: "This message was deleted
" created_at: 1734537722 updated_at: 1734537724 notified_at: 1734537722 assigned_to: author: id: 6762f1f81bb69f9f2193bc09 type: user name: Joe Bloggs email: joe@bloggs.com attachments: [] external_id: redacted: true metadata: {} email_message_metadata: app_package_code: null total_count: 1 schema: "$ref": "#/components/schemas/conversation" '404': description: Not found content: application/json: examples: Not found: value: type: error.list request_id: 5b7bb755-4031-4bfe-8897-54d0f1872bbc errors: - code: conversation_part_or_message_not_found message: Conversation part or message not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 4814668f-5d31-4bf7-8f66-b426aac054db errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/redact_conversation_request" examples: redact_a_conversation_part: summary: Redact a conversation part value: type: conversation_part conversation_id: '608' conversation_part_id: '149' not_found: summary: Not found value: type: conversation_part conversation_id: really_123_doesnt_exist conversation_part_id: really_123_doesnt_exist "/conversations/{id}/merge": post: summary: Merge a conversation parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The identifier for the secondary (source) conversation to merge away. example: '123' schema: type: string tags: - Conversations operationId: mergeConversation description: | Merge a secondary (source) conversation into a primary (target) conversation. The secondary conversation is closed and linked to the primary, which becomes the surviving thread. Returns the primary conversation on success. Requires `write_conversations` OAuth scope. responses: '200': description: Conversation merged content: application/json: examples: Conversation merged: value: type: conversation id: '456' created_at: 1734537559 updated_at: 1734537561 waiting_since: 1734537561 snoozed_until: source: type: conversation id: '403918349' delivered_as: admin_initiated subject: '' body: "this is the message body
" author: type: admin id: '991267694' name: Ciaran212 Lee email: admin212@email.com attachments: [] url: redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1571bb69f9f2193bbbb email: joe@example.com external_id: '70' first_contact_reply: created_at: 1734537561 type: conversation url: admin_assignee_id: 0 team_assignee_id: 0 open: true state: open read: false tags: type: tag.list tags: [] priority: none sla_applied: statistics: conversation_rating: teammates: title: custom_attributes: {} topics: {} ticket: linked_objects: type: list data: [] total_count: 0 has_more: false ai_agent: ai_agent_participated: false conversation_parts: type: conversation_part.list conversation_parts: - type: conversation_part id: '133' part_type: merged_primary_conversation body: created_at: 1734537561 updated_at: 1734537561 notified_at: 1734537561 assigned_to: author: id: '991267694' type: bot name: Operator email: operator@intercom.io attachments: [] external_id: redacted: false metadata: {} email_message_metadata: app_package_code: null total_count: 1 schema: "$ref": "#/components/schemas/conversation" '400': description: Bad request content: application/json: examples: Bad request: value: type: error.list request_id: 450e0b22-ccc2-40dd-bf54-bc0faaa28f57 errors: - code: parameter_invalid message: merge_into_conversation_id must be a valid integer conversation ID schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: a3e5b8e2-1234-5678-9abc-def012345678 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '403': description: Forbidden content: application/json: examples: Forbidden: value: type: error.list request_id: b4f6c9d3-2345-6789-abcd-ef0123456789 errors: - code: action_forbidden message: The admin doesn't have the permissions required to merge conversations schema: "$ref": "#/components/schemas/error" '422': description: Merge failed content: application/json: examples: Primary not found: value: type: error.list request_id: c5a7d0e4-3456-789a-bcde-f01234567890 errors: - code: merge_failed message: Primary conversation not found Already merged: value: type: error.list request_id: d6b8e1f5-4567-890b-cdef-012345678901 errors: - code: merge_failed message: Secondary conversation has already been merged Self-merge: value: type: error.list request_id: e7c9f2a6-5678-901c-def0-123456789012 errors: - code: merge_failed message: Cannot merge a conversation into itself schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/merge_conversations_request" examples: merge_a_conversation: summary: Merge a conversation value: merge_into_conversation_id: 456 "/conversations/{conversation_id}/convert": post: summary: Convert a conversation to a ticket parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: conversation_id in: path required: true description: The id of the conversation to target example: 123 schema: type: integer tags: - Conversations description: You can convert a conversation to a ticket. operationId: convertConversationToTicket responses: '200': description: successful content: application/json: examples: successful: value: type: ticket id: '611' ticket_id: '22' ticket_attributes: {} ticket_state: type: ticket_state id: '7493' category: submitted internal_label: Submitted external_label: Submitted ticket_type: type: ticket_type id: '53' name: my-ticket-type-1 description: my ticket type description is awesome. icon: "\U0001F981" workspace_id: this_is_an_id442_that_should_be_at_least_ archived: false created_at: 1734537737 updated_at: 1734537737 is_internal: false ticket_type_attributes: type: list data: [] category: Customer contacts: type: contact.list contacts: - type: contact id: 6762f2041bb69f9f2193bc0c email: joe@example.com external_id: '70' admin_assignee_id: 0 team_assignee_id: 0 created_at: 1734537732 updated_at: 1734537737 ticket_parts: type: ticket_part.list ticket_parts: - type: ticket_part id: '151' part_type: comment body: "Comment for message
" created_at: 1734537732 updated_at: 1734537732 author: id: 6762f2041bb69f9f2193bc0c type: user name: Joe Bloggs email: joe@bloggs.com attachments: [] redacted: false app_package_code: test-integration - type: ticket_part id: '152' part_type: ticket_state_updated_by_admin ticket_state: submitted previous_ticket_state: submitted created_at: 1734537737 updated_at: 1734537737 author: id: '991267767' type: bot name: Fin email: operator+this_is_an_id442_that_should_be_at_least_@intercom.io attachments: [] redacted: false app_package_code: test-integration total_count: 2 open: true linked_objects: type: list data: [] total_count: 0 has_more: false category: Customer is_shared: true schema: "$ref": "#/components/schemas/ticket" '400': description: Bad request content: application/json: examples: Bad request: value: type: error.list request_id: 450e0b22-ccc2-40dd-bf54-bc0faaa28f57 errors: - code: parameter_invalid message: Ticket type is not a customer ticket type Side conversation: value: type: error.list request_id: 2c105a05-72f9-4b5d-a01b-4b0c84f6e466 errors: - code: side_conversation message: action can not be performed on a side conversation schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/convert_conversation_to_ticket_request" examples: successful: summary: successful value: ticket_type_id: '53' bad_request: summary: Bad request value: ticket_type_id: '54' "/conversations/deleted": get: summary: List all deleted conversation IDs parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: page in: query required: false description: The page of results to fetch. Defaults to first page example: 1 schema: type: integer - name: per_page in: query required: false description: How many results per page schema: type: integer default: 20 maximum: 60 - name: order in: query required: false description: "`asc` or `desc`. Returns the conversation IDs in ascending or descending order. Defaults to desc" example: desc schema: type: string tags: - Conversations operationId: listDeletedConversationIds description: |+ List all deleted conversation IDs. {% admonition type="warning" name="Pagination" %} You can use pagination to limit the number of results returned. The default is `20` results per page. You can navigate to next pages using the `page` param. {% /admonition %} responses: '200': description: View all deleted conversation IDs content: application/json: examples: successful: value: type: conversations.list total_count: 4 pages: type: pages next: https://api.intercom.io/conversations/deleted?per_page=2&order=desc&page=2 page: 1 per_page: 2 total_pages: 2 conversations: - type: conversation id: '512' metrics_retained: false deleted_at: 1734537460 - type: conversation id: '513' metrics_retained: true deleted_at: 1734537400 schema: "$ref": "#/components/schemas/deleted_conversation_list" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 310f55b0-2660-43e8-bed4-7e82b2f40920 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '400': description: Resource not available content: application/json: examples: Resource not available: value: type: error.list request_id: 7a80b950-b392-499f-85db-ea7c6c424d37 errors: - code: intercom_version_invalid message: Requested resource is not available in current API version schema: "$ref": "#/components/schemas/error" '403': description: API plan restricted content: application/json: examples: API plan restricted: value: type: error.list request_id: 58d2b7e4-1f93-4a60-9c05-4e8b3a6d0c17 errors: - code: api_plan_restricted message: Active subscription needed. schema: "$ref": "#/components/schemas/error" "/conversations/stream/token": post: summary: Create a conversation stream token parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Conversations operationId: createConversationStreamToken description: | Realtime streaming of conversation events uses Server-Sent Events (SSE). It is an opt-in feature, enabled per workspace. Contact Intercom to turn it on. Issue a token that a contact's client uses to subscribe to a realtime stream of that contact's conversation events. Tokens are short-lived, so call this endpoint again before `expires_at` to get a fresh one. Use the `revoke` link in the response to end every active token for the contact. Requires the `read_conversations` permission. requestBody: content: application/json: schema: "$ref": "#/components/schemas/create_conversation_stream_token_request" examples: successful: summary: successful value: external_id: contact-1234 responses: '200': description: Token issued content: application/json: examples: successful: value: type: conversation_stream_token expires_at: 1731241200 stream: provider: ably url: main.realtime.ably.net channel: conversation_stream:abc123:6710a1b2c3d4e5f6a7b8c9d0 token: "Hello there,
" sender_id: 991267825 state: draft labels: [] cover_image_url: reactions: [] deliver_silently: false created_at: 1734537793 updated_at: 1734537793 published_at: newsfeed_assignments: [] - id: '30' type: news-item workspace_id: this_is_an_id530_that_should_be_at_least_ title: We have news body: "Hello there,
" sender_id: 991267827 state: draft labels: [] cover_image_url: reactions: [] deliver_silently: false created_at: 1734537793 updated_at: 1734537793 published_at: newsfeed_assignments: [] total_count: 2 schema: "$ref": "#/components/schemas/paginated_response" '400': description: Bad Request content: application/json: examples: Per page too small: value: type: error.list request_id: 1d4b6f2a-5c83-4e71-9a0d-2b6e8c47f310 errors: - code: parameter_invalid message: Per Page is too small schema: "$ref": "#/components/schemas/error" '404': description: News is not enabled on the workspace. The response has no body. '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: d7997515-cd92-4fe4-966c-cb1f4bdda1d4 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 3f7c91e4-6a25-4d8b-b1c3-7e95a2d6048f errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" post: summary: Create a news item parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - News operationId: createNewsItem description: | You can create a news item Requires the `read_write_news_scope` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: id: '33' type: news-item workspace_id: this_is_an_id534_that_should_be_at_least_ title: Halloween is here! body: "New costumes in store for this spooky season
" sender_id: 991267834 state: live labels: - New - Product - Update cover_image_url: reactions: - "\U0001F606" - "\U0001F605" deliver_silently: true created_at: 1734537797 updated_at: 1734537797 published_at: 1734537797 newsfeed_assignments: - newsfeed_id: 53 published_at: 1664638214 schema: "$ref": "#/components/schemas/news_item" '400': description: Bad Request content: application/json: examples: Title missing: value: type: error.list request_id: 5a2e8d16-9b47-4c30-8f6a-1c84e7b59d22 errors: - code: parameter_not_found message: Title is a required parameter Sender missing: value: type: error.list request_id: 7c93f4b8-2d16-4a59-93e7-6b0d85f1c4a3 errors: - code: parameter_not_found message: sender_id is a required parameter Invalid cover image URL: value: type: error.list request_id: 9e51a7c2-4f38-4b6d-a27c-85d3f960e1b4 errors: - code: parameter_invalid message: Invalid cover image URL. Must be a valid url of a PNG or JPG file Newsfeed does not exist: value: type: error.list request_id: 2b86d053-7e14-49af-8c35-4a71e2d9f806 errors: - code: parameter_invalid message: Newsfeed with id 123 does not exist Invalid state: value: type: error.list request_id: 8d40b2f7-3c95-4e18-a6d1-5f27c09e4b83 errors: - code: parameter_invalid message: Invalid state. State can either be draft or live Published date in the future: value: type: error.list request_id: a3e61c58-7b04-4f92-8d3e-1c69f5b20a47 errors: - code: parameter_invalid message: Invalid published_at 4102444800. Date cannot be in the future. Scheduling is not supported through API schema: "$ref": "#/components/schemas/error" '404': description: Sender not found. If News is not enabled on the workspace the response has no body. content: application/json: examples: Sender Not Found: value: type: error.list request_id: 4d19c6e7-8a52-4f03-b67d-93e5017ac2b8 errors: - code: not_found message: Admin not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 5142ad8e-883e-4b71-9adb-6494851e9b77 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 6f02b3a9-1c74-4d85-ae29-50b7c38d6e14 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/news_item_request" examples: successful: summary: successful value: title: Halloween is here! body: "New costumes in store for this spooky season
" labels: - Product - Update - New sender_id: 991267834 deliver_silently: true reactions: - "\U0001F606" - "\U0001F605" state: live newsfeed_assignments: - newsfeed_id: 53 published_at: 1664638214 "/news/news_items/{news_item_id}": get: summary: Retrieve a news item parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: news_item_id in: path required: true description: The unique identifier for the news item which is given by Intercom. example: 123 schema: type: integer tags: - News operationId: retrieveNewsItem description: | You can fetch the details of a single news item. Requires the `read_news_scope` or `read_write_news_scope` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: id: '34' type: news-item workspace_id: this_is_an_id538_that_should_be_at_least_ title: We have news body: "Hello there,
" sender_id: 991267837 state: live labels: [] cover_image_url: reactions: [] deliver_silently: false created_at: 1734537800 updated_at: 1734537800 published_at: 1734537800 newsfeed_assignments: - newsfeed_id: 55 published_at: 1734537800 schema: "$ref": "#/components/schemas/news_item" '404': description: News Item Not Found. If News is not enabled on the workspace the response has no body. content: application/json: examples: News Item Not Found: value: type: error.list request_id: da84e250-8626-47e8-815c-62b33f0f2c36 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 33ff62c6-ceb7-4bde-93d6-301bed6f24b2 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 0c63f8b1-5d27-4e94-82a6-7f91b35ce0d8 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" put: summary: Update a news item parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: news_item_id in: path required: true description: The unique identifier for the news item which is given by Intercom. example: 123 schema: type: integer tags: - News operationId: updateNewsItem description: | You can update a news item. You can also send this request with `PATCH`; it behaves the same as `PUT`. `title`, `body`, `state`, `deliver_silently` and `cover_image_url` keep their current values when you leave them out. `labels` and `newsfeed_assignments` do not: leaving either out clears it, so send the full list on every update. Leaving `reactions` out disables reactions, although the list in the response does not change. Requires the `read_write_news_scope` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: id: '37' type: news-item workspace_id: this_is_an_id544_that_should_be_at_least_ title: Christmas is here! body: "New gifts in store for the jolly season
" sender_id: 991267845 state: live labels: [] cover_image_url: reactions: - "\U0001F61D" - "\U0001F602" deliver_silently: false created_at: 1734537803 updated_at: 1734537804 published_at: 1734537804 newsfeed_assignments: [] schema: "$ref": "#/components/schemas/news_item" '400': description: Bad Request content: application/json: examples: Invalid cover image URL: value: type: error.list request_id: 1e58a2c9-7f43-4b06-95d1-3c82e67a4f90 errors: - code: parameter_invalid message: Invalid cover image URL. Must be a valid url of a PNG or JPG file Invalid state: value: type: error.list request_id: 3a91d7f5-2e68-4c47-b830-6d15f92b8c07 errors: - code: parameter_invalid message: Invalid state. State can either be draft or live Newsfeed does not exist: value: type: error.list request_id: 5c74e019-4a3b-4d62-8e15-9f07a2c631d4 errors: - code: parameter_invalid message: Newsfeed with id 123 does not exist Published date in the future: value: type: error.list request_id: f27c9d14-5a68-4b3e-90c2-7e81a4d6b359 errors: - code: parameter_invalid message: Invalid published_at 4102444800. Date cannot be in the future. Scheduling is not supported through API schema: "$ref": "#/components/schemas/error" '404': description: News Item Not Found, or the sender was not found. Omitting `sender_id` also returns this status. If News is not enabled on the workspace the response has no body. content: application/json: examples: News Item Not Found: value: type: error.list request_id: 2014d867-b634-495a-9b4f-ce56c4d657a9 errors: - code: not_found message: Resource Not Found Sender Not Found: value: type: error.list request_id: 7b20f6a4-6c81-4e39-a05b-2d48e71c9035 errors: - code: not_found message: Admin not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 5838c54e-dd15-460b-82dd-794c4d0e12c5 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 9d36c851-8e05-4a7b-b492-1a63f58d720e errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/update_news_item_request" examples: successful: summary: successful value: title: Christmas is here! body: "New gifts in store for the jolly season
" sender_id: 991267845 reactions: - "\U0001F61D" - "\U0001F602" news_item_not_found: summary: News Item Not Found value: title: Christmas is here! body: "New gifts in store for the jolly season
" sender_id: 991267848 reactions: - "\U0001F61D" - "\U0001F602" delete: summary: Delete a news item parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: news_item_id in: path required: true description: The unique identifier for the news item which is given by Intercom. example: 123 schema: type: integer tags: - News operationId: deleteNewsItem description: | You can delete a single news item. Requires the `read_write_news_scope` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: id: '40' object: news-item deleted: true schema: "$ref": "#/components/schemas/deleted_object" '404': description: News Item Not Found. If News is not enabled on the workspace the response has no body. content: application/json: examples: News Item Not Found: value: type: error.list request_id: 23728e22-7b9f-44a9-9b8d-5028811b9cd0 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: e5357876-89be-4a04-80c3-16735b7f53ff errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 2f85b4d7-0a19-4c63-8e74-5b92d16fa038 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/news/newsfeeds/{newsfeed_id}/items": get: summary: List all live newsfeed items parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: newsfeed_id in: path required: true description: The unique identifier for the news feed item which is given by Intercom. example: '123' schema: type: string - name: page in: query required: false description: The page of results to fetch. schema: type: integer default: 1 example: 1 - name: per_page in: query required: false description: The number of news items to return per page. Values above 20 are reduced to 20. schema: type: integer default: 20 maximum: 20 example: 20 tags: - News operationId: listLiveNewsfeedItems description: | You can fetch a list of all news items that are live on a given newsfeed News items are returned most recently published first. Requires the `read_news_scope` or `read_write_news_scope` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: list pages: page: 1 per_page: 20 total_pages: 0 type: pages data: [] total_count: 0 schema: "$ref": "#/components/schemas/paginated_response" '400': description: Bad Request content: application/json: examples: Per page too small: value: type: error.list request_id: 4a07e9b3-2c56-4f81-96d0-8e34b15c7d92 errors: - code: parameter_invalid message: Per Page is too small schema: "$ref": "#/components/schemas/error" '404': description: Newsfeed not found. If News is not enabled on the workspace the response has no body. content: application/json: examples: Newsfeed Not Found: value: type: error.list request_id: 6c58d1f0-4e73-4a25-b8c9-0f26a93e5b14 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 022ff8b0-d16f-437c-8217-754c13e16dee errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 8e71a3c6-6b90-4d48-85f2-3a07c14e9d26 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/news/newsfeeds": get: summary: List all newsfeeds parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: page in: query required: false description: The page of results to fetch. schema: type: integer default: 1 example: 1 - name: per_page in: query required: false description: The number of newsfeeds to return per page. Values above 20 are reduced to 20. schema: type: integer default: 10 maximum: 20 example: 10 tags: - News operationId: listNewsfeeds description: | You can fetch a list of all newsfeeds Newsfeeds are returned newest first, by creation date. Requires the `read_news_scope` or `read_write_news_scope` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: list pages: page: 1 per_page: 10 total_pages: 1 type: pages data: - id: '68' type: newsfeed name: Visitor Feed created_at: 1734537813 updated_at: 1734537813 - id: '69' type: newsfeed name: Visitor Feed created_at: 1734537813 updated_at: 1734537813 total_count: 2 schema: "$ref": "#/components/schemas/paginated_response" '400': description: Bad Request content: application/json: examples: Per page too small: value: type: error.list request_id: 0b94f5e2-8d17-4b60-a3c7-5e29d60b847f errors: - code: parameter_invalid message: Per Page is too small schema: "$ref": "#/components/schemas/error" '404': description: News is not enabled on the workspace. The response has no body. '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: caa26d8b-6512-445d-9418-9fc5849ca304 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 2d16c7a8-0f34-4e82-9b51-7c40e83f6a95 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/roles": get: summary: List all roles parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Roles operationId: listRoles description: | You can fetch a list of all roles in the workspace. Roles define what a teammate can do in a workspace. The teammates endpoint returns the role a teammate holds, but only the roles that are currently assigned, and only their id and name. This endpoint lists every role in the workspace, each with its description. responses: '200': description: successful content: application/json: examples: successful: value: type: list data: - type: role id: '991267902' name: Support Lead description: Can view and reply to conversations schema: "$ref": "#/components/schemas/role_list" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: a77dadbc-1f1e-4875-bac3-f0d09bbc214a errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" "/roles/{id}": get: summary: Retrieve a role parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier of a given role. example: '991267902' schema: type: string tags: - Roles operationId: retrieveRole description: | You can fetch the details of a single role by its id, including its description, which the teammates endpoint does not return. responses: '200': description: successful content: application/json: examples: successful: value: type: role id: '991267902' name: Support Lead description: Can view and reply to conversations schema: "$ref": "#/components/schemas/role" '404': description: Role not found content: application/json: examples: Role not found: value: type: error.list request_id: 3ff156ba-a66e-40d4-93ff-cb6e6afc3c9d errors: - code: role_not_found message: Role not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: fc4b741b-b9f1-4ef9-92c7-eb71e9811df3 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" "/news/newsfeeds/{newsfeed_id}": get: summary: Retrieve a newsfeed parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: newsfeed_id in: path required: true description: The unique identifier for the news feed item which is given by Intercom. example: '123' schema: type: string tags: - News operationId: retrieveNewsfeed description: | You can fetch the details of a single newsfeed Requires the `read_news_scope` or `read_write_news_scope` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: id: '72' type: newsfeed name: Visitor Feed created_at: 1734537815 updated_at: 1734537815 schema: "$ref": "#/components/schemas/newsfeed" '404': description: Newsfeed not found. If News is not enabled on the workspace the response has no body. content: application/json: examples: Newsfeed Not Found: value: type: error.list request_id: 4f38e9b0-2a51-4c06-83d7-9e62f05a1b48 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 6d9a1bf5-aa08-4c93-a61a-5a21130b6553 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 1a7d35c0-6e82-4b49-9f13-48c0d2e671ba errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/notes/{note_id}": get: summary: Retrieve a note parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: note_id in: path required: true description: The unique identifier of a given note example: '34' schema: type: string tags: - Notes operationId: retrieveNote description: You can fetch the details of a single note. responses: '200': description: Note found content: application/json: examples: Note found: value: type: note id: '34' created_at: 1733846617 contact: type: contact id: 6762f2591bb69f9f2193bc1f author: type: admin id: '991267864' name: Ciaran346 Lee email: admin346@email.com away_mode_enabled: false away_mode_reassign: false body: "This is a note.
" schema: "$ref": "#/components/schemas/note" '404': description: Note not found content: application/json: examples: Note not found: value: type: error.list request_id: bc300b1a-492a-405f-924e-a5881cb72e3a errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 81384687-5818-4df9-b421-fba77edd6c17 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" delete: summary: Delete a note parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: note_id in: path required: true description: The unique identifier of a given note example: '34' schema: type: string tags: - Notes operationId: deleteNote description: | You can delete a single contact or company note. Notes of other kinds cannot be deleted through the API. Requires the `write_users_companies` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: id: '34' type: note deleted: true schema: "$ref": "#/components/schemas/deleted_note_object" '404': description: Note not found content: application/json: examples: Note not found: value: type: error.list request_id: 5c1ca6c7-6f5e-4d4b-9f52-3a2e1c9d7b64 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: e3f0a9c1-2b4d-4e6a-8c7f-1d5b9a3e6f02 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: b24e8f37-0a91-4d5c-9e76-38c1b0da5f62 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '400': description: Resource not available content: application/json: examples: Resource not available: value: type: error.list request_id: 9a2d6e4b-7c1f-4a83-b6d0-2f8e5c1a9b37 errors: - code: intercom_version_invalid message: Requested resource is not available in current API version schema: "$ref": "#/components/schemas/error" "/segments": get: summary: List all segments parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: include_count in: query required: false description: Includes the count of contacts that belong to each segment. The counts are added whenever this parameter has a value in the query string, even `false` or an empty one, so omit it entirely to leave them out. A bare `include_count` with no `=` adds no counts. With `type=company`, a company segment gets no count unless a contact segment has the same name, and then it shows that contact segment's count. example: true schema: type: boolean - name: type in: query required: false description: Pass `company` to list company segments. Any other value, or no value, lists contact segments. example: company schema: type: string tags: - Segments operationId: listSegments description: | You can fetch a list of all segments. Segment names are returned HTML-escaped, for example `&` as `&`. Requires the `read_users_companies` or `write_users_companies` OAuth scope. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: segment.list segments: - type: segment id: 6762f25c1bb69f9f2193bc22 name: John segment created_at: 1734537820 updated_at: 1734537820 person_type: user - type: segment id: 6762f25c1bb69f9f2193bc23 name: Jane segment created_at: 1734537820 updated_at: 1734537820 person_type: user schema: "$ref": "#/components/schemas/segment_list" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: b1939528-98f0-4a63-a442-2cc9203fc8c7 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 5fa31c82-7d64-4e09-b1a7-9c48d0e35b61 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/segments/{segment_id}": get: summary: Retrieve a segment parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: segment_id in: path required: true description: The unique identified of a given segment. example: '123' schema: type: string - name: include_count in: query required: false description: Includes the count of contacts that belong to the segment. The count is added whenever this parameter has a value in the query string, even `false` or an empty one, so omit it entirely to leave it out. A bare `include_count` with no `=` adds no count. example: true schema: type: boolean tags: - Segments operationId: retrieveSegment description: | You can fetch the details of a single segment. The segment name is returned HTML-escaped, for example `&` as `&`. Requires the `read_users_companies` or `write_users_companies` OAuth scope. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: segment id: 6762f25f1bb69f9f2193bc26 name: John segment created_at: 1734537823 updated_at: 1734537823 person_type: user schema: "$ref": "#/components/schemas/segment" '404': description: Segment not found content: application/json: examples: Segment not found: value: type: error.list request_id: bd697cc6-7757-488c-a89f-16e6feaf7585 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: be0d5309-d722-4d2a-aae9-77f4bc0a2cd0 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 36b0d794-82ce-4a15-9f63-71d4ea80c592 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/subscription_types": get: summary: List subscription types parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Subscription Types operationId: listSubscriptionTypes description: | You can list all subscription types. A list of subscription type objects will be returned. Requires the `read_users_companies` OAuth scope. responses: '200': description: Successful content: application/json: examples: Successful: value: type: list data: - type: subscription id: '135' state: live consent_type: opt_out default_translation: name: Newsletters description: Lorem ipsum dolor sit amet locale: en translations: - name: Newsletters description: Lorem ipsum dolor sit amet locale: en content_types: - email schema: "$ref": "#/components/schemas/subscription_type_list" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 06d15b1f-19b0-42cc-aff9-a9d9db39402b errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: e8471b06-3d25-4c9f-b0a8-57fe2d619c3a errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/subscription_types/{id}": get: summary: Retrieve a subscription type parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier for the subscription type. example: '123' schema: type: string tags: - Subscription Types operationId: getSubscriptionType description: | You can fetch the details of a single subscription type by making a GET request to `https://api.intercom.io/subscription_types/Thanks for reaching out, we're looking into it!
" created_at: 1734537880 updated_at: 1734537880 author: id: '991267940' type: admin name: Ciaran418 Lee email: admin418@email.com attachments: [] redacted: false app_package_code: test-integration translations: original: en en: 'Thanks for reaching out, we''re looking into it!
' fr: 'Merci de nous avoir contactés, nous nous en occupons !
' Admin note reply: value: type: ticket_part id: '156' part_type: note body: |-Thanks for reaching out, we're looking into it!
" user_reply: summary: User reply value: message_type: comment type: user intercom_user_id: 6762f2971bb69f9f2193bc49 body: Thanks again :) admin_note_reply: summary: Admin note reply value: message_type: note type: admin admin_id: 991267943 body: "Customer report
" author: type: admin id: '991267645' name: Ciaran176 Lee email: admin176@email.com attachments: [] redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1261bb69f9f2193bba7 email: joe@example.com external_id: '70' open: true state: open linked_objects: type: list total_count: 1 has_more: false data: - type: ticket id: '207' category: Tracker schema: "$ref": "#/components/schemas/conversation" '400': description: Bad request content: application/json: examples: Not a tracker ticket: value: type: error.list request_id: 4f2d9c1a-7b3e-4a6c-9d21-8e5f0c2b1a34 errors: - code: invalid_ticket_type message: Only tracker tickets support linking conversations Already linked to a tracker: value: type: error.list request_id: 5a3e0d2b-8c4f-4b7d-ae32-9f6a1d3c2b45 errors: - code: already_linked_to_tracker message: A conversation can only have one tracker ticket Linked conversation limit exceeded: value: type: error.list request_id: 6b4f1e3c-9d50-4c8e-bf43-0a7b2e4d3c56 errors: - code: linked_conversation_limit_exceeded message: Ticket has reached the maximum number of conversations that can be linked Missing conversation_id: value: type: error.list request_id: 7c5a2f4d-ae61-4d9f-c054-1b8c3f5e4d67 errors: - code: parameter_not_found message: conversation_id not specified schema: "$ref": "#/components/schemas/error" '404': description: Not found content: application/json: examples: Ticket not found: value: type: error.list request_id: 8d6b3a5e-bf72-4ea0-d165-2c9d4a6f5e78 errors: - code: ticket_not_found message: Ticket not found Conversation not found: value: type: error.list request_id: 9e7c4b6f-c083-4fb1-e276-3d0e5b7a6f89 errors: - code: conversation_not_found message: Conversation not found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: af8d5c70-d194-40c2-f387-4e1f6c8b7091 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: type: object required: - conversation_id properties: conversation_id: type: string description: The unique identifier (given by Intercom) for the conversation or customer ticket to link to the tracker ticket. example: '204' examples: successful: summary: Link a conversation to a tracker ticket value: conversation_id: '204' "/tickets/{ticket_id}/linked_conversations/{id}": delete: summary: Unlink a conversation from a ticket parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: ticket_id in: path description: The unique identifier for the tracker ticket which is given by Intercom. example: '64619700005694' required: true schema: type: string - name: id in: path description: The unique identifier (given by Intercom) for the linked conversation or customer ticket to unlink. example: '204' required: true schema: type: string tags: - Tickets operationId: unlinkConversationFromTicket description: | Unlink a conversation (or converted customer ticket) from a tracker ticket it is currently linked to. The ticket in the path must be a tracker ticket. This returns the conversation that was unlinked. Requires the `write_tickets` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: conversation id: '204' created_at: 1734537715 updated_at: 1734537752 source: type: conversation id: '403918350' delivered_as: admin_initiated subject: '' body: "Customer report
" author: type: admin id: '991267645' name: Ciaran176 Lee email: admin176@email.com attachments: [] redacted: false contacts: type: contact.list contacts: - type: contact id: 6762f1261bb69f9f2193bba7 email: joe@example.com external_id: '70' open: true state: open linked_objects: type: list total_count: 0 has_more: false data: [] schema: "$ref": "#/components/schemas/conversation" '400': description: Bad request content: application/json: examples: Not a tracker ticket: value: type: error.list request_id: b09e6d81-e2a5-41d3-9498-5f2a7d9c8102 errors: - code: invalid_ticket_type message: Only tracker tickets support unlinking conversations schema: "$ref": "#/components/schemas/error" '404': description: Not found content: application/json: examples: Ticket not found: value: type: error.list request_id: c1af7e92-f3b6-42e4-8509-6a3b8e0d9213 errors: - code: ticket_not_found message: Ticket not found Conversation not linked: value: type: error.list request_id: d2b08fa3-04c7-43f5-9610-7b4c9f1e0324 errors: - code: conversation_not_found message: Conversation is not linked to this ticket schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: e3c19fb4-150d-44a6-a721-8c5daf2f1435 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" "/tickets": post: summary: Create a ticket parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Tickets description: You can create a new ticket. operationId: createTicket responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: ticket id: '626' ticket_id: '33' ticket_attributes: _default_title_: example _default_description_: there is a problem ticket_state: type: ticket_state id: '8481' category: submitted internal_label: Submitted external_label: Submitted ticket_type: type: ticket_type id: '88' name: my-ticket-type-23 description: my ticket type description is awesome. icon: "\U0001F981" workspace_id: this_is_an_id688_that_should_be_at_least_ archived: false created_at: 1734537943 updated_at: 1734537943 is_internal: false ticket_type_attributes: type: list data: - type: ticket_type_attribute id: '196' workspace_id: this_is_an_id688_that_should_be_at_least_ name: _default_title_ description: ola data_type: string input_options: order: 0 required_to_create: true required_to_create_for_contacts: false visible_on_create: true visible_to_contacts: false default: false ticket_type_id: 88 archived: false created_at: 1734537943 updated_at: 1734537943 - type: ticket_type_attribute id: '197' workspace_id: this_is_an_id688_that_should_be_at_least_ name: _default_description_ description: ola data_type: string input_options: order: 0 required_to_create: true required_to_create_for_contacts: false visible_on_create: true visible_to_contacts: false default: false ticket_type_id: 88 archived: false created_at: 1734537943 updated_at: 1734537943 category: Back-office contacts: type: contact.list contacts: - type: contact id: 6762f2d81bb69f9f2193bc54 email: joe@example.com external_id: '70' admin_assignee_id: 0 team_assignee_id: 0 created_at: 1734537944 updated_at: 1734537946 ticket_parts: type: ticket_part.list ticket_parts: - type: ticket_part id: '175' part_type: ticket_state_updated_by_admin ticket_state: submitted previous_ticket_state: submitted created_at: 1734537945 updated_at: 1734537945 author: id: '991267999' type: bot name: Fin email: operator+this_is_an_id688_that_should_be_at_least_@intercom.io attachments: [] redacted: false total_count: 1 open: true linked_objects: type: list data: [] total_count: 0 has_more: false category: Back-office is_shared: false channel: messenger schema: "$ref": "#/components/schemas/ticket" '400': description: Bad request content: application/json: examples: Missing ticket_type_id: value: type: error.list request_id: 5e2b344b-1521-412f-a1f9-c0ffeea166dd errors: - code: parameter_not_found message: "ticket_type_id is a required parameter" Missing contact: value: type: error.list request_id: 5e2b533a-152e-4132-a1fe-c0ffeea2fff6 errors: - code: parameter_invalid message: "You must pass in a single contact in an array" Contact not found: value: type: error.list request_id: 5e2b7229-153b-4135-a203-c0ffeea4990f errors: - code: parameter_invalid message: "User Not Found" Invalid ticket type: value: type: error.list request_id: 5e2b9118-1548-4138-a208-c0ffeea63228 errors: - code: parameter_invalid message: "Invalid ticket type provided" Missing required attributes: value: type: error.list request_id: 5e2bb007-1555-413b-a20d-c0ffeea7cb41 errors: - code: parameter_invalid message: "Missing required attributes: _default_title_" schema: "$ref": "#/components/schemas/error" '404': description: Conversation to link not found content: application/json: examples: Conversation to link not found: value: type: error.list request_id: 5e2bcef6-1562-413e-a212-c0ffeea9645a errors: - code: conversation_to_link_not_found message: "Couldn't find Conversation with ID=1234" schema: "$ref": "#/components/schemas/error" '500': description: Ticket could not be created content: application/json: examples: Ticket creation failed: value: type: error.list request_id: 5e2bede5-156f-4141-a217-c0ffeeaafd73 errors: - code: ticket_creation message: "Error creating ticket" schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: c7bf358f-135e-48d7-8286-a4988a8a1d9b errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: allOf: - "$ref": "#/components/schemas/create_ticket_request" properties: skip_notifications: type: boolean description: Option to disable notifications when a Ticket is created. example: true examples: successful_response: summary: Successful response value: ticket_type_id: '88' contacts: - id: 6762f2d81bb69f9f2193bc54 ticket_attributes: _default_title_: example _default_description_: there is a problem "/tickets/enqueue": post: summary: Enqueue create ticket description: Enqueues ticket creation for asynchronous processing, returning if the job was enqueued successfully to be processed. We attempt to perform a best-effort validation on inputs before tasks are enqueued. If the given parameters are incorrect, we won't enqueue the job. operationId: enqueueCreateTicket tags: - Tickets parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" requestBody: content: application/json: schema: allOf: - "$ref": "#/components/schemas/create_ticket_request" properties: skip_notifications: type: boolean description: Option to disable notifications when a Ticket is created. example: true examples: successful_response: summary: Successful response value: ticket_type_id: '88' contacts: - id: 6762f2d81bb69f9f2193bc54 ticket_attributes: _default_title_: example _default_description_: there is a problem responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: job id: "20" status: pending url: https://api.intercom.io/jobs/status/20 resource_type: ticket resource_id: null resource_url: null schema: "$ref": "#/components/schemas/jobs" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: c7bf358f-135e-48d7-8286-a4988a8a1d9b errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '400': description: Bad Request content: application/json: examples: Bad Request: value: type: error.list request_id: c7bf358f-135e-48d7-8286-a4988a8a1456 errors: - code: parameter_invalid message: "attributes: Missing required attributes: _default_title_" schema: "$ref": "#/components/schemas/error" '500': description: Job could not be enqueued content: application/json: examples: Enqueue failed: value: type: error.list request_id: 5e2c0cd4-157c-4144-a21c-c0ffeeac968c errors: - code: ticket_creation message: "Failed to enqueue ticket creation job" schema: "$ref": "#/components/schemas/error" "/tickets/{ticket_id}": put: summary: Update a ticket parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: ticket_id in: path required: true description: | The unique identifier for the ticket which is given by Intercom. {% admonition type="info" name="Not the Inbox ticket ID" %} This is the internal `id` field from the API response, not the `ticket_id` displayed in the Intercom Inbox (e.g., #12345). Use the `id` value from the ticket object returned by the API. {% /admonition %} schema: type: string tags: - Tickets operationId: updateTicket description: You can update a ticket. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: ticket id: '627' ticket_id: '34' ticket_attributes: _default_title_: example _default_description_: there is a problem ticket_state: type: ticket_state id: '8498' category: in_progress internal_label: In progress external_label: In progress ticket_type: type: ticket_type id: '90' name: my-ticket-type-25 description: my ticket type description is awesome. icon: "\U0001F981" workspace_id: this_is_an_id692_that_should_be_at_least_ archived: false created_at: 1734537948 updated_at: 1734537948 is_internal: false ticket_type_attributes: type: list data: - type: ticket_type_attribute id: '200' workspace_id: this_is_an_id692_that_should_be_at_least_ name: _default_title_ description: ola data_type: string input_options: order: 0 required_to_create: true required_to_create_for_contacts: false visible_on_create: true visible_to_contacts: false default: false ticket_type_id: 90 archived: false created_at: 1734537949 updated_at: 1734537949 - type: ticket_type_attribute id: '201' workspace_id: this_is_an_id692_that_should_be_at_least_ name: _default_description_ description: ola data_type: string input_options: order: 0 required_to_create: true required_to_create_for_contacts: false visible_on_create: true visible_to_contacts: false default: false ticket_type_id: 90 archived: false created_at: 1734537949 updated_at: 1734537949 category: Back-office contacts: type: contact.list contacts: - type: contact id: 6762f2dd1bb69f9f2193bc55 email: joe@example.com external_id: 8df1fa21-b41d-4621-9229-d6f7a3a590ce admin_assignee_id: 991268013 team_assignee_id: 0 created_at: 1734537950 updated_at: 1734537955 ticket_parts: type: ticket_part.list ticket_parts: - type: ticket_part id: '176' part_type: ticket_state_updated_by_admin ticket_state: submitted previous_ticket_state: submitted created_at: 1734537951 updated_at: 1734537951 author: id: '991268011' type: admin name: Ciaran477 Lee email: admin477@email.com attachments: [] redacted: false - type: ticket_part id: '177' part_type: ticket_attribute_updated_by_admin created_at: 1734537953 updated_at: 1734537953 author: id: '991268012' type: bot name: Fin email: operator+this_is_an_id692_that_should_be_at_least_@intercom.io attachments: [] redacted: false updated_attribute_data: attribute: type: "attribute" id: "10" label: "Photo" value: type: "value" id: [2] label: ["photo.png"] - type: ticket_part id: '178' part_type: ticket_attribute_updated_by_admin created_at: 1734537953 updated_at: 1734537953 author: id: '991268012' type: bot name: Fin email: operator+this_is_an_id692_that_should_be_at_least_@intercom.io attachments: [] redacted: false updated_attribute_data: attribute: type: "attribute" id: "7" label: "Progress" value: type: "value" id: "Fast" label: "Fast" - type: ticket_part id: '179' part_type: ticket_state_updated_by_admin ticket_state: in_progress previous_ticket_state: submitted created_at: 1734537954 updated_at: 1734537954 author: id: '991268012' type: bot name: Fin email: operator+this_is_an_id692_that_should_be_at_least_@intercom.io attachments: [] redacted: false app_package_code: test-integration - type: ticket_part id: '180' part_type: assignment created_at: 1734537954 updated_at: 1734537954 assigned_to: type: admin id: '991268013' author: id: '991268011' type: admin name: Ciaran477 Lee email: admin477@email.com attachments: [] redacted: false - type: ticket_part id: '181' part_type: snoozed created_at: 1734537955 updated_at: 1734537955 author: id: '991268012' type: bot name: Fin email: operator+this_is_an_id692_that_should_be_at_least_@intercom.io attachments: [] redacted: false total_count: 6 open: true snoozed_until: 1734627600 linked_objects: type: list data: [] total_count: 0 has_more: false category: Back-office is_shared: false schema: "$ref": "#/components/schemas/ticket" '404': description: Ticket, admin or assignee not found content: application/json: examples: Admin not found: value: type: error.list request_id: f9757add-b48a-4519-a6e0-04b2ef9c8c6c errors: - code: admin_not_found message: Admin not found Assignee not found: value: type: error.list request_id: 39cf6495-768c-450c-a2c4-c9c3c4ea2e01 errors: - code: assignee_not_found message: Assignee not found Ticket not found: value: type: error.list request_id: 5e2c2bc3-1589-4147-a221-c0ffeeae2fa5 errors: - code: not_found message: "Resource Not Found" '400': description: Bad request content: application/json: examples: Ticket state id is not valid or is not associated with the ticket type.: value: type: error.list request_id: 28b71de1-b451-433a-a08c-845f2b1736b6 errors: - code: ticket_state_id_invalid message: Ticket state id is not valid or is not associated with the ticket type Ticket cannot be unshared: value: type: error.list request_id: 5e2c4ab2-1596-414a-a226-c0ffeeafc8be errors: - code: parameter_invalid message: "Tickets cannot be unshared" Ticket cannot be shared: value: type: error.list request_id: 5e2c69a1-15a3-414d-a22b-c0ffeeb161d7 errors: - code: parameter_invalid message: "Ticket cannot be shared. Tracker tickets cannot be shared and Customer tickets are shared by default. Back-Office tickets can only be shared if they are linked to a conversation and that conversation does not have any other shared linked tickets" '422': description: Conversation already assigned to the assignee content: application/json: examples: Already assigned: value: type: error.list request_id: 5e2c8890-15b0-4150-a230-c0ffeeb2faf0 errors: - code: conversation_already_assigned_to_assignee message: "The conversation is already assigned to the specified assignee" schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 17db783e-1e43-41c9-b4db-0c05da78a909 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: allOf: - "$ref": "#/components/schemas/update_ticket_request" properties: skip_notifications: type: boolean description: Option to disable notifications when a Ticket is updated. example: true examples: successful_response: summary: Successful response value: ticket_attributes: _default_title_: example _default_description_: there is a problem admin_id: 991268011 assignee_id: '991268013' open: true snoozed_until: 1673609604 ticket_state_id: '8498' admin_not_found: summary: Admin not found value: ticket_attributes: _default_title_: example _default_description_: there is a problem admin_id: 991268011 assignee_id: '991268013' ticket_state_id: '8506' assignee_not_found: summary: Assignee not found value: ticket_attributes: _default_title_: example _default_description_: there is a problem admin_id: 991268011 assignee_id: '991268013' ticket_state_id: '8514' ticket_state_id_is_not_valid_or_is_not_associated_with_the_ticket_type: summary: Ticket state id is not valid or is not associated with the ticket type. value: ticket_state_id: 0 get: summary: Retrieve a ticket parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: ticket_id in: path required: true description: | The unique identifier for the ticket which is given by Intercom. {% admonition type="info" name="Not the Inbox ticket ID" %} This is the internal `id` field from the API response, not the `ticket_id` displayed in the Intercom Inbox (e.g., #12345). Use the `id` value from the ticket object returned by the API. {% /admonition %} schema: type: string tags: - Tickets operationId: getTicket description: You can fetch the details of a single ticket. responses: '200': description: Ticket found content: application/json: examples: Ticket found: value: type: ticket id: '631' ticket_id: '38' ticket_attributes: _default_title_: attribute_value _default_description_: ticket_state: type: ticket_state id: '8537' category: submitted internal_label: Submitted external_label: Submitted ticket_type: type: ticket_type id: '95' name: my-ticket-type-30 description: my ticket type description is awesome. icon: "\U0001F981" workspace_id: this_is_an_id702_that_should_be_at_least_ archived: false created_at: 1734537973 updated_at: 1734537973 is_internal: false ticket_type_attributes: type: list data: - type: ticket_type_attribute id: '210' workspace_id: this_is_an_id702_that_should_be_at_least_ name: _default_title_ description: ola data_type: string input_options: order: 0 required_to_create: true required_to_create_for_contacts: false visible_on_create: true visible_to_contacts: false default: false ticket_type_id: 95 archived: false created_at: 1734537973 updated_at: 1734537973 - type: ticket_type_attribute id: '211' workspace_id: this_is_an_id702_that_should_be_at_least_ name: _default_description_ description: ola data_type: string input_options: order: 0 required_to_create: true required_to_create_for_contacts: false visible_on_create: true visible_to_contacts: false default: false ticket_type_id: 95 archived: false created_at: 1734537973 updated_at: 1734537973 category: Back-office contacts: type: contact.list contacts: - type: contact id: 6762f2f61bb69f9f2193bc59 email: joe@example.com external_id: b16afa36-2637-4880-adee-a46d145bc27f admin_assignee_id: 0 team_assignee_id: 0 created_at: 1734537974 updated_at: 1734537976 ticket_parts: type: ticket_part.list ticket_parts: - type: ticket_part id: '185' part_type: ticket_state_updated_by_admin ticket_state: submitted previous_ticket_state: submitted created_at: 1734537975 updated_at: 1734537975 author: id: '991268047' type: admin name: Ciaran509 Lee email: admin509@email.com attachments: [] redacted: false app_package_code: test-integration total_count: 1 open: true linked_objects: type: list data: [] total_count: 0 has_more: false category: Back-office is_shared: false channel: messenger schema: "$ref": "#/components/schemas/ticket" '404': description: Ticket not found content: application/json: examples: Ticket not found: value: type: error.list request_id: 5e2ca77f-15bd-4153-a235-c0ffeeb49409 errors: - code: not_found message: "Resource Not Found" schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: d719ad4f-5ae2-492f-88d6-98ba0a9ab6cc errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" delete: summary: Delete a ticket parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: ticket_id in: path required: true description: | The unique identifier for the ticket which is given by Intercom. {% admonition type="info" name="Not the Inbox ticket ID" %} This is the internal `id` field from the API response, not the `ticket_id` displayed in the Intercom Inbox (e.g., #12345). Use the `id` value from the ticket object returned by the API. {% /admonition %} schema: type: string tags: - Tickets operationId: deleteTicket description: | {% admonition type="warning" name="Irreversible operation" %} Deleting a ticket is permanent and cannot be reversed. {% /admonition %} Deleting a ticket permanently removes it from the inbox. All sensitive data is deleted, including admin and user replies, ticket attributes, uploads, and related content. The ticket will still appear in reporting, though some data may be incomplete due to the deletion. responses: '200': description: successful content: application/json: examples: successful: value: id: '632' object: ticket deleted: true schema: "$ref": "#/components/schemas/ticket_deleted" '404': description: Ticket not found content: application/json: examples: Ticket not found: value: type: error.list request_id: 34a070f1-122e-42dc-a94e-9b86768df26c errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" '422': description: Back-office ticket linked to a conversation content: application/json: examples: Linked to a conversation: value: type: error.list request_id: 5e2cc66e-15ca-4156-a23a-c0ffeeb62d22 errors: - code: back_office_ticket_delete_exception message: "Cannot delete back-office ticket with a linked conversation, delete conversation instead" schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 50348131-55cd-4ca1-a65f-de093b232adb errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '403': description: API plan restricted content: application/json: examples: API plan restricted: value: type: error.list request_id: 7a80b950-b392-499f-85db-ea7c6c424d37 errors: - code: api_plan_restricted message: Active subscription needed. schema: "$ref": "#/components/schemas/error" "/tickets/{ticket_id}/change_type": post: summary: Change ticket type parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: ticket_id in: path required: true description: The unique identifier for the ticket which is given by Intercom. schema: type: string tags: - Tickets operationId: changeTicketType description: You can change the type of a ticket. The new ticket type must be in the same category as the current type. Attributes matching by name and type are automatically transferred from the old type; values provided in ticket_attributes override transferred values. responses: '200': description: Successful response content: application/json: examples: Successful response: value: type: ticket id: '494' ticket_id: '53' ticket_attributes: _default_title_: example _default_description_: having a problem ticket_state: type: ticket_state id: '8481' category: submitted internal_label: Submitted external_label: Submitted ticket_type: type: ticket_type id: '1234' name: my-new-ticket-type description: my ticket type description is awesome. icon: "\U0001F981" workspace_id: this_is_an_id664_that_should_be_at_least_ archived: false created_at: 1719493065 updated_at: 1719493065 is_internal: false ticket_type_attributes: type: list data: [] category: Back-office contacts: type: contact.list contacts: - type: contact id: 667d61c88a68186f43bafe93 email: joe@example.com external_id: '71' admin_assignee_id: 0 team_assignee_id: 0 created_at: 1719493065 updated_at: 1719493068 ticket_parts: type: ticket_part.list ticket_parts: - type: ticket_part id: '136' part_type: ticket_state_updated_by_admin ticket_state: submitted previous_ticket_state: submitted created_at: 1719493065 updated_at: 1719493065 author: id: '991267920' type: bot name: Operator email: operator+this_is_an_id664_that_should_be_at_least_@intercom.io attachments: [] redacted: false total_count: 1 open: true linked_objects: type: list data: [] total_count: 0 has_more: false category: Back-office is_shared: false schema: "$ref": "#/components/schemas/ticket" '400': description: Bad request content: application/json: examples: Missing ticket_type_id: value: type: error.list request_id: a35b00e4-97b2-4b5d-a6f9-e82c4d8f7e12 errors: - code: parameter_not_found message: ticket_type_id is a required parameter Missing ticket_state_id: value: type: error.list request_id: b46c11f5-08c3-5c6e-b7a3-f93d5e8f9f23 errors: - code: parameter_not_found message: ticket_state_id is a required parameter Same ticket type: value: type: error.list request_id: f90a55j9-42g7-9g0i-f1e7-jd7h9i2j3j67 errors: - code: parameter_invalid message: Cannot change to the same ticket type Ticket state not in new ticket type: value: type: error.list request_id: g01b66k0-53h8-0h1j-g2f8-ke8i0j3k4k78 errors: - code: parameter_invalid message: Ticket custom state doesn't belong to the new ticket type Unknown ticket attribute: value: type: error.list request_id: h12c77l1-64i9-1i2k-h3g9-lf9j1k4l5l89 errors: - code: parameter_invalid message: 'Extra attributes provided that are not found on ticket type: Priority' schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: c57d22g6-19d4-6d7f-c8b4-ga4e6f9g0g34 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" '404': description: Ticket not found content: application/json: examples: Ticket not found: value: type: error.list request_id: e79f44i8-31f6-8f9h-e0d6-ic6g8h1i2i56 errors: - code: not_found message: Resource Not Found schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/change_ticket_type_request" examples: successful_response: summary: Successful response value: ticket_type_id: '1234' ticket_state_id: '5678' "/tickets/search": post: summary: Search tickets operationId: searchTickets parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Tickets description: | You can search for multiple tickets by the value of their attributes in order to fetch exactly which ones you want. To search for tickets, you send a `POST` request to `https://api.intercom.io/tickets/search`. This will accept a query object in the body which will define your filters. {% admonition type="warning" name="Optimizing search queries" %} Search queries can be complex, so optimizing them can help the performance of your search. Use the `AND` and `OR` operators to combine multiple filters to get the exact results you need and utilize pagination to limit the number of results returned. The default is `20` results per page and maximum is `150`. See the [pagination section](https://developers.intercom.com/docs/build-an-integration/learn-more/rest-apis/pagination/#example-search-conversations-request) for more details on how to use the `starting_after` param. {% /admonition %} ### Nesting & Limitations You can nest these filters in order to get even more granular insights that pinpoint exactly what you need. Example: (1 OR 2) AND (3 OR 4). There are some limitations to the amount of multiples there can be: - There's a limit of max 2 nested filters - There's a limit of max 15 filters for each AND or OR group ### Accepted Fields Most keys listed as part of the Ticket model are searchable, whether writeable or not. The value you search for has to match the accepted type, otherwise the query will fail (ie. as `created_at` accepts a date, the `value` cannot be a string such as `"foobar"`). Fields not in the table below, such as `source.body`, are rejected with a `400` error. | Field | Type | | :---------------------------------------- | :--------------------------------------------------------------------------------------- | | id | Integer | | created_at | Date (UNIX timestamp) | | updated_at | Date (UNIX timestamp) | | title | String | | description | String | | category | String | | ticket_type_id | Integer | | contact_ids | String | | admin_assignee_id | Integer | | team_assignee_id | Integer | | open | Boolean | | state | String | | snoozed_until | Date (UNIX timestamp) | | ticket_attribute.{id} | String or Boolean or Date (UNIX timestamp) or Float or Integer | {% admonition type="info" name="Searching by Category" %} When searching for tickets by the **`category`** field, specific terms must be used instead of the category names: * For **Customer** category tickets, use the term `request`. * For **Back-office** category tickets, use the term `task`. * For **Tracker** category tickets, use the term `tracker`. {% /admonition %} ### Sorting You can sort the results with a `sort` object, for example `{"field": "created_at", "order": "ascending"}`. `field` must be one of the fields in the table above, other than `ticket_attribute.{id}`, `title` and `description`. `order` is `ascending` or `descending`. Without `sort`, results are sorted by `updated_at`, newest first. ### Accepted Operators {% admonition type="info" name="Searching based on `created_at`" %} You may use the `<=` or `>=` operators to search by `created_at`. {% /admonition %} The table below shows the operators you can use to define how you want to search for the value. The operator should be put in as a string (`"="`). The operator has to be compatible with the field's type (eg. you cannot search with `>` for a given string value as it's only compatible for integer's and dates). | Operator | Valid Types | Description | | :------- | :----------------------------- | :----------------------------------------------------------- | | = | All | Equals | | != | All | Doesn't Equal | | IN | All | In Shortcut for `OR` queries Values most be in Array | | NIN | All | Not In Shortcut for `OR !` queries Values must be in Array | | > | Integer Date (UNIX Timestamp) | Greater (or equal) than | | < | Integer Date (UNIX Timestamp) | Lower (or equal) than | | ~ | String | Contains | | !~ | String | Doesn't Contain | | ^ | String | Starts With | | $ | String | Ends With | responses: '200': description: successful content: application/json: examples: successful: value: type: ticket.list pages: type: pages page: 1 per_page: 5 total_pages: 1 total_count: 1 tickets: - type: ticket id: '633' ticket_id: '40' ticket_attributes: _default_title_: attribute_value _default_description_: ticket_state: type: ticket_state id: '8577' category: submitted internal_label: Submitted external_label: Submitted ticket_type: type: ticket_type id: '100' name: my-ticket-type-35 description: my ticket type description is awesome. icon: "\U0001F981" workspace_id: this_is_an_id712_that_should_be_at_least_ archived: false created_at: 1734537989 updated_at: 1734537989 is_internal: false ticket_type_attributes: type: list data: - type: ticket_type_attribute id: '220' workspace_id: this_is_an_id712_that_should_be_at_least_ name: _default_title_ description: ola data_type: string input_options: order: 0 required_to_create: true required_to_create_for_contacts: false visible_on_create: true visible_to_contacts: false default: false ticket_type_id: 100 archived: false created_at: 1734537989 updated_at: 1734537989 - type: ticket_type_attribute id: '221' workspace_id: this_is_an_id712_that_should_be_at_least_ name: _default_description_ description: ola data_type: string input_options: order: 0 required_to_create: true required_to_create_for_contacts: false visible_on_create: true visible_to_contacts: false default: false ticket_type_id: 100 archived: false created_at: 1734537989 updated_at: 1734537989 category: Back-office contacts: type: contact.list contacts: - type: contact id: 6762f3061bb69f9f2193bc5b email: joe@example.com external_id: 9b913927-c084-4391-b1db-098341b5ffe3 admin_assignee_id: 0 team_assignee_id: 0 created_at: 1734537990 updated_at: 1734537992 ticket_parts: type: ticket_part.list ticket_parts: - type: ticket_part id: '188' part_type: ticket_state_updated_by_admin ticket_state: submitted previous_ticket_state: submitted created_at: 1734537991 updated_at: 1734537991 author: id: '991268079' type: admin name: Ciaran539 Lee email: admin539@email.com attachments: [] redacted: false total_count: 1 open: true linked_objects: type: list data: [] total_count: 0 has_more: false category: Back-office is_shared: false schema: "$ref": "#/components/schemas/ticket_list" '400': description: Bad request content: application/json: examples: Invalid query: value: type: error.list request_id: 5e2ce55d-15d7-4159-a23f-c0ffeeb7c63b errors: - code: invalid_query message: "Invalid query. Ensure 'field', 'operator', 'value' are present for simple queries. Ensure 'operator' and 'value' for composite queries. Ensure query is a JSON object." Invalid field: value: type: error.list request_id: 5e2d044c-15e4-415c-a244-c0ffeeb95f54 errors: - code: invalid_field message: "source.body is not a valid field" Invalid operator: value: type: error.list request_id: 5e2d233b-15f1-415f-a249-c0ffeebaf86d errors: - code: invalid_operator message: "== is not a valid operator" Invalid per_page: value: type: error.list request_id: 5e2d422a-15fe-4162-a24e-c0ffeebc9186 errors: - code: invalid_per_page message: "per_page must be an integer between 0 and 150" schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/search_request" examples: successful: summary: successful value: query: operator: AND value: - field: created_at operator: ">" value: '1306054154' pagination: per_page: 5 "/visitors": put: summary: Update a visitor parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Visitors operationId: updateVisitor description: | Sending a PUT request to `/visitors` will result in an update of an existing Visitor. **Option 1.** You can update a visitor by passing in the `user_id` of the visitor in the Request body. **Option 2.** You can update a visitor by passing in the `id` of the visitor in the Request body. Sending an `email` promotes the visitor to a lead. When that happens the response is a contact object with a `role` of `lead`, not a visitor object. Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: visitor id: 6762f30c1bb69f9f2193bc5e user_id: 3ecf64d0-9ed1-4e9f-88e1-da7d6e6782f3 anonymous: true email: '' phone: name: Gareth Bale pseudonym: Violet Suitcase avatar: type: avatar image_url: https://static.intercomassets.com/app/pseudonym_avatars_2019/violet-suitcase.png app_id: this_is_an_id716_that_should_be_at_least_ companies: type: company.list companies: [] location_data: {} last_request_at: created_at: 1734537996 remote_created_at: 1734537996 signed_up_at: 1734537996 updated_at: 1734537997 session_count: 0 social_profiles: type: social_profile.list social_profiles: [] owner_id: unsubscribed_from_emails: false marked_email_as_spam: false has_hard_bounced: false tags: type: tag.list tags: [] segments: type: segment.list segments: [] custom_attributes: {} referrer: utm_campaign: utm_content: utm_medium: utm_source: utm_term: do_not_track: schema: "$ref": "#/components/schemas/visitor" '400': description: Bad Request content: application/json: examples: No identifier supplied: value: type: error.list request_id: 2a71c4e6-85d0-4b93-9f18-6c0e3b7a52d4 errors: - code: '400' message: Visitor id or user_id must be supplied schema: "$ref": "#/components/schemas/error" '404': description: visitor Not Found content: application/json: examples: visitor Not Found: value: type: error.list request_id: 6a6d5522-54e2-437d-8fd0-1109686af965 errors: - code: not_found message: Visitor Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 3f474ec4-4e61-42ee-9acc-eac64982e393 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 8f25b071-3ca9-4d68-b4e0-5719c2a6f30e errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/update_visitor_request" examples: successful: summary: successful value: id: 6762f30c1bb69f9f2193bc5e name: Gareth Bale visitor_not_found: summary: visitor Not Found value: user_id: fail name: Christian Fail get: summary: Retrieve a visitor with User ID parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: user_id in: query description: The user_id of the Visitor you want to retrieve. required: true schema: type: string tags: - Visitors operationId: retrieveVisitorWithUserId description: | You can fetch the details of a single visitor. Requires the `read_single_user`, `read_users_companies` or `read_write_users` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: visitor id: 6762f3101bb69f9f2193bc64 user_id: 3ecf64d0-9ed1-4e9f-88e1-da7d6e6782f3 anonymous: true email: '' phone: name: pseudonym: avatar: type: avatar image_url: app_id: this_is_an_id722_that_should_be_at_least_ companies: type: company.list companies: [] location_data: {} last_request_at: created_at: 1734538000 remote_created_at: 1734538000 signed_up_at: 1734538000 updated_at: 1734538000 session_count: 0 social_profiles: type: social_profile.list social_profiles: [] owner_id: unsubscribed_from_emails: false marked_email_as_spam: false has_hard_bounced: false tags: type: tag.list tags: [] segments: type: segment.list segments: [] custom_attributes: {} referrer: utm_campaign: utm_content: utm_medium: utm_source: utm_term: do_not_track: schema: "$ref": "#/components/schemas/visitor" '404': description: Visitor not found content: application/json: examples: Visitor not found: value: type: error.list request_id: 3c1b017d-39fb-4d13-8cc9-540ad0d37106 errors: - code: not_found message: Visitor Not Found schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 1d7f49b3-10bc-4bf8-a28a-1ac95de3a6ff errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 7b09e4d2-61c8-4530-9a7f-284c60b5e1d3 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" "/visitors/convert": post: summary: Convert a visitor parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" tags: - Visitors operationId: convertVisitor description: | You can merge a Visitor to a Contact of role type `lead` or `user`. > 📘 What happens upon a visitor being converted? > > If the User exists, then the Visitor will be merged into it, the Visitor deleted and the User returned. If the User does not exist, the Visitor will be converted to a User, with the User identifiers replacing it's Visitor identifiers. Identify the visitor with `visitor.id` or `visitor.user_id`. The `user` object is required when `type` is `user`, and is not read when `type` is `lead`. Requires the `read_write_users` or `write_users_companies` OAuth scope. responses: '200': description: successful content: application/json: examples: successful: value: type: contact id: 6762f3141bb69f9f2193bc6b workspace_id: this_is_an_id728_that_should_be_at_least_ external_id: role: user email: foo@bar.com email_domain: bar.com email_verified: false phone: whatsapp_number: name: avatar: owner_id: social_profiles: type: list data: [] has_hard_bounced: false marked_email_as_spam: false unsubscribed_from_emails: false created_at: 1734538004 updated_at: 1734538005 signed_up_at: 1734538004 last_seen_at: last_replied_at: last_contacted_at: last_email_opened_at: last_email_clicked_at: language_override: browser: browser_version: browser_language: os: location: type: location country: region: city: country_code: continent_code: android_app_name: android_app_version: android_device: android_os_version: android_sdk_version: android_last_seen_at: ios_app_name: ios_app_version: ios_device: ios_os_version: ios_sdk_version: ios_last_seen_at: custom_attributes: {} tags: type: list data: [] url: "/contacts/6762f3141bb69f9f2193bc6b/tags" total_count: 0 has_more: false notes: type: list data: [] url: "/contacts/6762f3141bb69f9f2193bc6b/notes" total_count: 0 has_more: false companies: type: list data: [] url: "/contacts/6762f3141bb69f9f2193bc6b/companies" total_count: 0 has_more: false opted_out_subscription_types: type: list data: [] url: "/contacts/6762f3141bb69f9f2193bc6b/subscriptions" total_count: 0 has_more: false opted_in_subscription_types: type: list data: [] url: "/contacts/6762f3141bb69f9f2193bc6b/subscriptions" total_count: 0 has_more: false utm_campaign: utm_content: utm_medium: utm_source: utm_term: referrer: sms_consent: false unsubscribed_from_sms: false enabled_push_messaging: schema: "$ref": "#/components/schemas/contact" '400': description: Bad Request content: application/json: examples: No visitor identifier supplied: value: type: error.list request_id: 9e4b2c07-61da-4f85-93b0-c7a1e568d234 errors: - code: '400' message: Visitor id or user_id must be supplied Missing or unknown type: value: type: error.list request_id: 41c70e93-8b26-4d5a-a9f7-02e6b1c38045 errors: - code: type_mismatch message: The type attribute provided should be either 'user' or 'lead' schema: "$ref": "#/components/schemas/error" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: b3e71306-0600-41e4-9f44-83b52906d2b7 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: 6b58d204-3f91-4e7c-85a0-d2f71e634b09 errors: - code: token_unauthorized message: Not authorized to access resource schema: "$ref": "#/components/schemas/error" '404': description: Visitor not found content: application/json: examples: Visitor not found: value: type: error.list request_id: 0a7e53c1-9268-4bd4-83f6-1c5027e9a4b8 errors: - code: not_found message: Visitor Not Found schema: "$ref": "#/components/schemas/error" requestBody: content: application/json: schema: "$ref": "#/components/schemas/convert_visitor_request" examples: successful: summary: successful value: visitor: user_id: 3ecf64d0-9ed1-4e9f-88e1-da7d6e6782f3 user: email: foo@bar.com type: user "/brands": get: summary: List all brands tags: - Brands operationId: listBrands description: | Retrieves all brands for the workspace, including the default brand. The default brand id always matches the workspace id. Requires the `read_brands` OAuth scope. parameters: - name: Intercom-Version in: header schema: $ref: "#/components/schemas/intercom_version" responses: '200': description: Successful response content: application/json: schema: $ref: "#/components/schemas/brand_list" examples: Successful response: value: type: list data: - type: brand id: "tlkp1d91" name: "Default Brand" is_default: true created_at: 1673778600 updated_at: 1711031100 help_center_id: "11" default_address_settings_id: "13" - type: brand id: "3" name: "Premium Brand" is_default: false created_at: 1686387300 updated_at: 1709229600 help_center_id: "10" default_address_settings_id: "15" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: a3e5b8e2-1234-5678-9abc-def012345678 errors: - code: token_unauthorized message: Not authorized to access resource schema: $ref: "#/components/schemas/error" "/brands/{id}": get: summary: Retrieve a brand tags: - Brands operationId: retrieveBrand description: | Fetches a specific brand by its unique identifier Requires the `read_brands` OAuth scope. parameters: - name: Intercom-Version in: header schema: $ref: "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier of the brand schema: type: string responses: '200': description: Successful response content: application/json: schema: $ref: "#/components/schemas/brand" examples: Successful response: value: type: brand id: "15" name: "Premium Brand" is_default: false created_at: 1686387300 updated_at: 1709229600 help_center_id: "20" default_address_settings_id: "15" '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: a3e5b8e2-1234-5678-9abc-def012345678 errors: - code: token_unauthorized message: Not authorized to access resource schema: $ref: "#/components/schemas/error" '404': description: Brand not found content: application/json: schema: $ref: "#/components/schemas/error" examples: Brand not found: value: type: error.list request_id: "req_12345" errors: - code: brand_not_found message: Brand not found "/emails": get: summary: List all email settings tags: - Emails operationId: listEmails description: | Lists all sender email address settings for the workspace Requires the `read_emails` OAuth scope. parameters: - name: Intercom-Version in: header schema: $ref: "#/components/schemas/intercom_version" responses: '200': description: Successful response content: application/json: schema: $ref: "#/components/schemas/email_list" examples: Successful response: value: type: list data: - type: email_setting id: "1" email: "support@company.com" verified: true domain: "company.com" brand_id: "9" forwarding_enabled: true forwarded_email_last_received_at: 1710498600 created_at: 1692530400 updated_at: 1710498600 - type: email_setting id: "2" email: "hello@company.com" verified: true domain: "company.com" brand_id: "10" forwarding_enabled: false forwarded_email_last_received_at: null created_at: 1683729000 updated_at: 1701424500 '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: a3e5b8e2-1234-5678-9abc-def012345678 errors: - code: token_unauthorized message: Not authorized to access resource schema: $ref: "#/components/schemas/error" "/emails/{id}": get: summary: Retrieve an email setting tags: - Emails operationId: retrieveEmail description: | Fetches a specific email setting by its unique identifier Requires the `read_emails` OAuth scope. parameters: - name: Intercom-Version in: header schema: $ref: "#/components/schemas/intercom_version" - name: id in: path required: true description: The unique identifier of the email setting schema: type: string responses: '200': description: Successful response content: application/json: schema: $ref: "#/components/schemas/email_setting" examples: Successful response: value: type: email_setting id: "10" email: "support@company.com" verified: true domain: "company.com" brand_id: "15" forwarding_enabled: true forwarded_email_last_received_at: 1710498600 created_at: 1692530400 updated_at: 1710498600 '401': description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890 errors: - code: unauthorized message: Access Token Invalid Token lacks required scope: value: type: error.list request_id: a3e5b8e2-1234-5678-9abc-def012345678 errors: - code: token_unauthorized message: Not authorized to access resource schema: $ref: "#/components/schemas/error" '404': description: Email setting not found content: application/json: schema: $ref: "#/components/schemas/error" examples: Email setting not found: value: type: error.list request_id: "req_12345" errors: - code: not_found message: Email setting not found "/fin_voice/register": post: summary: Register a Fin Voice call description: | Register a Fin Voice call with Intercom. This endpoint creates an external reference that links an external call identifier to an Intercom call and conversation. The call can be from different sources: - AWS Connect (default) - Five9 - Zoom Phone - NICE CXone - Dialpad - Generic Requires the `read_conversations` OAuth scope. operationId: registerFinVoiceCall tags: - Calls parameters: - name: Intercom-Version in: header schema: $ref: "#/components/schemas/intercom_version" requestBody: content: application/json: schema: $ref: "#/components/schemas/register_fin_voice_call_request" responses: '200': description: successful content: application/json: examples: registered: value: id: 12345 app_id: 12345 user_phone_number: "+1234567890" status: registered intercom_call_id: null external_call_id: call-123-abc vendor_internal_id: null intercom_conversation_id: null call_transcript: - {} call_summary: "" intent: [] fin_call_duration: null data: {} language: null schema: $ref: "#/components/schemas/ai_call_response" '400': description: bad request - missing phone_number or call_id content: application/json: schema: $ref: "#/components/schemas/error" '409': description: conflict - duplicate call registration content: application/json: schema: $ref: "#/components/schemas/error" default: description: Unexpected error content: application/json: schema: $ref: "#/components/schemas/error" "/fin_voice/collect/{id}": get: summary: Collect Fin Voice call by ID description: | Retrieve information about a Fin Voice call using the external reference ID. Requires the `read_conversations` OAuth scope. operationId: collectFinVoiceCallById tags: - Calls parameters: - name: Intercom-Version in: header schema: $ref: "#/components/schemas/intercom_version" - name: id in: path required: true description: The external reference ID schema: type: integer responses: '200': description: successful content: application/json: schema: $ref: "#/components/schemas/ai_call_response" '404': description: not found - external reference not found or not matched content: application/json: schema: $ref: "#/components/schemas/error" default: description: Unexpected error content: application/json: schema: $ref: "#/components/schemas/error" "/fin_voice/external_id/{external_id}": get: summary: Collect Fin Voice call by external ID description: | Retrieve information about a Fin Voice call using the external call identifier. Requires the `read_conversations` OAuth scope. operationId: collectFinVoiceCallByExternalId tags: - Calls parameters: - name: Intercom-Version in: header schema: $ref: "#/components/schemas/intercom_version" - name: external_id in: path required: true description: The external call identifier from the call provider schema: type: string responses: '200': description: successful content: application/json: schema: $ref: "#/components/schemas/ai_call_response" '404': description: not found - external reference not found or not matched content: application/json: schema: $ref: "#/components/schemas/error" default: description: Unexpected error content: application/json: schema: $ref: "#/components/schemas/error" "/fin_voice/phone_number/{phone_number}": get: summary: Collect Fin Voice call by phone number description: | Retrieve information about a Fin Voice call using the phone number. Returns the most recent matched call for the given phone number, ordered by creation date. Requires the `read_conversations` OAuth scope. operationId: collectFinVoiceCallByPhoneNumber tags: - Calls parameters: - name: Intercom-Version in: header schema: $ref: "#/components/schemas/intercom_version" - name: phone_number in: path required: true description: Phone number in E.164 format schema: type: string responses: '200': description: successful content: application/json: schema: $ref: "#/components/schemas/ai_call_response" '401': description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/error" '404': description: not found - no call found for phone number or not matched content: application/json: schema: $ref: "#/components/schemas/error" default: description: Unexpected error content: application/json: schema: $ref: "#/components/schemas/error" "/fin_voice/conversation/{conversation_id}": get: summary: Collect Fin Voice calls by conversation ID description: | Retrieve information about Fin Voice calls associated with a conversation. Returns all matched calls for the given conversation ID. A conversation may have multiple associated calls. Requires the `read_conversations` OAuth scope. operationId: collectFinVoiceCallsByConversationId tags: - Calls parameters: - name: Intercom-Version in: header schema: $ref: "#/components/schemas/intercom_version" - name: conversation_id in: path required: true description: The Intercom conversation identifier schema: type: string responses: '200': description: successful content: application/json: schema: type: array items: $ref: "#/components/schemas/ai_call_response" '401': description: Unauthorized content: application/json: schema: $ref: "#/components/schemas/error" default: description: Unexpected error content: application/json: schema: $ref: "#/components/schemas/error" "/export/workflows/{id}": get: summary: Export a workflow parameters: - name: Intercom-Version in: header schema: "$ref": "#/components/schemas/intercom_version" - name: id in: path description: 'The ruleset ID of the workflow. This is the number at the end of the workflow''s URL in Intercom, `https://app.intercom.com/a/apps/Body of this version
body_markdown: type: string nullable: true description: The Markdown body of the article at this version. example: | Body of this version author_id: type: string description: The id of the teammate listed as the article's author at this version. example: '991267502' created_by_id: type: string nullable: true description: The id of the teammate who created this version. example: '5017691' created_via: type: string description: How this version was created (for example `web`, `api`). example: web from_version_id: type: string nullable: true description: The id of the version this version was created from, or `null` if this is the first version. example: '300' state: type: string description: '`published` if this is the version that is currently live; `draft` for every other version, including earlier versions that are no longer live and staged changes that have not been published.' enum: - published - draft example: published created_at: type: integer format: date-time description: The time the version was created, as a UTC Unix timestamp. example: 1734537292 updated_at: type: integer format: date-time description: The time the version was last updated, as a UTC Unix timestamp. example: 1734537292 article_version_list: title: Article Versions type: object description: A paginated list of versions of an article. properties: type: type: string description: The type of the object - `list`. enum: - list example: list pages: "$ref": "#/components/schemas/pages_link" total_count: type: integer description: A count of the total number of versions. example: 2 data: type: array description: An array of Article version summary objects. items: "$ref": "#/components/schemas/article_version_summary" article_version_summary: title: Article Version Summary type: object x-tags: - Articles description: A metadata summary of an article version, as returned by the version-history list endpoint. Omits the version's body content - fetch a single version to retrieve its `body` and `body_markdown`. properties: type: type: string description: String representing the object's type. Always has the value `article_version`. enum: - article_version example: article_version id: type: string description: The unique identifier for the version. example: '301' article_id: type: string description: The unique identifier of the article this version belongs to. example: '123' title: type: string description: The title of the article at this version. example: This is the article title description: type: string nullable: true description: The description of the article at this version. example: '' author_id: type: string description: The id of the teammate listed as the article's author at this version. example: '991267502' created_by_id: type: string nullable: true description: The id of the teammate who created this version. example: '5017691' created_via: type: string description: How this version was created (for example `web`, `api`). example: web from_version_id: type: string nullable: true description: The id of the version this version was created from, or `null` if this is the first version. example: '300' state: type: string description: '`published` if this is the version that is currently live; `draft` for every other version, including earlier versions that are no longer live and staged changes that have not been published.' enum: - published - draft example: published created_at: type: integer format: date-time description: The time the version was created, as a UTC Unix timestamp. example: 1734537292 assign_conversation_request: title: Assign Conversation Request type: object description: Payload of the request to assign a conversation properties: message_type: type: string enum: - assignment example: assignment type: type: string enum: - admin - team example: admin admin_id: type: string description: The id of the admin who is performing the action. example: '12345' assignee_id: type: string description: The `id` of the `admin` or `team` which will be assigned the conversation. A conversation can be assigned both an admin and a team.\nSet `0` if you want this assign to no admin or team (ie. Unassigned). example: '4324241' body: type: string description: Optionally you can send a response in the conversation when it is assigned. example: Let me pass you over to one of my colleagues. skip_reopen: type: boolean default: false description: When true, assigning a closed conversation leaves it closed instead of reopening it. No reopen event is recorded, so the conversation keeps its original close timestamp and the assignment does not count as a new closure in reporting. example: true skip_notifications: type: boolean description: Option to disable notifications when assigning a conversation. Available from API version 2.15. example: true required: - message_type - type - admin_id - assignee_id attach_contact_to_conversation_request: title: Attach Contact To Conversation Request type: object description: |- Payload of the request to add a contact to a conversation. Say who is adding the contact in one of two ways: send `admin_id` to act as an admin, or send one of `intercom_user_id`, `user_id` or `email` to act as a contact. Sending both, or neither, returns a `422` error. Use `customer` to identify the contact to add. properties: admin_id: type: string description: The `id` of the admin who is adding the new participant. Send this to act as an admin. example: '12345' intercom_user_id: type: string description: The identifier, as given by Intercom, of the contact who is adding the new participant. Send this, `user_id` or `email` to act as a contact. example: 6329bd9ffe4e2e91dac76188 user_id: type: string description: The `external_id` you have defined for the contact who is adding the new participant. example: 2e91dac761886329bd9ffe4e email: type: string description: The email of the contact who is adding the new participant. example: winstonsmith@truth.org customer: "$ref": "#/components/schemas/customer_request" description: The contact to add as a participant. Identify them with exactly one of `intercom_user_id`, `user_id` or `email`. required: - customer conversation_participants_response: title: Conversation Participants Response type: object description: The participants of the conversation, returned after attaching or detaching a contact properties: customers: type: array description: The conversation participants after the change items: type: object properties: type: type: string description: The role of the participant. Can be "user" or "lead" example: 'user' id: type: string description: The unique identifier for the participant example: '6762f1a61bb69f9f2193bbd8' required: - type - id example: - type: user id: '6762f1a61bb69f9f2193bbd8' required: - customers brand: type: object title: Brand description: Represents a branding configuration for the workspace x-tags: - Brands properties: type: type: string description: The type of object example: brand id: type: string description: Unique brand identifier. For default brand, matches the workspace ID example: "10" name: type: string description: Display name of the brand example: "Default Brand" is_default: type: boolean description: Whether this is the workspace's default brand example: true created_at: type: integer format: date-time description: Unix timestamp of brand creation example: 1673778600 updated_at: type: integer format: date-time description: Unix timestamp of last modification example: 1711031100 help_center_id: type: string description: Associated help center identifier example: "10" default_address_settings_id: type: string description: Default email settings ID for this brand example: "15" brand_list: type: object title: Brand List description: A list of brands x-tags: - Brands properties: type: type: string description: The type of object example: list data: type: array items: $ref: "#/components/schemas/brand" team_metric: type: object description: Per-admin activity metrics within a team. properties: type: type: string example: "team_metric" admin_id: type: string description: The unique identifier for the admin. example: "123" open: type: integer description: The number of open conversations assigned to the admin. example: 5 idle: type: integer description: The number of idle conversations assigned to the admin. A conversation is idle when it has been open and waiting for an admin reply longer than the idle_threshold. example: 2 snoozed: type: integer description: The number of snoozed conversations assigned to the admin. example: 1 team_metric_list: type: object description: A list of team metrics. properties: type: type: string example: "team_metric.list" data: type: array items: $ref: "#/components/schemas/team_metric" auth_token: title: Auth Token type: object x-tags: - Auth Tokens description: | Metadata for a stored third-party credential that data connectors use to authenticate outbound requests. Only metadata is returned — the credential value itself, and its refresh and OAuth configuration, are never exposed. properties: type: type: string description: The type of object - `auth_token`. enum: - auth_token example: auth_token id: type: string description: The unique identifier for the auth token. example: '12345' name: type: string description: The name given to the credential when it was created. example: Fulfilment API key nullable: true description: type: string description: An optional description of what the credential is used for. example: Used by the order status connector nullable: true token_type: type: string description: How the credential is presented to the external API, for example as a header value or an HMAC signature. example: text nullable: true request_header_key: type: string description: The request header the credential is sent in. example: Authorization nullable: true token_prefix: type: string description: The prefix placed before the credential value in the header, for example `Bearer`. example: Bearer nullable: true domain: type: string description: The domain the credential is scoped to, if one was set. example: api.fulfilment.example.com nullable: true created_at: type: integer description: The time the credential was created as a Unix timestamp. example: 1763199000 nullable: true updated_at: type: integer description: The time the credential was last updated as a Unix timestamp. example: 1768918935 nullable: true create_auth_token_request: title: Create Auth Token Request type: object x-tags: - Auth Tokens description: | The fields accepted when storing a new third-party credential. Set `token_type` to `text` (the default) to store a plain credential value, or to `oauth` to have Intercom obtain and manage an access token via the OAuth client-credentials grant. properties: name: type: string description: A name for the credential, so a teammate can identify it later. example: Fulfilment API key token_type: type: string description: The type of credential to store. Defaults to `text`. enum: - text - oauth example: text token_value: type: string description: The credential value. Required when `token_type` is `text`. Must be omitted when `token_type` is `oauth`. Stored encrypted and never returned by any endpoint. example: example-token-value request_header_key: type: string description: The request header the credential is sent in. Required when `token_type` is `text`. Must be omitted when `token_type` is `oauth`, where it is fixed to `Authorization`. example: Authorization token_prefix: type: string description: An optional prefix placed before the credential value in the header, for example `Bearer`. Must be omitted when `token_type` is `oauth`, where it is fixed to `Bearer`. example: Bearer description: type: string description: An optional description of what the credential is used for. example: Used by the order status connector oauth_configuration: "$ref": "#/components/schemas/oauth_configuration" required: - name oauth_configuration: title: OAuth Configuration type: object x-tags: - Auth Tokens description: | The OAuth client-credentials configuration Intercom uses to obtain and refresh an access token. Required when `token_type` is `oauth`. Must be omitted when `token_type` is `text`. properties: token_url: type: string description: The token endpoint Intercom exchanges the client credentials with. Must be an `https` URL. example: https://auth.fulfilment.example.com/oauth/token client_id: type: string description: The OAuth client ID. example: fulfilment-connector client_secret: type: string description: The OAuth client secret. Stored encrypted and never returned by any endpoint. example: 8f6e2b1a9c4d7e05 scope: type: string description: An optional scope to request from the token endpoint. example: orders.read audience: type: string description: An optional audience to request from the token endpoint. example: https://api.fulfilment.example.com request_format: type: string description: The format the client credentials are sent in when requesting a token. Defaults to `json`. enum: - json - form_encoded example: json required: - token_url - client_id - client_secret update_auth_token_request: title: Update Auth Token Request type: object x-tags: - Auth Tokens description: | The fields accepted when updating a stored third-party credential. Every field is optional, and one you omit keeps its current value. The credential value cannot be changed here. properties: name: type: string description: A name for the credential, so a teammate can identify it later. example: Fulfilment API key request_header_key: type: string description: The request header the credential is sent in. example: Authorization token_prefix: type: string description: An optional prefix placed before the credential value in the header, for example `Bearer`. example: Bearer description: type: string description: An optional description of what the credential is used for. example: Used by the order status connector auth_token_list: title: Auth Token List type: object description: A paginated list of auth tokens. properties: type: type: string description: The type of object - `list`. enum: - list example: list data: type: array description: An array of auth token objects. items: "$ref": "#/components/schemas/auth_token" pages: type: object description: Pagination information. properties: type: type: string example: pages enum: - pages per_page: type: integer description: The number of results per page. example: 20 next: type: object nullable: true description: Cursor for the next page of results. properties: starting_after: type: string description: The cursor value to use for the next page. example: WzE3MDc1OTQ3MTUuMCwxMjM0NV0= away_status_reason: type: object properties: type: type: string example: "away_status_reason" id: type: string description: "The unique identifier for the away status reason" label: type: string description: "The display text for the away status reason" example: "On a break" emoji: type: string description: "The emoji associated with the status reason" example: "☕" order: type: integer description: "The display order of the status reason" example: 1 deleted: type: boolean description: "Whether the status reason has been soft deleted" example: false associated_to_phone_status: type: string nullable: true description: "The phone status this away status reason is configured for, or null if it is not associated with one." enum: - wrap_up - on_a_call - coaching - null example: wrap_up away_status_reason_list: title: Away Status Reasons type: object description: A list of away status reasons. properties: type: type: string description: The type of the object enum: - list example: list data: type: array description: A list of away status reason objects. items: "$ref": "#/components/schemas/away_status_reason" banner_list: title: Banner List type: object description: A list of banners a contact currently matches. properties: type: type: string description: String representing the object's type. Always has the value `list`. example: list data: type: array description: An array of banners. items: "$ref": "#/components/schemas/banner" banner: title: Banner type: object x-tags: - Banners description: A banner the contact currently matches, with the content and view identifier needed to display and dismiss it. properties: type: type: string description: String representing the object's type. Always has the value `banner`. example: banner id: type: string description: The id of the banner. example: '486517' view_id: type: string description: The id of the contact's view of this banner. Pass this to the dismiss endpoint to record a dismissal. example: '645719311' title: type: string nullable: true description: The banner's title. `null` when the banner has no title. example: Hi there body: type: string nullable: true description: The banner's body content as HTML. example: "Hi there!
" style: type: string description: How the banner is displayed. example: inline position: type: string description: Where the banner is positioned. example: top show_dismiss_button: type: boolean description: Whether the banner should display a dismiss control. example: true action: type: object nullable: true description: | The action a contact can take on the banner, or `null` when the banner has no action. The fields present depend on `type`: `url` (`label`, `target`), `reaction` (`reaction_set`), `email_collector`, or `product_tour` (`tour_id`, `tour_url`). properties: type: type: string description: The kind of action. One of `url`, `reaction`, `email_collector`, or `product_tour`. example: url label: type: string nullable: true description: For `url` actions, the label shown on the action link or button. example: Learn more target: type: string nullable: true description: For `url` actions, the URL the contact is sent to. example: https://www.intercom.com/pricing reaction_set: type: array description: For `reaction` actions, the reactions a contact can choose from. items: type: object properties: index: type: integer description: The reaction's position in the set. example: 0 unicode_emoticon: type: string description: The reaction's unicode emoji. example: "\U0001F44D" tour_id: type: string nullable: true description: For `product_tour` actions, the id of the product tour to launch. example: '12345' tour_url: type: string nullable: true description: For `product_tour` actions, the URL that launches the product tour. example: https://app.intercom.com/tours/12345 client_targeting: type: array nullable: true description: | Reserved for future use. Always `null` in the current version — banners that depend on client-side targeting rules (such as page URL or time on page) are not returned by this endpoint. items: type: object created_at: type: integer format: timestamp description: The time the contact's view of this banner was created. example: 1780580493 banner_dismiss: title: Banner Dismiss type: object x-tags: - Banners description: The result of dismissing a banner for a contact. properties: type: type: string description: String representing the object's type. Always has the value `banner_dismiss`. example: banner_dismiss view_id: type: string description: The id of the dismissed banner view. example: '645719311' dismissed: type: boolean description: Whether the banner view is dismissed. example: true change_ticket_type_request: title: Change Ticket Type Request description: You can change the type of a Ticket type: object properties: ticket_type_id: type: string description: The ID of the new ticket type. Must be in the same category as the current type. example: '1234' ticket_state_id: type: string description: The ID of the ticket state for the new ticket type. example: '5678' ticket_attributes: type: object description: The attributes to set on the ticket for the new type. Attributes matching by name and type are transferred automatically from the old type; values provided here override the transferred values. example: _default_title_: example _default_description_: having a problem required: - ticket_type_id - ticket_state_id close_conversation_request: title: Close Conversation Request type: object description: Payload of the request to close a conversation properties: message_type: type: string enum: - close example: close type: type: string enum: - admin example: admin admin_id: type: string description: The id of the admin who is performing the action. example: '12345' body: type: string description: Optionally you can leave a message in the conversation to provide additional context to the user and other teammates. example: " This conversation is now closed!" assignee_id: type: string description: The `id` of the `admin` or `team` to assign the conversation to when it is closed. Set `0` to unassign it, which clears both the teammate and the team assignee. example: '4324241' skip_notifications: type: boolean description: Option to disable notifications when closing a conversation. Available from API version 2.15. example: true required: - message_type - type - admin_id collection: title: Collection type: object x-tags: - Help Center description: Collections are top level containers for Articles within the Help Center. properties: type: type: string description: The type of object - `collection`. enum: - collection example: collection id: type: string description: The unique identifier for the collection which is given by Intercom. example: '6871119' workspace_id: type: string description: The id of the workspace which the collection belongs to. example: hfi1bx4l name: type: string description: The name of the collection. For multilingual collections, this will be the name of the default language's content. example: Default language name description: type: string nullable: true description: The description of the collection. For multilingual help centers, this will be the description of the collection for the default language. example: Default language description created_at: type: integer format: date-time description: The time when the article was created (seconds). For multilingual articles, this will be the timestamp of creation of the default language's content. example: 1672928359 updated_at: type: integer format: date-time description: The time when the article was last updated (seconds). For multilingual articles, this will be the timestamp of last update of the default language's content. example: 1672928610 url: type: string nullable: true description: The URL of the collection. For multilingual help centers, this will be the URL of the collection for the default language. example: http://intercom.test/help/collection/name icon: type: string nullable: true description: The icon of the collection. example: book-bookmark order: type: integer description: The order of the section in relation to others sections within a collection. Values go from `0` upwards. `0` is the default if there's no order. example: '1' default_locale: type: string description: The default locale of the help center. This field is only returned for multilingual help centers. example: en translated_content: nullable: true "$ref": "#/components/schemas/group_translated_content" parent_id: type: string nullable: true description: The id of the parent collection. If `null` then it is the first level collection. example: '6871118' help_center_id: type: integer nullable: true description: The id of the help center the collection is in. example: '123' help_center_redirect: title: Help Center Redirect type: object x-tags: - Help Center description: | A redirect maps a source URL (`from_url`) to an article, a collection or the home page of a help center, so that links to old or external URLs resolve to live content. properties: id: type: string description: The unique identifier for the redirect. example: '26' type: type: string description: The type of the object - `help_center_redirect`. enum: - help_center_redirect example: help_center_redirect from_url: type: string description: The source URL that is redirected. This is an absolute URL within the help center's URL space, or a relative path such as `/old-page` for some existing redirects. example: http://help-center.test/lovelyhelpcenter/old-page locale: type: string description: The locale of the redirect's target. For article targets this is the bound translation's locale, which may differ from the requested locale if no translation exists in that locale. example: en help_center_id: type: string description: The unique identifier for the help center the redirect belongs to. example: '7' target_type: type: string description: The type of the redirect target. `help_center` targets the help center's home page. enum: - article - collection - help_center example: article target_id: type: string description: The unique identifier of the target article, collection or help center. For article targets this is the Article ID. example: '11' created_at: type: integer description: The time the redirect was created as a UTC Unix timestamp. example: 1781619405 updated_at: type: integer description: The time the redirect was last updated as a UTC Unix timestamp. example: 1781619405 help_center_redirect_list: title: Help Center Redirects type: object description: This will return a list of redirects for the help center. properties: type: type: string description: The type of the object - `list`. enum: - list example: list pages: "$ref": "#/components/schemas/pages_link" total_count: type: integer description: A count of the total number of redirects. example: 1 data: type: array description: An array of help center redirect objects. items: "$ref": "#/components/schemas/help_center_redirect" create_help_center_redirect_request: description: You can create a help center redirect. type: object title: Create Help Center Redirect Request Payload properties: from_url: type: string description: The source URL to redirect. Must be an absolute URL within the help center's URL space. example: http://help-center.test/lovelyhelpcenter/old-page locale: type: string description: The locale of the target translation (e.g. `en`, `fr`). For article targets this selects the ArticleContent variant. example: en target_type: type: string description: The type of the redirect target. `help_center` targets the help center's home page. enum: - article - collection - help_center example: article target_id: type: string description: The unique identifier of the target article, collection or help center. The target must be a member of the help center. Required unless `target_type` is `help_center`, where it defaults to the help center in the path and must match it if provided. example: '11' required: - from_url - locale - target_type deleted_help_center_redirect_object: title: Deleted Help Center Redirect Object type: object description: Response returned when a redirect is deleted. properties: id: type: string description: The unique identifier for the redirect which you provided in the URL. example: '26' object: type: string description: The type of object which was deleted. - `help_center_redirect` enum: - help_center_redirect example: help_center_redirect deleted: type: boolean description: Whether the redirect was deleted successfully or not. example: true collection_list: title: Collections type: object description: This will return a list of Collections for the App. properties: type: type: string description: The type of the object - `list`. enum: - list example: list pages: "$ref": "#/components/schemas/pages_link" total_count: type: integer description: A count of the total number of collections. example: 1 data: type: array description: An array of collection objects items: "$ref": "#/components/schemas/collection" bulk_create_contacts_request: title: Bulk Create Contacts Request type: object description: Request body for bulk creating contacts. required: - contacts properties: contacts: type: array description: An array of contact objects to create. Maximum 100 contacts per request. maxItems: 100 items: type: object properties: external_id: type: string description: A unique identifier for the contact which you have defined. example: abc123 email: type: string description: The contact's email address. example: joe@example.com email_verified: type: boolean nullable: true description: |- Whether the contact has proved they own this email address, for example through a confirmation link or one-time code you sent. Send it together with `email`. `email_verified` without `email` is rejected. Changing a contact's email resets it to not verified. Intercom reuses leads with a verified email when an inbound email, conversation or ticket matches the address. example: true name: type: string description: The contact's name. example: Joe Bloggs role: type: string description: The contact's role. One of `user` or `lead`. Leads are exempt from the uniqueness check described above. example: user phone: type: string description: The contact's phone number. avatar: type: string description: An image URL containing the avatar of the contact. example: https://www.example.com/avatar_image.jpg language_override: type: string description: A preferred language setting for the contact, used by the Intercom Messenger. example: fr custom_attributes: type: object description: Custom attributes to set on the contact. signed_up_at: type: integer description: The time the contact signed up, in Unix timestamp format. last_seen_at: type: integer description: The time the contact was last seen, in Unix timestamp format. owner_id: type: string description: The ID of an admin that has been assigned account ownership of the contact. example: "321" unsubscribed_from_emails: type: boolean description: Whether the contact is unsubscribed from emails. example: true companies: type: array description: A list of companies to associate with the contact. Each company is identified by the `company_id` you have defined. A company that does not exist is created, and one that already exists has the supplied attributes applied to it. items: type: object required: - company_id properties: company_id: type: string description: The company ID you have defined for the company. example: '6' name: type: string description: The name of the company. example: Blue Sun tags: type: object description: | Tags to add to the contact. Each tag is identified by its `id`, which must be a positive integer for a tag that already exists in your workspace. Tag application is best-effort: unknown tag IDs are skipped while the rest of the contact create still applies. Per-tag results are not yet returned in the job status. properties: add: type: array description: Tags to add to the contact. items: type: object required: - id properties: id: type: string description: The ID of an existing tag to add to the contact. example: '123' job: type: object description: Optional. Include to append tasks to an existing job. properties: id: type: string description: The ID of an existing bulk job to append to. example: job_v2_1 bulk_delete_contacts_request: title: Bulk Delete Contacts Request type: object description: Request body for permanently bulk deleting contacts. required: - contacts properties: contacts: type: array description: An array of contacts to delete, each identified by `id`. Maximum 1,000 contacts per request. maxItems: 1000 items: type: object required: - id properties: id: type: string description: The unique identifier for the contact. example: abc123 job: type: object description: Optional. Include to append tasks to an existing job. properties: id: type: string description: The ID of an existing bulk job to append to. example: job_v2_1 bulk_update_contacts_request: title: Bulk Update Contacts Request type: object description: Request body for bulk updating contacts. required: - contacts properties: contacts: type: array description: An array of contact objects to update. Each must include an `id` and the fields to update. Maximum 100 contacts per request. maxItems: 100 items: type: object required: - id properties: id: type: string description: The unique identifier for the contact. example: abc123 role: type: string description: The updated contact's role (optional). example: user signed_up_at: type: integer format: date-time nullable: true description: "(Unix timestamp in seconds) The time specified for when a contact signed up." example: 1571672154 last_seen_at: type: integer format: date-time nullable: true description: "(Unix timestamp in seconds) The time when the contact was last seen." example: 1571672154 sms_consent: type: boolean description: Whether the contact has consented to receive SMS messages. example: false unsubscribed_from_sms: type: boolean description: Whether the contact is unsubscribed from SMS messages. example: false external_id: type: string description: A unique identifier for the contact which you have defined. example: abc123 email: type: string description: The contact's email address. example: joe@example.com email_verified: type: boolean nullable: true description: |- Whether the contact has proved they own this email address, for example through a confirmation link or one-time code you sent. Send it together with `email`. `email_verified` without `email` is rejected. Changing a contact's email resets it to not verified. Intercom reuses leads with a verified email when an inbound email, conversation or ticket matches the address. example: true name: type: string description: The contact's name. example: Joe Bloggs phone: type: string description: The contact's phone number. avatar: type: string description: An image URL containing the avatar of the contact. example: https://www.example.com/avatar_image.jpg owner_id: type: string description: The ID of an admin that has been assigned account ownership of the contact. example: "321" unsubscribed_from_emails: type: boolean description: Whether the contact is unsubscribed from emails. example: true language_override: type: string description: A preferred language setting for the contact, used by the Intercom Messenger. example: fr custom_attributes: type: object description: Custom attributes to update on the contact. For a relationship attribute, send the IDs of the custom object records to link the contact to. companies: type: array description: A list of companies to associate with the contact. Each company is identified by the `company_id` you have defined. A company that does not exist is created, and one that already exists has the supplied attributes applied to it. items: type: object required: - company_id properties: company_id: type: string description: The company ID you have defined for the company. example: '6' name: type: string description: The name of the company. example: Blue Sun remove: type: boolean description: Set to true to detach this company from the contact instead of attaching it. example: true tags: type: object description: | Tags to add to or remove from the contact. Each tag is identified by its `id`, which must be a positive integer for a tag that already exists in your workspace. Tag application is best-effort: unknown tag IDs are skipped while the rest of the contact update still applies. Per-tag results are not yet returned in the job status. properties: add: type: array description: Tags to add to the contact. items: type: object required: - id properties: id: type: string description: The ID of an existing tag to add to the contact. example: '123' remove: type: array description: Tags to remove from the contact. items: type: object required: - id properties: id: type: string description: The ID of an existing tag to remove from the contact. example: '789' job: type: object description: Optional. Include to append tasks to an existing job. properties: id: type: string description: The ID of an existing bulk job to append to. example: job_v2_1 company: title: Company type: object x-tags: - Companies description: Companies allow you to represent organizations using your product. Each company will have its own description and be associated with contacts. You can fetch, create, update and list companies. properties: type: type: string description: Value is `company` enum: - company example: company id: type: string description: The Intercom defined id representing the company. example: 531ee472cce572a6ec000006 name: type: string description: The name of the company. Returned HTML-escaped, for example `&` as `&`. example: Blue Sun app_id: type: string description: The Intercom defined code of the workspace the company is associated to. example: ecahpwf5 plan: type: object properties: type: type: string description: Value is always "plan" example: plan id: type: string description: The id of the plan example: '269315' name: type: string description: The name of the plan example: Pro company_id: type: string description: The company id you have defined for the company. Returned HTML-escaped, for example `&` as `&`. example: '6' remote_created_at: type: integer description: The time the company was created by you. example: 1663597223 created_at: type: integer description: The time the company was added in Intercom. example: 1663597223 updated_at: type: integer description: The last time the company was updated. example: 1663597223 last_request_at: type: integer description: The time the company last recorded making a request. example: 1663597223 size: type: integer description: The number of employees in the company. example: 100 website: type: string description: The URL for the company website. example: https://www.intercom.com industry: type: string description: The industry that the company operates in. example: Software monthly_spend: type: integer description: How much revenue the company generates for your business. example: 100 session_count: type: integer description: How many sessions the company has recorded. example: 100 user_count: type: integer description: The number of users in the company. example: 100 custom_attributes: type: object description: The custom attributes you have set on the company. additionalProperties: anyOf: - type: string nullable: true - type: integer - type: number - type: boolean example: paid_subscriber: true monthly_spend: 155.5 team_mates: 9 tags: type: object description: The list of tags associated with the company properties: type: type: string description: The type of the object enum: - tag.list tags: type: array items: "$ref": "#/components/schemas/tag_basic" segments: type: object description: Always returned empty. Fetch a company's segments with the list attached segments endpoint. properties: type: type: string description: The type of the object enum: - segment.list segments: type: array items: "$ref": "#/components/schemas/segment" notes: type: object description: The list of notes associated with the company properties: type: type: string description: The type of the object enum: - note.list data: type: array description: The notes on the company, newest first. items: "$ref": "#/components/schemas/company_note" url: type: string description: The relative URL of the company's notes. example: "/companies/531ee472cce572a6ec000006/notes" total_count: type: integer description: The number of notes in `data`. example: 1 has_more: type: boolean description: Always `false`. Every note on the company is returned in `data`. example: false company_attached_contacts: title: Company Attached Contacts type: object description: A list of Contact Objects properties: type: type: string description: The type of object - `list` enum: - list example: list data: type: array description: An array containing Contact Objects items: "$ref": "#/components/schemas/contact" total_count: type: integer description: The total number of contacts example: 100 pages: "$ref": "#/components/schemas/cursor_pages" company_attached_segments: title: Company Attached Segments type: object description: A list of Segment Objects properties: type: type: string description: The type of object - `list` enum: - list example: list data: type: array description: An array containing Segment Objects items: "$ref": "#/components/schemas/segment" company_note: title: Company Note type: object x-tags: - Notes description: A note as it appears inside a company's `notes` list. Fetch the full note with the retrieve note endpoint. properties: type: type: string description: String representing the object's type. Always has the value `note`. example: note id: type: string description: The id of the note. example: '17495962' url: type: string description: The relative URL of the note. example: "/notes/17495962" body: type: string description: The body text of the note. example: "Text for the note.
" company_list: title: Companies type: object description: This will return a list of companies for the App. On the last page, `pages.next` is `null`. properties: type: type: string description: The type of object - `list`. enum: - list example: list pages: "$ref": "#/components/schemas/pages_link" total_count: type: integer description: The total number of companies. example: 100 data: type: array description: An array containing Company Objects. items: "$ref": "#/components/schemas/company" company_search_response: title: Company Search Response type: object description: This will return a list of companies matching a search query. properties: type: type: string description: The type of object - `list`. enum: - list example: list pages: "$ref": "#/components/schemas/cursor_pages" total_count: type: integer description: The total number of companies. example: 100 data: type: array description: An array containing Company Objects. items: "$ref": "#/components/schemas/company" company_scroll: title: Company Scroll type: object description: Companies allow you to represent organizations using your product. Each company will have its own description and be associated with contacts. You can fetch, create, update and list companies. nullable: true properties: type: type: string description: The type of object - `list` enum: - list example: list data: type: array items: "$ref": "#/components/schemas/company" pages: type: object description: Always `null`. Page through a scroll with `scroll_param` instead. nullable: true total_count: type: integer description: Always `null`. The scroll endpoint does not count the companies it returns. nullable: true scroll_param: type: string description: The scroll parameter to use in the next request to fetch the next page of results. example: 25b649f7-4d33-4ef6-88f5-60e5b8244309 company_user_list: title: Company Users type: object description: The contacts attached to one company, returned when `type` is `user` or `users` and the request names a single company. Contacts are in the legacy user format. On the last page, `pages.next` is `null`. properties: type: type: string description: The type of object - `user.list`. enum: - user.list example: user.list users: type: array description: The contacts attached to the company, in the legacy user format. items: type: object pages: "$ref": "#/components/schemas/pages_link" total_count: type: integer description: The total number of contacts attached to the company. example: 1 limited: type: boolean description: Always `false` for this list. example: false contact: title: Contact type: object x-tags: - Contacts x-fern-sdk-group-name: contacts description: Contacts represent your leads and users in Intercom. properties: type: type: string description: The type of object. example: contact id: type: string description: The unique identifier for the contact which is given by Intercom. example: 5ba682d23d7cf92bef87bfd4 external_id: type: string nullable: true description: The unique identifier for the contact which is provided by the Client. example: f3b87a2e09d514c6c2e79b9a workspace_id: type: string description: The id of the workspace which the contact belongs to. example: ecahpwf5 role: type: string description: The role of the contact. example: user email: type: string description: The contact's email. example: joe@example.com email_domain: type: string description: The contact's email domain. example: example.com email_verified: type: boolean description: >- Whether the contact has proved they own their current email address. `true` only when this address was marked verified through the Contacts API (`email_verified: true` on create or update) and has not changed since; it becomes `false` again if the contact's email changes, until the new address is verified. Intercom reuses a lead with a verified email when it later matches an inbound email, or an outbound conversation or ticket, to that address, instead of creating a new lead. In List contacts and Search contacts responses it is left out only if the contact can't be loaded, for example when it is deleted while the request runs. example: true phone: type: string nullable: true description: The contacts phone. example: "+1123456789" whatsapp_number: type: string nullable: true description: The contact's WhatsApp number. It is read-only; sending it when creating or updating a contact has no effect. example: "+34666666666" name: type: string nullable: true description: The contacts name. example: John Doe owner_id: type: string nullable: true description: The id of an admin that has been assigned account ownership of the contact. example: "321" has_hard_bounced: type: boolean description: Whether the contact has had an email sent to them hard bounce. example: true marked_email_as_spam: type: boolean description: Whether the contact has marked an email sent to them as spam. example: true unsubscribed_from_emails: type: boolean description: Whether the contact is unsubscribed from emails. example: true created_at: type: integer format: date-time description: "(Unix timestamp in seconds) The time when the contact was created." example: 1571672154 updated_at: type: integer format: date-time description: "(Unix timestamp in seconds) The time when the contact was last updated." example: 1571672154 signed_up_at: type: integer format: date-time nullable: true description: "(Unix timestamp in seconds) The time specified for when a contact signed up." example: 1571672154 last_seen_at: type: integer format: date-time nullable: true description: "(Unix timestamp in seconds) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually)." example: 1571672154 last_replied_at: type: integer format: date-time nullable: true description: "(Unix timestamp in seconds) The time when the contact last messaged in." example: 1571672154 last_contacted_at: type: integer format: date-time nullable: true description: "(Unix timestamp in seconds) The time when the contact was last messaged." example: 1571672154 last_email_opened_at: type: integer format: date-time nullable: true description: "(Unix timestamp in seconds) The time when the contact last opened an email." example: 1571672154 last_email_clicked_at: type: integer format: date-time nullable: true description: "(Unix timestamp in seconds) The time when the contact last clicked a link in an email." example: 1571672154 language_override: type: string nullable: true description: A preferred language setting for the contact, used by the Intercom Messenger even if their browser settings change. example: en browser: type: string nullable: true description: The name of the browser which the contact is using. example: Chrome browser_version: type: string nullable: true description: The version of the browser which the contact is using. example: 80.0.3987.132 browser_language: type: string nullable: true description: The language set by the browser which the contact is using. example: en-US os: type: string nullable: true description: The operating system which the contact is using. example: Mac OS X android_app_name: type: string nullable: true description: The name of the Android app which the contact is using. example: Intercom android_app_version: type: string nullable: true description: The version of the Android app which the contact is using. example: 5.0.0 android_device: type: string nullable: true description: The Android device which the contact is using. example: Pixel 3 android_os_version: type: string nullable: true description: The version of the Android OS which the contact is using. example: '10' android_sdk_version: type: string nullable: true description: The version of the Android SDK which the contact is using. example: '28' android_last_seen_at: type: integer nullable: true format: date-time description: "(Unix timestamp in seconds) The time when the contact was last seen on an Android device." example: 1571672154 ios_app_name: type: string nullable: true description: The name of the iOS app which the contact is using. example: Intercom ios_app_version: type: string nullable: true description: The version of the iOS app which the contact is using. example: 5.0.0 ios_device: type: string nullable: true description: The iOS device which the contact is using. example: iPhone 11 ios_os_version: type: string nullable: true description: The version of iOS which the contact is using. example: 13.3.1 ios_sdk_version: type: string nullable: true description: The version of the iOS SDK which the contact is using. example: 13.3.1 ios_last_seen_at: type: integer nullable: true format: date-time description: "(Unix timestamp in seconds) The last time the contact used the iOS app." example: 1571672154 custom_attributes: type: object description: The custom attributes which are set for the contact. avatar: type: string format: uri nullable: true description: An image URL containing the avatar of a contact. example: https://example.org/128Wash.jpg tags: "$ref": "#/components/schemas/contact_tags" notes: "$ref": "#/components/schemas/contact_notes" companies: "$ref": "#/components/schemas/contact_companies" location: "$ref": "#/components/schemas/contact_location" social_profiles: "$ref": "#/components/schemas/contact_social_profiles" opted_out_subscription_types: "$ref": "#/components/schemas/contact_subscription_types" opted_in_subscription_types: "$ref": "#/components/schemas/contact_subscription_types" utm_campaign: type: string nullable: true description: The `utm_campaign` value recorded for the contact. example: spring_launch utm_content: type: string nullable: true description: The `utm_content` value recorded for the contact. example: banner_ad utm_medium: type: string nullable: true description: The `utm_medium` value recorded for the contact. example: email utm_source: type: string nullable: true description: The `utm_source` value recorded for the contact. example: newsletter utm_term: type: string nullable: true description: The `utm_term` value recorded for the contact. example: support_software referrer: type: string nullable: true description: The URL of the page the contact came from, as recorded by the Messenger. example: https://example.com/pricing sms_consent: type: boolean description: Whether the contact has consented to receive SMS messages. example: false unsubscribed_from_sms: type: boolean description: Whether the contact is unsubscribed from SMS messages. example: false enabled_push_messaging: type: boolean nullable: true description: Whether the contact has a mobile device registered to receive push messages. example: true merge_history: type: array nullable: true description: A list of contacts that were merged into this contact, most recent first, capped at 10. Only included in the response when `include_merge_history=true` is passed as a query parameter. items: "$ref": "#/components/schemas/merge_history_item" contact_attached_companies: title: Contact Attached Companies type: object description: A list of Company Objects properties: type: type: string description: The type of object enum: - list example: list data: type: array description: An array containing Company Objects items: "$ref": "#/components/schemas/company" total_count: type: integer description: The total number of companies associated to this contact example: 100 pages: "$ref": "#/components/schemas/pages_link" contact_companies: title: Contact companies type: object nullable: false description: An object with metadata about companies attached to a contact . Up to 10 will be displayed here. Use the url to get more. properties: data: type: array description: An array of company data objects attached to the contact. items: "$ref": "#/components/schemas/company_data" url: type: string format: uri description: Url to get more company resources for this contact example: "/contacts/5ba682d23d7cf92bef87bfd4/companies" total_count: type: integer description: Integer representing the total number of companies attached to this contact example: 100 has_more: type: boolean description: Whether there's more Addressable Objects to be viewed. If true, use the url to view all example: true company_data: title: Company Data type: object description: An object containing data about the companies that a contact is associated with. properties: id: type: string description: The unique identifier for the company which is given by Intercom. example: 5ba682d23d7cf92bef87bfd4 type: type: string description: The type of the object. Always company. enum: - company example: company url: type: string format: uri description: The relative URL of the company. example: "/companies/5ba682d23d7cf92bef87bfd4" contact_deleted: title: Contact Deleted description: deleted contact object allOf: - "$ref": "#/components/schemas/contact_reference" properties: deleted: type: boolean description: Whether the contact is deleted or not. example: true contact_activity: title: Contact Activity type: object description: An activity event that occurred for a contact, such as creation, merge, or deletion. properties: type: type: string description: Always contact_activity enum: - contact_activity example: contact_activity id: type: string description: The unique identifier for the activity event. example: '1717000000000.0000a1' event_type: type: string description: The type of activity event. enum: - contact.created - contact.role_updated - contact.deleted - contact.merged - contact.merge_failed example: contact.created contact_id: type: string description: The unique identifier for the contact the event relates to. example: 6329bd9ffe4e2e91dc5d6a1e external_id: type: string description: The external identifier of the contact. Omitted when not set. example: user-42 role: type: string description: The role of the contact at the time of the event, either user, lead, or visitor. Omitted when not recorded. example: user merge_source_id: type: string description: For merge events, the identifier of the contact that was merged away. Omitted on other events. example: 5f7f0d217c3f2e001a4e8b12 merge_target_id: type: string description: For merge events, the identifier of the contact that was merged into. Omitted on other events. example: 6329bd9ffe4e2e91dc5d6a1e failure_reason: type: string description: For failed events, the reason the activity did not succeed. Omitted on other events. example: duplicate_external_id created_at: type: integer format: date-time description: The time the activity event occurred, as a Unix timestamp in seconds. example: 1717000000 contact_activity_list: title: Contact Activity List type: object description: A paginated list of contact activity events. properties: type: type: string description: Always list enum: - list example: list data: type: array description: The list of contact activity objects. items: "$ref": "#/components/schemas/contact_activity" pages: type: object description: Pagination information. properties: type: type: string example: pages enum: - pages per_page: type: integer description: The number of results per page. example: 10 next: type: object description: Cursor for the next page of results. Omitted on the last page. properties: starting_after: type: string description: The cursor value to use for the next page. example: 1717000000000.0000a1 contact_list: title: Contact List type: object description: Contacts are your users in Intercom. properties: type: type: string description: Always list enum: - list example: list data: type: array description: The list of contact objects items: "$ref": "#/components/schemas/contact" total_count: type: integer description: A count of the total number of objects. example: 100 pages: "$ref": "#/components/schemas/cursor_pages" contacts_bulk_job: title: Contacts Bulk Job type: object x-tags: - Contacts description: A bulk job for updating contacts asynchronously. Track the job status using the `state` field. properties: id: type: string description: The unique identifier for the bulk job. example: job_v2_1 type: type: string description: The type of the object. enum: - contacts.bulk.job example: contacts.bulk.job state: type: string description: The current state of the job. enum: - running - completed - completed_with_errors example: running created_at: type: integer format: date-time description: The time the job was created as a Unix timestamp. example: 1713360000 updated_at: type: integer format: date-time description: The time the job was last updated as a Unix timestamp. example: 1713360060 completed_at: type: integer format: date-time nullable: true description: The time the most recent task completed as a Unix timestamp. Set as soon as any task completes, so check `state` to know whether the whole job has finished. Null until a task completes. example: 1713360120 tasks: type: array description: The tasks that make up this bulk job. items: type: object properties: id: type: string description: The unique identifier for the task. example: task_v2_1 item_count: type: integer description: The number of items in this task. example: 3 state: type: string description: The current state of the task. enum: - pending - running - completed - completed_with_errors example: pending created_at: type: integer format: date-time description: The time the task was created as a Unix timestamp. example: 1713360000 started_at: type: integer format: date-time nullable: true description: The time the task started as a Unix timestamp. Null if not yet started. example: 1713360060 completed_at: type: integer format: date-time nullable: true description: The time the task completed as a Unix timestamp. Null if not yet completed. example: 1713360120 url: type: string description: The URL to check the job status. example: https://api.intercom.io/contacts/bulk/job_v2_1 contact_location: title: Contact Location type: object nullable: false description: An object containing location meta data about a Intercom contact. properties: type: type: string nullable: true description: Always location example: location country: type: string nullable: true description: The country that the contact is located in example: Ireland region: type: string nullable: true description: The overal region that the contact is located in example: Dublin city: type: string nullable: true description: The city that the contact is located in example: Dublin country_code: type: string nullable: true description: The ISO 3166-1 alpha-3 code of the country that the contact is located in example: IRL continent_code: type: string nullable: true description: The code of the continent that the contact is located in example: EU contact_notes: title: Contact notes type: object nullable: false description: An object containing notes meta data about the notes that a contact has. Up to 10 will be displayed here. Use the url to get more. properties: data: type: array description: This object represents the notes attached to a contact. items: "$ref": "#/components/schemas/addressable_list" url: type: string format: uri description: Url to get more company resources for this contact example: "/contacts/5ba682d23d7cf92bef87bfd4/notes" total_count: type: integer description: Int representing the total number of companyies attached to this contact example: 100 has_more: type: boolean description: Whether there's more Addressable Objects to be viewed. If true, use the url to view all example: true contact_reference: title: Contact Reference type: object description: reference to contact object properties: type: type: string description: always contact enum: - contact example: contact id: type: string description: The unique identifier for the contact which is given by Intercom. example: 5ba682d23d7cf92bef87bfd4 external_id: type: string nullable: true description: The unique identifier for the contact which is provided by the Client. example: "70" email: type: string nullable: true description: The contact's email. example: joe@example.com contact_reply_base_request: title: Contact Reply Base Object type: object properties: message_type: type: string enum: - comment type: type: string enum: - user body: type: string description: The text body of the comment. Required unless the reply includes attachments. Always required when replying to a ticket. created_at: type: integer description: The time the reply was created. If not provided, the current time will be used. example: 1590000000 attachment_urls: title: Attachment URLs type: array description: A list of image URLs that will be added as attachments. You can include up to 10 URLs. items: type: string format: uri maxItems: 10 reply_options: title: Contact Quick Reply type: array description: The quick reply selection the contact wishes to respond with. These map to buttons displayed in the Messenger UI if sent by a bot, or the reply options sent by an Admin via the API. items: title: Quick Reply Option type: object properties: text: type: string description: The text of the chosen reply option. uuid: type: string format: uuid description: The unique identifier for the quick reply option selected. required: - text - uuid required: - message_type - type contact_reply_conversation_request: title: Contact Reply oneOf: - "$ref": "#/components/schemas/contact_reply_intercom_user_id_request" - "$ref": "#/components/schemas/contact_reply_email_request" - "$ref": "#/components/schemas/contact_reply_user_id_request" contact_reply_email_request: title: Email type: object description: Payload of the request to reply on behalf of a contact using their `email` properties: email: type: string description: The email you have defined for the user. attachment_files: type: array description: A list of files that will be added as attachments. items: "$ref": "#/components/schemas/conversation_attachment_files" allOf: - "$ref": "#/components/schemas/contact_reply_base_request" required: - email contact_reply_intercom_user_id_request: title: Intercom User ID type: object description: Payload of the request to reply on behalf of a contact using their `intercom_user_id` allOf: - "$ref": "#/components/schemas/contact_reply_base_request" properties: intercom_user_id: type: string description: The identifier for the contact as given by Intercom. attachment_files: type: array description: A list of files that will be added as attachments. items: "$ref": "#/components/schemas/conversation_attachment_files" required: - intercom_user_id contact_reply_ticket_email_request: title: Email type: object description: Payload of the request to reply on behalf of a contact using their `email` properties: email: type: string description: The email you have defined for the user. allOf: - "$ref": "#/components/schemas/contact_reply_base_request" required: - email - body contact_reply_ticket_intercom_user_id_request: title: Intercom User ID type: object description: Payload of the request to reply on behalf of a contact using their `intercom_user_id` allOf: - "$ref": "#/components/schemas/contact_reply_base_request" properties: intercom_user_id: type: string description: The identifier for the contact as given by Intercom. required: - intercom_user_id - body contact_reply_ticket_request: title: Contact Reply on ticket oneOf: - "$ref": "#/components/schemas/contact_reply_ticket_intercom_user_id_request" - "$ref": "#/components/schemas/contact_reply_ticket_user_id_request" - "$ref": "#/components/schemas/contact_reply_ticket_email_request" contact_reply_ticket_user_id_request: title: User ID type: object description: Payload of the request to reply on behalf of a contact using their `user_id` allOf: - "$ref": "#/components/schemas/contact_reply_base_request" properties: user_id: type: string description: The external_id you have defined for the contact. required: - user_id - body contact_reply_user_id_request: title: User ID type: object description: Payload of the request to reply on behalf of a contact using their `user_id` allOf: - "$ref": "#/components/schemas/contact_reply_base_request" properties: user_id: type: string description: The external_id you have defined for the contact. attachment_files: type: array description: A list of files that will be added as attachments. You can include up to 10 files. items: "$ref": "#/components/schemas/conversation_attachment_files" maxItems: 10 required: - user_id contact_search_request: description: Search for contacts using Intercom's Search API. type: object title: Contact search request properties: query: oneOf: - "$ref": "#/components/schemas/single_filter_search_request" title: Single filter search request - "$ref": "#/components/schemas/multiple_filter_search_request" title: multiple filter search request pagination: "$ref": "#/components/schemas/starting_after_paging" sort: type: object description: An optional object to sort the results by. properties: field: type: string description: The field to sort the results on. example: created_at order: type: string description: The order to sort the results in. Defaults to `descending` when omitted. Values other than `ascending` or `descending` return a `400` error with code `invalid_sort_order`. enum: - ascending - descending default: descending example: descending required: - query contact_segments: title: Segments type: object description: A list of segments objects attached to a specific contact. properties: type: type: string description: The type of the object enum: - list example: list data: type: array description: Segment objects associated with the contact. items: "$ref": "#/components/schemas/segment" contact_social_profiles: title: Social Profile type: object nullable: false description: An object containing social profiles that a contact has. properties: data: type: array description: A list of social profiles objects associated with the contact. items: "$ref": "#/components/schemas/social_profile" contact_subscription_types: title: Contact Subscription Types type: object nullable: false description: An object containing Subscription Types meta data about the SubscriptionTypes that a contact has. properties: type: type: string description: The type of the object enum: - list example: list data: type: array description: This object represents the subscriptions attached to a contact. items: "$ref": "#/components/schemas/addressable_list" url: type: string format: uri description: Url to get more subscription type resources for this contact example: "/contacts/5ba682d23d7cf92bef87bfd4/subscriptions" total_count: type: integer description: Int representing the total number of subscription types attached to this contact example: 100 has_more: type: boolean description: Whether there's more Addressable Objects to be viewed. If true, use the url to view all example: true contact_tags: title: Contact Tags type: object nullable: true description: An object containing tags meta data about the tags that a contact has. Up to 10 will be displayed here. Use the url to get more. properties: data: type: array description: This object represents the tags attached to a contact. items: "$ref": "#/components/schemas/addressable_list" url: type: string format: uri description: url to get more tag resources for this contact example: "/contacts/5ba682d23d7cf92bef87bfd4/tags" total_count: type: integer description: Int representing the total number of tags attached to this contact example: 100 has_more: type: boolean description: Whether there's more Addressable Objects to be viewed. If true, use the url to view all example: true contact_archived: title: Contact Archived description: archived contact object allOf: - "$ref": "#/components/schemas/contact_reference" properties: archived: type: boolean description: Whether the contact is archived or not. example: true contact_unarchived: title: Contact Unarchived description: unarchived contact object allOf: - "$ref": "#/components/schemas/contact_reference" properties: archived: type: boolean description: Whether the contact is archived or not. example: false deleted_contact: title: Deleted Contact type: object description: A contact that is no longer active, returned by the list deleted contacts endpoint. properties: type: type: string description: always contact enum: - contact example: contact id: type: string description: The unique identifier for the contact which is given by Intercom. example: 5ba682d23d7cf92bef87bfd4 external_id: type: string nullable: true description: The unique identifier for the contact which is provided by the Client. `null` for permanently deleted contacts. example: "70" email: type: string nullable: true description: The contact's email address. `null` for permanently deleted contacts. example: joe@example.com role: type: string description: The role of the contact. enum: - user - lead example: user status: type: string description: Why the contact is no longer active. enum: - archived - blocked - merged - pending_deletion - permanently_deleted example: archived merged_into_id: type: string description: The id of the contact this one was merged into. Present only when `status` is `merged`. example: 5ba682d23d7cf92bef87bfd9 updated_at: type: integer format: date-time description: The time the contact record was last updated as a UNIX timestamp. This is a last-modified time, not a deletion time. example: 1756636800 deleted_contact_list: title: Deleted Contact List type: object description: A paginated list of deleted contacts. properties: type: type: string description: Always list enum: - list example: list data: type: array description: The list of deleted contact objects. items: "$ref": "#/components/schemas/deleted_contact" example: - type: contact id: 5ba682d23d7cf92bef87bfd4 external_id: "70" email: joe@example.com role: user status: archived updated_at: 1756636800 total_count: type: integer description: A count of the total number of deleted contacts. example: 100 pages: type: object description: Offset-based pagination metadata. example: type: pages page: 1 per_page: 10 total_pages: 1 properties: type: type: string enum: - pages example: pages page: type: integer example: 1 per_page: type: integer example: 10 total_pages: type: integer example: 1 contact_blocked: title: Contact Blocked type: object description: blocked contact object allOf: - "$ref": "#/components/schemas/contact_reference" properties: blocked: type: boolean description: Always true. example: true content_bulk_action_request: title: Content Bulk Action Request Payload type: object required: - action - content_ids properties: action: type: string description: | The bulk action to perform. Allowed `content_ids[].type` values vary per action: * `publish`, `unpublish`: `article_content` * `delete`: `article_content`, `content_snippet`, `file_source_content`, `internal_article` * `set_availability`, `set_audience`: `article_content`, `content_snippet`, `external_content`, `file_source_content`, `internal_article` * `update_tags`: `article` (the parent Article id, not `article_content`), `content_snippet`, `external_content`, `file_source_content`, `internal_article` enum: - publish - unpublish - delete - set_availability - set_audience - update_tags example: publish content_ids: type: array maxItems: 1000 description: Up to 1,000 content items to apply the action to. items: type: object required: - type - id properties: type: type: string enum: - article - article_content - content_snippet - external_content - file_source_content - internal_article example: article_content id: type: string example: '12345678' availability: type: object description: | Required when `action` is `set_availability`. Each field is optional — only the properties present in the request are toggled. properties: ai_agent: type: boolean description: Toggle Fin AI Agent availability. copilot: type: boolean description: Toggle Copilot availability. sales_agent: type: boolean description: Toggle Sales Agent availability. audience: type: object description: Required when `action` is `set_audience`. Manages segment membership. properties: add_segment_ids: type: array description: Segment IDs to assign to the selected content. items: type: integer example: - 100 remove_segment_ids: type: array description: Segment IDs to remove from the selected content. items: type: integer example: - 200 remove_all: type: boolean description: When `true`, removes all segments from the selected content. example: false tags: type: object description: | Required when `action` is `update_tags`. Applies and/or removes existing tags. Supply at least one of `add_tag_ids` / `remove_tag_ids`. At most 100 distinct tag IDs may be supplied across `add_tag_ids` and `remove_tag_ids` combined. Tag IDs must reference existing, non-archived tags; exceeding the limit or referencing unknown or archived IDs is rejected with `parameter_invalid` (HTTP 422). properties: add_tag_ids: type: array description: Tag IDs to apply to the selected content. items: type: integer example: - 100 remove_tag_ids: type: array description: Tag IDs to remove from the selected content. items: type: integer example: - 200 content_bulk_action_response: title: Content Bulk Action Response Envelope type: object description: | Phase 1 envelope returned immediately after the request is enqueued. A future Preview release will replace this with a polling-friendly job resource that surfaces progress and per-item results (updated, unchanged, skipped, failed). properties: type: type: string example: content_bulk_action status: type: string example: queued content_import_source: title: Content Import Source type: object x-tags: - AI Content description: An external source for External Pages that you add to your Fin Content Library. nullable: false properties: type: type: string description: Always content_import_source enum: - content_import_source default: content_import_source example: content_import_source id: type: integer description: The unique identifier for the content import source which is given by Intercom. example: 1234 last_synced_at: type: integer format: date-time description: The time when the content import source was last synced. example: 1672928610 sync_behavior: type: string description: If you intend to create or update External Pages via the API, this should be set to `api`. enum: - api - automatic - manual example: api status: type: string description: The status of the content import source. A source that is being deleted has the status `deletion_in_progress`. enum: - active - deactivated - deletion_in_progress default: active example: active url: type: string description: The URL of the root of the external source. example: https://help.example.com/ created_at: type: integer format: date-time description: The time when the content import source was created. example: 1672928359 updated_at: type: integer format: date-time description: The time when the content import source was last updated. example: 1672928610 audience_ids: type: array nullable: true items: type: integer description: The unique identifiers for the audiences associated with this content import source. example: - 5678 required: - id - type - url - sync_behavior - status - created_at - updated_at - last_synced_at content_import_sources_list: title: Content Import Sources type: object x-tags: - AI Content description: This will return a list of the content import sources for the App. nullable: false properties: type: type: string description: The type of the object - `list`. enum: - list example: list pages: "$ref": "#/components/schemas/pages_link" total_count: type: integer description: A count of the total number of content import sources, including deleted ones that the list leaves out. example: 1 data: type: array description: An array of Content Import Source objects items: "$ref": "#/components/schemas/content_import_source" content_source: title: Content Source type: object x-tags: - AI Content Source description: The content source used by AI Agent in the conversation. properties: content_type: type: string description: The type of the content source. example: content_snippet enum: - file - article - external_content - content_snippet - workflow_connector_action - internal_article url: type: string description: The internal URL linking to the content source for teammates. example: "/fin-ai-agent/content?content=content_snippet&id=3234924" title: type: string description: The title of the content source. example: My internal content snippet locale: type: string description: The ISO 639 language code of the content source. example: en content_sources_list: title: Content Source List nullable: false properties: type: type: string enum: - content_source.list example: content_source.list total_count: type: integer description: The total number of content sources used by AI Agent in the conversation. example: 1 content_sources: type: array description: The content sources used by AI Agent in the conversation. items: "$ref": "#/components/schemas/content_source" content_snippet: title: Content Snippet type: object x-tags: - Content Snippets description: A content snippet is a reusable piece of content for your AI agent and Copilot. nullable: false properties: type: type: string description: String representing the object's type. Always has the value `content_snippet`. example: content_snippet id: type: string description: The unique identifier for the content snippet. example: '123' title: type: string description: The title of the content snippet. nullable: true example: How to reset your password locale: type: string description: The locale of the content snippet. example: en json_blocks: type: array description: The content blocks that make up the body of the snippet. In responses, the blocks are returned as a JSON-encoded string rather than as an array. items: type: object example: - type: paragraph text: Navigate to Settings > Security > Reset password. body_markdown: type: string nullable: true description: The body of the content snippet in markdown. example: "Navigate to Settings \\> Security \\> Reset password.\n" chatbot_availability: type: integer deprecated: true description: Deprecated. Use ai_chatbot_availability instead. example: 2 copilot_availability: type: integer deprecated: true description: Deprecated. Use ai_copilot_availability instead. example: 2 ai_chatbot_availability: type: boolean description: Whether the content snippet is available for AI Chatbot (Fin). example: true ai_copilot_availability: type: boolean description: Whether the content snippet is available for AI Copilot. example: true ai_sales_agent_availability: type: boolean description: Whether the content snippet is available for AI Sales Agent. example: true created_at: type: integer description: The time the snippet was created as a UNIX timestamp. example: 1663597223 updated_at: type: integer description: The time the snippet was last updated as a UNIX timestamp. example: 1663597223 audience_ids: type: array nullable: true description: >- The list of audience IDs this content snippet is targeted to for Fin AI Agent. Empty array means no audience targeting is set. items: type: integer example: - 1 - 2 content_snippet_list: title: Content Snippet List type: object description: A paginated list of content snippets. nullable: false properties: type: type: string enum: - list example: list data: type: array description: An array of content snippet objects. items: "$ref": "#/components/schemas/content_snippet" total_count: type: integer description: The total number of content snippets. example: 1 page: type: integer description: The current page number. example: 1 per_page: type: integer description: The number of results per page. example: 50 total_pages: type: integer description: The total number of pages. example: 1 content_snippet_create_request: title: Create Content Snippet Request type: object description: The request payload for creating a content snippet. You can provide either `json_blocks` or `body_markdown` for the snippet content — they are mutually exclusive. When `json_blocks` is omitted or `null` and `body_markdown` is omitted or blank, the snippet is created with a single empty paragraph. nullable: false required: - title properties: title: type: string description: The title of the content snippet. The API accepts a missing, `null` or empty title. maxLength: 255 example: How to reset your password json_blocks: type: array description: The content blocks that make up the body of the snippet. Mutually exclusive with `body_markdown`. items: type: object example: - type: paragraph text: Navigate to Settings > Security > Reset password. body_markdown: type: string description: The content of the snippet in markdown. An alternative to `json_blocks` — you can provide content as markdown instead of structured blocks. Mutually exclusive with `json_blocks`. example: "# Hello\n\nSome content.\n" locale: type: string description: The locale of the content snippet. Defaults to `en`. default: en example: en audience_ids: type: array nullable: true description: >- The list of audience IDs to target this content snippet to for Fin AI Agent. Pass an empty array or omit the field for no audience targeting. Unknown audience IDs return a `404` error with no partial commit. items: type: integer example: - 1 - 2 ai_chatbot_availability: type: boolean description: Whether the content snippet should be available for AI Chatbot (Fin). Defaults to true. default: true example: true ai_copilot_availability: type: boolean description: Whether the content snippet should be available for AI Copilot. Defaults to true. default: true example: true ai_sales_agent_availability: type: boolean description: Whether the content snippet should be available for AI Sales Agent. Defaults to true. default: true example: true content_snippet_update_request: title: Update Content Snippet Request type: object description: The request payload for updating a content snippet. All fields are optional — only provided fields will be updated. `json_blocks` and `body_markdown` are mutually exclusive. nullable: false properties: title: type: string description: The title of the content snippet. maxLength: 255 example: How to reset your password json_blocks: type: array description: The content blocks that make up the body of the snippet. Mutually exclusive with `body_markdown`. items: type: object example: - type: paragraph text: Navigate to Settings > Security > Reset password. body_markdown: type: string description: The content of the snippet in markdown. An alternative to `json_blocks` — you can provide content as markdown instead of structured blocks. Mutually exclusive with `json_blocks`. example: "## Updated heading\n\nNew content.\n" locale: type: string description: The locale of the content snippet. example: en audience_ids: type: array nullable: true description: >- The list of audience IDs to target this content snippet to for Fin AI Agent. Omitting the field leaves existing audience memberships unchanged (PATCH semantics). Pass `[]` to clear all audience memberships. Unknown audience IDs return a `404` error with no partial commit. items: type: integer example: - 1 - 2 ai_chatbot_availability: type: boolean description: Whether the content snippet should be available for AI Chatbot (Fin). example: true ai_copilot_availability: type: boolean description: Whether the content snippet should be available for AI Copilot. example: true ai_sales_agent_availability: type: boolean description: Whether the content snippet should be available for AI Sales Agent. example: true dynamic_content: title: Dynamic Content type: object x-tags: - Dynamic Content description: Dynamic content is a reusable piece of content that you can insert into Help Center articles. It holds one variation per locale, and optionally per brand. nullable: false properties: type: type: string description: String representing the object's type. Always has the value `dynamic_content`. example: dynamic_content id: type: string description: The unique identifier for the dynamic content. example: '123' name: type: string description: The name of the dynamic content. Returned HTML-escaped, for example `&` as `&`. example: Support phone number key: type: string description: The identifier that articles use to reference the dynamic content. Derived from the name when the dynamic content is created, and never changes. example: support-phone-number content_type: type: string description: Whether the dynamic content is a short inline value (`inline`) or one or more blocks of content (`block`). enum: - inline - block example: inline default_locale: type: string description: The locale whose variation is used when there's no variation for the requested locale. example: en variations: type: array description: The variations of the dynamic content. items: "$ref": "#/components/schemas/dynamic_content_variation" created_at: type: integer format: date-time description: The time the dynamic content was created as a Unix timestamp. example: 1663597223 updated_at: type: integer format: date-time description: The time the dynamic content was last updated as a Unix timestamp. example: 1663597223 dynamic_content_variation: title: Dynamic Content Variation type: object x-tags: - Dynamic Content description: The value of a dynamic content for one locale, and optionally one brand. nullable: false properties: type: type: string description: String representing the object's type. Always has the value `dynamic_content_variation`. example: dynamic_content_variation id: type: string description: The unique identifier for the variation. example: '456' locale: type: string description: The locale of the variation. example: en brand_id: type: string nullable: true description: The unique identifier for the brand the variation applies to. `null` for a variation that applies to all brands. example: '42' text_content: type: string nullable: true description: The value of an inline variation. `null` for block dynamic content. example: "+1-555-0100" json_blocks: type: array nullable: true description: The content blocks of a block variation. `null` for inline dynamic content. items: type: object example: - type: paragraph text: You can request a refund within 30 days of purchase. intentionally_empty: type: boolean description: Whether the variation is intentionally empty. An intentionally empty variation shows nothing instead of falling back to the default content, and has an empty `text_content` or `json_blocks`. example: false created_at: type: integer format: date-time description: The time the variation was created as a Unix timestamp. example: 1663597223 updated_at: type: integer format: date-time description: The time the variation was last updated as a Unix timestamp. example: 1663597223 dynamic_content_list: title: Dynamic Content List type: object description: A paginated list of dynamic content. nullable: false properties: type: type: string enum: - list example: list data: type: array description: An array of dynamic content objects. items: "$ref": "#/components/schemas/dynamic_content" total_count: type: integer description: The total number of dynamic content. example: 1 page: type: integer description: The current page number. example: 1 per_page: type: integer description: The number of results per page. example: 50 total_pages: type: integer description: The total number of pages. example: 1 dynamic_content_variation_request: title: Dynamic Content Variation Request type: object description: A variation of a dynamic content. Provide `text_content` for inline dynamic content, or `body` for block dynamic content. nullable: false required: - locale properties: locale: type: string description: The locale of the variation. Each locale can appear once per brand. example: en brand_id: type: string nullable: true description: The unique identifier for the brand the variation applies to. Omit for a variation that applies to all brands. example: '42' text_content: type: string description: The value of an inline variation. example: "+1-555-0100" body: type: string description: The content of a block variation in HTML. example: "You can request a refund within 30 days of purchase.
" intentionally_empty: type: boolean description: Set to `true` to make the variation show nothing instead of falling back to the default content. Any `text_content` or `body` sent with it is ignored. default: false example: false dynamic_content_create_request: title: Create Dynamic Content Request type: object description: The request payload for creating dynamic content. nullable: false required: - name - content_type - default_locale - variations properties: name: type: string description: The name of the dynamic content. Must be unique in the workspace. maxLength: 255 example: Support phone number content_type: type: string description: Whether the dynamic content is a short inline value (`inline`) or one or more blocks of content (`block`). Can't be changed later. enum: - inline - block example: inline default_locale: type: string description: The locale whose variation is used when there's no variation for the requested locale. `variations` must include a variation for this locale that applies to all brands. example: en variations: type: array description: The variations of the dynamic content, one per locale and optionally per brand. Set `brand_id` on a variation to override the all-brands value for that brand. At least one is required. minItems: 1 items: "$ref": "#/components/schemas/dynamic_content_variation_request" dynamic_content_update_request: title: Update Dynamic Content Request type: object description: The request payload for updating dynamic content. All fields are optional — only provided fields are updated. nullable: false properties: name: type: string description: The name of the dynamic content. Must be unique in the workspace. Renaming doesn't change the `key`. maxLength: 255 example: Support phone number default_locale: type: string description: The locale whose variation is used when there's no variation for the requested locale. The dynamic content must have a variation for this locale that applies to all brands. example: en variations: type: array description: The full set of variations. Existing variations that aren't included are deleted. minItems: 1 items: "$ref": "#/components/schemas/dynamic_content_variation_request" content_search_article_content_item: title: Content Search Article Content Item type: object description: A single locale variant of a help center article returned from Knowledge Hub search. properties: type: type: string description: Always `article_content`. enum: - article_content example: article_content id: type: string description: The unique identifier of the article content. example: '678' title: type: string description: The localized title of the article. example: Billing FAQ locale: type: string description: The locale of this article content. example: en content_search_article_item: title: Content Search Article Item type: object description: A help center article result from Knowledge Hub search, with one nested `article_content` entry per locale. required: - type properties: type: type: string description: Always `article`. enum: - article example: article id: type: string description: The unique identifier of the article. example: '345' title: type: string description: The article's canonical title. example: Billing FAQ contents: type: array description: One entry per locale of the article. items: "$ref": "#/components/schemas/content_search_article_content_item" content_search_default_item: title: Content Search Default Item type: object description: The flat result shape returned from Knowledge Hub search for content snippets, external pages, uploaded files, and internal articles. required: - type properties: type: type: string description: The kind of content item. enum: - content_snippet - external_content - file_source_content - internal_article example: content_snippet id: type: string description: The unique identifier of the content item. example: '123' title: type: string description: The display title of the content item. example: Billing FAQ content_search_response: title: Content Search Response type: object description: A paginated list of Knowledge Hub content results matching a search query. properties: type: type: string description: Always `list`. enum: - list example: list total_count: type: integer description: Total number of results matching the query. example: 5 pages: type: object description: Pagination metadata, including links to neighbouring pages. properties: type: type: string enum: - pages example: pages page: type: integer description: The current page number. example: 1 per_page: type: integer description: Number of results per page. example: 10 total_pages: type: integer description: Total number of pages of results. example: 1 next: type: string format: uri description: A link to the next page of results. Omitted when on the last page. example: https://api.intercom.io/content/search?query=billing&per_page=10&page=2 prev: type: string format: uri description: A link to the previous page of results. Omitted when on the first page. example: https://api.intercom.io/content/search?query=billing&per_page=10&page=1 data: type: array description: The list of matched content items. Each item's `type` field determines its shape. items: "$ref": "#/components/schemas/content_search_result" content_search_result: title: Content Search Result description: A single search result. The `type` field discriminates between the flat shape used for snippets, external pages, files, and internal articles, and the nested shape used for help center articles. oneOf: - "$ref": "#/components/schemas/content_search_default_item" - "$ref": "#/components/schemas/content_search_article_item" discriminator: propertyName: type mapping: content_snippet: "#/components/schemas/content_search_default_item" external_content: "#/components/schemas/content_search_default_item" file_source_content: "#/components/schemas/content_search_default_item" internal_article: "#/components/schemas/content_search_default_item" article: "#/components/schemas/content_search_article_item" conversation_list_item: title: Conversation List Item type: object x-tags: - Conversations description: The data returned about your conversations when you list or search them. properties: type: type: string description: Always conversation. example: conversation id: type: string description: The id representing the conversation. example: '1295' title: type: string nullable: true description: The title given to the conversation. example: Conversation Title created_at: type: integer format: date-time description: The time the conversation was created. example: 1663597223 updated_at: type: integer format: date-time description: The last time the conversation was updated. example: 1663597260 waiting_since: type: integer format: date-time nullable: true description: The last time a Contact responded to an Admin. In other words, the time a customer started waiting for a response. Set to null if last reply is from an Admin. example: 1663597260 snoozed_until: type: integer format: date-time nullable: true description: If set this is the time in the future when this conversation will be marked as open. i.e. it will be in a snoozed state until this time. i.e. it will be in a snoozed state until this time. example: 1663597260 open: type: boolean description: Indicates whether a conversation is open (true) or closed (false). example: true state: type: string enum: - open - closed - snoozed description: Can be set to "open", "closed" or "snoozed". example: open read: type: boolean description: Indicates whether a conversation has been read. example: true priority: type: string enum: - none - low - medium - high - urgent description: The priority level of the conversation. Returns one of none, low, medium, high, or urgent. example: high admin_assignee_id: type: integer description: The id of the admin assigned to the conversation. If it's not assigned to an admin it will return 0. example: 0 team_assignee_id: type: integer description: The id of the team assigned to the conversation. If it's not assigned to a team it will return 0. example: 5017691 company: "$ref": "#/components/schemas/company" nullable: true description: The company associated with the conversation. tags: "$ref": "#/components/schemas/tags" conversation_rating: "$ref": "#/components/schemas/conversation_rating" source: "$ref": "#/components/schemas/conversation_source" contacts: "$ref": "#/components/schemas/conversation_contacts" teammates: "$ref": "#/components/schemas/conversation_teammates" custom_attributes: "$ref": "#/components/schemas/custom_attributes" first_contact_reply: "$ref": "#/components/schemas/conversation_first_contact_reply" sla_applied: "$ref": "#/components/schemas/sla_applied" statistics: "$ref": "#/components/schemas/conversation_statistics" linked_objects: "$ref": "#/components/schemas/linked_object_list" ai_agent_participated: type: boolean description: Indicates whether the AI Agent participated in the conversation. example: true ai_agent: "$ref": "#/components/schemas/ai_agent" nullable: true sales_agent_participated: type: boolean description: Indicates whether the Sales Agent participated in the conversation. example: false sales_agent: "$ref": "#/components/schemas/sales_agent" nullable: true channel: allOf: - "$ref": "#/components/schemas/conversation_channel" type: object nullable: true description: The channel through which the conversation was initiated and its current channel. topics: type: object description: The topics of the conversation. An empty object when the workspace doesn't use topics. properties: type: type: string description: Always `topic.list`. example: topic.list topics: type: array description: The topics of the conversation. items: type: object properties: type: type: string description: Always `topic`. example: topic id: type: integer description: The id of the topic. example: 4521 name: type: string description: The name of the topic. example: Billing total_count: type: integer description: The number of topics. example: 1 ticket: type: object nullable: true description: The ticket details when the conversation is a ticket. `null` for any other conversation. properties: type: type: string description: Always `ticket`. example: ticket id: type: integer description: The id of the ticket's conversation. example: 1295 url: type: string description: The link to the ticket in the inbox. example: https://app.intercom.com/a/apps/abcd1234/conversations/1295 custom_attributes: type: object description: The ticket's attributes, keyed by attribute name. additionalProperties: type: object properties: value: description: The value of the attribute. anyOf: - type: string nullable: true - type: number - type: boolean - type: array items: type: integer - "$ref": "#/components/schemas/file_attribute" type: type: string description: The data type of the attribute. example: string state: type: string description: The current state of the ticket. example: submitted ticket_type: type: string description: The name of the ticket type. example: Bug report ticket_type_description: type: string description: The description of the ticket type. example: Something is broken ticket_type_emoji: type: string nullable: true description: The emoji of the ticket type. example: "\U0001F41B" ticket_custom_state_admin_label: type: string nullable: true description: The label of the ticket's state as teammates see it. example: Submitted ticket_custom_state_user_label: type: string nullable: true description: The label of the ticket's state as the customer sees it. example: Received external_references: type: array description: References linking this conversation to records in an external helpdesk or CRM system. Populated for Fin Standalone workspaces synced from an external platform; an empty array otherwise. Sorted alphabetically by `type` and capped at 20 entries. items: "$ref": "#/components/schemas/conversation_external_reference" example: - type: zendesk_ticket id: '3633338' - type: zendesk_sunshine_conversation id: abc-def-uuid monitor_evaluations: type: array description: The latest QA monitor evaluation for each monitor that has evaluated this conversation, whatever its result. Only included when `include_monitors=true` is passed as a query parameter. items: "$ref": "#/components/schemas/conversation_monitor_evaluation" scorecards: type: array description: QA scorecard results for this conversation. Only included when `include_scorecards=true` is passed as a query parameter. items: "$ref": "#/components/schemas/conversation_scorecard" conversation: title: Conversation type: object x-tags: - Conversations description: Conversations are how you can communicate with users in Intercom. They are created when a contact replies to an outbound message, or when one admin directly sends a message to a single contact. properties: type: type: string description: Always conversation. example: conversation id: type: string description: The id representing the conversation. example: '1295' title: type: string nullable: true description: The title given to the conversation. example: Conversation Title created_at: type: integer format: date-time description: The time the conversation was created. example: 1663597223 updated_at: type: integer format: date-time description: The last time the conversation was updated. example: 1663597260 waiting_since: type: integer format: date-time nullable: true description: The last time a Contact responded to an Admin. In other words, the time a customer started waiting for a response. Set to null if last reply is from an Admin. example: 1663597260 snoozed_until: type: integer format: date-time nullable: true description: If set this is the time in the future when this conversation will be marked as open. i.e. it will be in a snoozed state until this time. i.e. it will be in a snoozed state until this time. example: 1663597260 open: type: boolean description: Indicates whether a conversation is open (true) or closed (false). example: true state: type: string enum: - open - closed - snoozed description: Can be set to "open", "closed" or "snoozed". example: open read: type: boolean description: Indicates whether a conversation has been read. example: true priority: type: string enum: - none - low - medium - high - urgent description: The priority level of the conversation. Returns one of none, low, medium, high, or urgent. example: high admin_assignee_id: type: integer description: The id of the admin assigned to the conversation. If it's not assigned to an admin it will return 0. example: 0 team_assignee_id: type: integer description: The id of the team assigned to the conversation. If it's not assigned to a team it will return 0. example: 5017691 company: "$ref": "#/components/schemas/company" nullable: true description: The company associated with the conversation. tags: "$ref": "#/components/schemas/tags" conversation_rating: "$ref": "#/components/schemas/conversation_rating" source: "$ref": "#/components/schemas/conversation_source" contacts: "$ref": "#/components/schemas/conversation_contacts" teammates: "$ref": "#/components/schemas/conversation_teammates" custom_attributes: "$ref": "#/components/schemas/custom_attributes" first_contact_reply: "$ref": "#/components/schemas/conversation_first_contact_reply" sla_applied: "$ref": "#/components/schemas/sla_applied" statistics: "$ref": "#/components/schemas/conversation_statistics" conversation_parts: "$ref": "#/components/schemas/conversation_parts" linked_objects: "$ref": "#/components/schemas/linked_object_list" ai_agent_participated: type: boolean description: Indicates whether the AI Agent participated in the conversation. example: true ai_agent: "$ref": "#/components/schemas/ai_agent" nullable: true sales_agent_participated: type: boolean description: Indicates whether the Sales Agent participated in the conversation. example: false sales_agent: "$ref": "#/components/schemas/sales_agent" nullable: true channel: allOf: - "$ref": "#/components/schemas/conversation_channel" type: object nullable: true description: The channel through which the conversation was initiated and its current channel. external_references: type: array description: References linking this conversation to records in an external helpdesk or CRM system. Populated for Fin Standalone workspaces synced from an external platform; an empty array otherwise. Sorted alphabetically by `type` and capped at 20 entries. items: "$ref": "#/components/schemas/conversation_external_reference" example: - type: zendesk_ticket id: '3633338' - type: zendesk_sunshine_conversation id: abc-def-uuid monitor_evaluations: type: array description: The latest QA monitor evaluation for each monitor that has evaluated this conversation, whatever its result. Only included when `include_monitors=true` is passed as a query parameter. items: "$ref": "#/components/schemas/conversation_monitor_evaluation" scorecards: type: array description: QA scorecard results for this conversation. Only included when `include_scorecards=true` is passed as a query parameter. items: "$ref": "#/components/schemas/conversation_scorecard" conversation_attachment_files: title: Conversation attachment files type: object description: Properties of the attachment files in a conversation part properties: content_type: type: string description: The content type of the file example: application/json data: type: string description: The base64 encoded file data. example: ewogICJ0ZXN0IjogMQp9 name: type: string description: The name of the file. example: test.json conversation_channel: title: Conversation Channel type: object description: The channel through which a conversation was originally initiated and its current channel. properties: initial: type: string nullable: true description: The channel through which the conversation was originally initiated. Possible values include `messenger`, `zendesk_sunshine`, `zendesk_ticket`, `twitter`, `email`. Returns `null` if channel data is unavailable. example: messenger current: type: string nullable: true description: The current channel of the conversation. May differ from `initial` if the conversation was migrated between channels. Returns `null` if channel data is unavailable. example: messenger conversation_external_reference: title: Conversation External Reference type: object description: A reference linking a conversation to a record in an external helpdesk or CRM system, surfaced for Fin Standalone workspaces. properties: type: type: string description: The type of external system the reference points to. Possible values include `zendesk_ticket`, `zendesk_sunshine_conversation`, `salesforce_case`, `salesforce_in_app_message_conversation`, `freshdesk_ticket`, `freshchat_conversation`, `hubspot_conversation`, `custom_helpdesk_conversation`, `api_conversation`. example: zendesk_ticket id: type: string description: The identifier of the record in the external system. Always serialized as a string, since some external IDs exceed 32-bit integer range. example: '3633338' conversation_monitor_evaluation: title: Conversation Monitor Evaluation type: object x-tags: - Conversations description: A QA monitor evaluation of this conversation. Returned in the `monitor_evaluations` array on conversation responses when `include_monitors=true` is passed. properties: monitor_id: type: string description: The unique identifier of the monitor that produced this evaluation. example: '12345' monitor_name: type: string nullable: true description: The name of the monitor at the time of evaluation. Null if the monitor has since been deleted. example: Customer complaint handling monitor_type: type: string nullable: true description: The type of the monitor. Null if the monitor has since been deleted. example: prompt result: type: string description: "The evaluation outcome reported by the monitor: `included` (the conversation matches the monitor's criteria), `excluded`, `error` or `awaiting_async_data`." example: included explanation: type: string nullable: true description: The reasoning provided by the monitor for its result. May be null if no reasoning was generated. example: The customer mentioned wanting a refund without resolution. evaluated_at: type: integer format: date-time nullable: true description: The time the monitor evaluated this conversation. Null in the rare case the underlying record's timestamp is not yet set. example: 1719493065 conversation_scorecard: title: Conversation Scorecard type: object x-tags: - Conversations description: A QA scorecard result for this conversation. Returned in the `scorecards` array on conversation responses when `include_scorecards=true` is passed. properties: scorecard_id: type: string description: The unique identifier of the scorecard definition. example: '67890' name: type: string description: The name of the scorecard. example: Standard QA Review scorecard_type: type: string description: The type of scorecard. example: human passed: type: boolean nullable: true description: Whether the conversation passed the scorecard. Null when the scorecard has not been scored. example: true score: type: number nullable: true description: The numeric score for the scorecard. Null when the scorecard has not been scored. example: 0.85 ai_score: type: number nullable: true description: The numeric score produced by AI evaluation, if applicable. Null when not AI-scored. example: 0.9 evaluated_at: type: integer format: date-time nullable: true description: The time the scorecard was last evaluated. Null in the rare case the underlying record's timestamp is not yet set. example: 1719493065 reviewed_teammate: "$ref": "#/components/schemas/conversation_scorecard_reviewed_teammate" reviewer: "$ref": "#/components/schemas/conversation_scorecard_reviewer" review_status: type: string nullable: true enum: - unreviewed - submitted - passed_review - needs_fix - wont_fix - fix_complete description: The status of the review of this scorecard, as shown in the QA reviews list in Intercom. `unreviewed` while the review is waiting for a reviewer's verdict; `submitted` once the review has been submitted; `passed_review`, `needs_fix`, `wont_fix` or `fix_complete` when a teammate set a specific outcome. Null when no review exists for this scorecard. example: submitted submitted_by: "$ref": "#/components/schemas/conversation_scorecard_submitted_by" revised_by: "$ref": "#/components/schemas/conversation_scorecard_revised_by" notes: type: array description: The notes teammates left on the QA review linked to this scorecard entry. Empty when the scorecard has no linked review. example: - id: '9001' created_at: 1734537900 updated_at: 1734537900 author: type: admin admin_id: '884120017' body: Great empathy in the second reply. items: "$ref": "#/components/schemas/conversation_scorecard_note" evaluators: type: array description: Per-evaluator results within this scorecard. items: "$ref": "#/components/schemas/conversation_scorecard_evaluator" conversation_scorecard_reviewer: title: Reviewer type: object nullable: true x-tags: - Conversations description: Who the review of this scorecard is assigned to. `ai` when it is assigned to Fin; `admin` when it is assigned to a teammate. Null when no review exists for this scorecard or the review is unassigned. properties: type: type: string enum: - ai - admin description: The kind of reviewer. `ai` if the review is assigned to Fin; `admin` if it is assigned to a teammate. example: admin admin_id: type: string nullable: true description: The id of the admin the review is assigned to. Present only when `type` is `admin`. example: '884120017' conversation_scorecard_submitted_by: title: Submitted By type: object nullable: true x-tags: - Conversations description: Who last submitted the review of this scorecard, which can differ from the `reviewer` it is assigned to. `ai` when Fin submitted it; `admin` when a teammate did. Null while the review is unreviewed or when no review exists for this scorecard. properties: type: type: string enum: - ai - admin description: The kind of submitter. `ai` if Fin submitted the review; `admin` if a teammate did. example: admin admin_id: type: string nullable: true description: The id of the admin who submitted the review. Present only when `type` is `admin`. example: '884120017' conversation_scorecard_revised_by: title: Revised By type: object nullable: true x-tags: - Conversations description: Who last changed the review of this scorecard after it was submitted. `ai` when Fin made the change; `admin` when a teammate did. Null while the review is unreviewed, when it has not been changed since it was submitted, or when no review exists for this scorecard. properties: type: type: string enum: - ai - admin description: The kind of reviser. `ai` if Fin changed the review; `admin` if a teammate did. example: admin admin_id: type: string nullable: true description: The id of the admin who last changed the review. Present only when `type` is `admin`. example: '884120017' conversation_scorecard_note: title: Scorecard Note type: object x-tags: - Conversations description: A note a teammate left on the QA review of this scorecard. properties: id: type: string description: The id of the note. example: '9001' created_at: type: integer format: date-time description: The time the note was created. example: 1734537900 updated_at: type: integer format: date-time description: The time the note was last edited. Equal to `created_at` when the note has never been edited. example: 1734537900 author: "$ref": "#/components/schemas/conversation_scorecard_note_author" body: type: string description: The text of the note exactly as the teammate entered it. Plain text; it is not rendered as HTML. example: Great empathy in the second reply. conversation_scorecard_note_author: title: Note Author type: object nullable: true x-tags: - Conversations description: Who wrote the note. Null when the teammate who wrote it has since been deleted. properties: type: type: string enum: - ai - admin description: The kind of author. `admin` when a teammate wrote the note; `ai` when Fin did. example: admin admin_id: type: string nullable: true description: The id of the admin who wrote the note. Present only when `type` is `admin`. example: '884120017' conversation_scorecard_reviewed_teammate: title: Reviewed Teammate type: object x-tags: - Conversations description: The teammate (or AI agent) whose handling of the conversation was reviewed by this scorecard. properties: type: type: string enum: - ai - admin description: The kind of reviewee. `ai` if the conversation was handled by Fin or scored without a specific teammate; `admin` if a specific teammate was reviewed. example: admin admin_id: type: string nullable: true description: The id of the admin who was reviewed. Present only when `type` is `admin`. example: '991267715' conversation_scorecard_evaluator: title: Conversation Scorecard Evaluator type: object x-tags: - Conversations description: A single evaluator within a scorecard, including its result for this conversation. properties: evaluator_id: type: string description: The unique identifier of the evaluator (criterion) within the scorecard. example: '54321' name: type: string nullable: true description: The name of the evaluator (criterion). Null if the evaluator's name could not be resolved. example: Tone of voice result: allOf: - "$ref": "#/components/schemas/conversation_scorecard_evaluator_result" nullable: true description: The evaluator's result for this conversation. Null if the evaluator was not scored. conversation_scorecard_evaluator_result: title: Conversation Scorecard Evaluator Result type: object x-tags: - Conversations description: The outcome of a single evaluator within a scorecard. properties: value: type: string nullable: true description: The evaluator's selected value (typically a label such as `pass`, `fail`, or a category identifier). example: pass value_label: type: string description: The label of the rating option matching `value` (for example `Needs improvement`). Omitted when the label could not be resolved. example: Pass source: type: string nullable: true description: The origin of the result (for example, `ai` or `human`). example: ai reasoning: type: string nullable: true description: A free-text explanation of the result. example: The agent acknowledged the issue and resolved it within the same response. reasons: type: array description: The structured reasons chosen for this result. Omitted when none were chosen. items: "$ref": "#/components/schemas/conversation_scorecard_evaluator_reason" example: - name: Clear and concise - name: Empathetic tone other_text: type: string nullable: true description: Free-text entered by the reviewer to supplement or stand in for the structured `reasons` — typically captured when the reviewer selects an "Other" option or adds a custom note. Null when not provided. example: Agent acknowledged the issue but missed the follow-up question about billing. conversation_scorecard_evaluator_reason: title: Evaluator Reason type: object x-tags: - Conversations description: A single structured reason assigned to an evaluator's result. properties: name: type: string nullable: true description: The name of the reason. Null if the reason's name could not be resolved. example: Clear and concise conversation_contacts: title: Contacts type: object description: The list of contacts (users or leads) involved in this conversation. This will only contain one customer unless more were added via the group conversation feature. properties: type: type: string description: '' enum: - contact.list example: contact.list contacts: type: array description: The list of contacts (users or leads) involved in this conversation. This will only contain one customer unless more were added via the group conversation feature. items: "$ref": "#/components/schemas/contact_reference" conversation_deleted: title: Conversation Deleted type: object description: deleted conversation object properties: id: type: string description: The unique identifier for the conversation. example: 5ba682d23d7cf92bef87bfd4 object: type: string description: "`conversation`, or `ticket` when the deleted item is a ticket." enum: - conversation - ticket example: conversation deleted: type: boolean description: Whether the conversation is deleted or not. example: true deleted_conversation_item: title: Conversation type: object x-tags: - Conversation description: A deleted conversation record containing its ID, metrics retained status and deletion timestamp. properties: type: type: string description: String representing the object's type. Always has the value `conversation`. example: 'conversation' id: type: string description: The ID of the deleted conversation. example: '512' metrics_retained: type: boolean description: Whether reporting metrics are retained for this conversation ID example: true deleted_at: type: integer format: date-time description: The time when the conversation was deleted. example: 1734537745 create_conversation_stream_token_request: title: Create conversation stream token request type: object required: - external_id properties: external_id: type: string description: The external ID of the contact to issue a token for. example: contact-1234 conversation_stream_token: title: Conversation stream token type: object x-tags: - Conversations description: A token that lets a contact's client subscribe to a realtime stream of their conversation events. properties: type: type: string description: String representing the object's type. Always has the value `conversation_stream_token`. enum: - conversation_stream_token example: conversation_stream_token expires_at: type: integer format: date-time description: The time the token expires, as a UNIX timestamp. example: 1731241200 stream: type: object description: What the client needs to connect to the stream. properties: provider: type: string description: The realtime provider that delivers the stream. example: ably url: type: string description: The host to connect to. example: main.realtime.ably.net channel: type: string description: The channel to subscribe to. example: conversation_stream:abc123:6710a1b2c3d4e5f6a7b8c9d0 token: type: string description: The token to connect with. example: "Okay!
" created_at: type: integer format: date-time description: The time the conversation part was created. example: 1663597223 updated_at: type: integer format: date-time description: The last time the conversation part was updated. example: 1663597260 notified_at: type: integer format: date-time description: The time the user was notified with the conversation part. example: 1663597260 user_ip: type: string nullable: true description: The IP address of the end user who authored this conversation part, when available. Null otherwise, including for parts not authored by an end user. example: 203.0.113.42 assigned_to: "$ref": "#/components/schemas/reference" nullable: true description: The assignee this conversation_part assigned the conversation to, as a reference whose `type` is `admin`, `team` or `bot`. When the part unassigned the conversation, `type` is `nobody_admin` and `id` is `null`. Null when the part did not change the assignment, or when the assignee has since been deleted. admin_assignee_id: type: integer nullable: true description: The id of the teammate that this conversation_part assigned the conversation to, or 0 if the part removed the teammate. Null or absent when the part did not change the teammate, including an unassignment that did not name which assignee it cleared. A bot is reported here, because assignment treats anything that is not a team as a teammate. example: 991267715 team_assignee_id: type: integer nullable: true description: The id of the team that this conversation_part assigned the conversation to, or 0 if the part removed the team. Null or absent when the part did not change the team, including an unassignment that did not name which assignee it cleared. A part can assign a team and a teammate at the same time, for example when the team uses Round Robin distribution and the teammate is resolved inline. In that case assigned_to reports only the teammate, and these two fields report each assignee separately. example: 5017691 author: "$ref": "#/components/schemas/conversation_part_author" attachments: title: Conversation part attachments type: array description: A list of attachments for the part. items: "$ref": "#/components/schemas/part_attachment" external_id: type: string nullable: true description: The external id of the conversation part example: abcd1234 redacted: type: boolean description: Whether or not the conversation part has been redacted. example: false receipts: type: object nullable: true description: What happened to this part for each recipient it was sent to. Null when delivery receipts have not been recorded for this part. properties: overall_state: type: string description: The state of the part across all recipients. The worst recipient state wins, except `partially_sent`, which means some recipients have it and others do not. enum: - failed_to_send - sending - sent - seen - partially_sent example: sent recipients: type: array description: One entry per recipient the part was sent to, in send order. items: type: object properties: participant_id: type: string description: The id of the recipient, a contact id or an admin id. example: 6762f0dd1bb69f9f2193bb83 participant_type: type: string description: Whether the recipient is a contact (`user`) or a teammate (`admin`). enum: - user - admin example: user state: type: string description: The delivery state for this recipient. enum: - sending - sent - seen - failed_to_send example: sent channel: type: string description: The channel the part was sent on. example: email state_updated_at: type: integer format: date-time description: The time the state last changed, as a UTC Unix timestamp. example: 1663597223 error_code: type: string nullable: true description: The reason Intercom could not send to this recipient, when it could not. Null otherwise. enum: - email_address_ignored - user_suppressed - user_marked_as_spam - user_mailbox_full_suppressed - user_bounced - user_not_contactable - banned_domain - reply_to_sender_only - suppress_cc_emails - unverified_cc_recipient - null example: user_bounced address: type: string nullable: true description: The email address the part was sent to, for contact recipients. Null for teammates or when it is not known. example: joe@example.com email_message_metadata: "$ref": "#/components/schemas/email_message_metadata" nullable: true metadata: "$ref": "#/components/schemas/conversation_part_metadata" nullable: true state: type: string enum: - open - closed - snoozed description: Indicates the current state of conversation when the conversation part was created. example: open tags: type: array description: A list of tags objects associated with the conversation part. items: "$ref": "#/components/schemas/tag_basic" nullable: true event_details: "$ref": "#/components/schemas/event_details" nullable: true app_package_code: type: string nullable: true example: "test-integration" description: The app package code if this part was created via API. null if the part was not created via API. translations: type: object nullable: true description: >- A map of the reply text keyed by locale code. Backs the `conversation.admin.replied.translated` webhook topic. `original` holds the locale code the reply was written in, when it is known; every other key holds the reply translated into that locale. properties: original: type: string description: The locale code identifying the language the reply was originally written in. example: en additionalProperties: type: string example: original: en en: 'Hello
' fr: 'Bonjour
' conversation_part_author: title: Conversation part author type: object description: The object who initiated the conversation, which can be a Contact, Admin or Team. Bots and campaigns send messages on behalf of Admins or Teams. For Twitter, this will be blank. properties: type: type: string description: The type of the author example: admin id: type: string description: The id of the author example: '274' name: type: string nullable: true description: The name of the author. `null` if the author is a contact that has since been archived or deleted. example: Operator email: type: string format: email nullable: true description: The email of the author. `null` if the author is a contact that has since been archived or deleted. example: operator+abcd1234@intercom.io from_ai_agent: type: boolean description: If this conversation part was sent by the AI Agent example: true is_ai_answer: type: boolean description: If this conversation part body was generated by the AI Agent example: false conversation_parts: title: Conversation Parts type: object description: A list of Conversation Part objects for each part message in the conversation. This is only returned when Retrieving a Conversation, and ignored when Listing all Conversations. There is a limit of 500 parts. properties: type: type: string description: '' enum: - conversation_part.list example: conversation_part.list conversation_parts: title: Conversation Parts type: array description: A list of Conversation Part objects for each part message in the conversation. This is only returned when Retrieving a Conversation, and ignored when Listing all Conversations. There is a limit of 500 parts. items: "$ref": "#/components/schemas/conversation_part" total_count: type: integer description: A count of the conversation parts in this response, after any `include_part_types` or `exclude_part_types` filter has been applied. When paginating, this is the number of parts on the current page. This is not the conversation's total part count. example: 1 pages: allOf: - "$ref": "#/components/schemas/pages_link" type: object description: Pagination details for the conversation parts. Only returned when the `page` query parameter is sent. `next` is null on the last page. conversation_part_metadata: title: Conversation Part Metadata description: Metadata for a conversation part type: object properties: quick_reply_options: type: array description: The quick reply options sent by the Admin or bot, presented in this conversation part. items: allOf: - "$ref": "#/components/schemas/quick_reply_option" properties: translations: type: object nullable: true description: The translations for the quick reply option. example: { "en": "Hello", "fr": "Bonjour" } quick_reply_option_uuid: type: string format: uuid description: The unique identifier for the quick reply option that was clicked by the end user. example: '123e4567-e89b-12d3-a456-426614174000' conversation_rating: title: Conversation Rating type: object nullable: true description: The Conversation Rating object which contains information on the rating and/or remark added by a Contact and the Admin assigned to the conversation. properties: rating: type: integer description: The rating, between 1 and 5, for the conversation. example: 5 remark: type: string description: An optional field to add a remark to correspond to the number rating example: '' created_at: type: integer format: date-time description: The time the rating was requested in the conversation being rated. example: 1671028894 updated_at: type: integer format: date-time description: The time the rating was last updated. example: 1671028894 contact: "$ref": "#/components/schemas/contact_reference" teammate: title: Conversation Rating Teammate type: object nullable: true description: The teammate, bot or workflow the rating is attributed to. properties: type: type: string enum: - admin - team - bot - workflow description: The type of the rated actor. `workflow` when a workflow requested the rating and no teammate took part. example: admin id: type: string description: The unique identifier for the rated actor. example: '123' conversation_response_time: title: Conversation response time type: object description: Details of first response time of assigned team in seconds. properties: team_id: type: integer description: Id of the assigned team. example: 100 team_name: type: string description: Name of the assigned Team, null if team does not exist, Unassigned if no team is assigned. example: Team One response_time: type: integer description: First response time of assigned team in seconds. example: 2310 rate_conversation_request: title: Rate conversation request type: object required: - intercom_user_id - rating properties: intercom_user_id: type: string description: The unique identifier for the contact the rating request was sent to. example: 6541f0a2c3d4e5f607182930 rating: type: integer minimum: 1 maximum: 5 description: The rating, from 1 to 5. example: 4 remark: type: string description: Free text from the contact to go with the rating. example: Fast and friendly rated_conversation: title: Rated conversation type: object x-tags: - Conversations description: The CSAT rating recorded on a conversation. properties: type: type: string description: String representing the object's type. Always has the value `conversation_rating`. enum: - conversation_rating example: conversation_rating conversation_id: type: string description: The unique identifier for the conversation. example: '215471234567890' rating: type: integer description: The rating, from 1 to 5. example: 4 remark: type: string nullable: true description: The free text left with the rating. example: Fast and friendly created_at: type: integer format: date-time description: The time the rating request was created, as a UNIX timestamp. example: 1793664000 updated_at: type: integer format: date-time description: The time the rating or remark last changed, as a UNIX timestamp. example: 1793664120 customer: type: object description: The contact who answered. properties: type: type: string description: The type of contact. enum: - user - lead - visitor example: user id: type: string description: The unique identifier for the contact. example: 6541f0a2c3d4e5f607182930 teammate: type: object description: Who was rated. properties: type: type: string description: "`admin` for a teammate, `bot` for Fin, or `workflow` for a workflow." enum: - admin - bot - workflow example: admin id: type: string description: The unique identifier for the teammate, Fin or workflow. For a deleted workflow, this is the identifier recorded with the rating. example: '12345' conversation_source: title: Conversation source type: object description: The type of the conversation part that started this conversation. Can be Contact, Admin, Campaign, Automated or Operator initiated. properties: type: type: string description: The origin of this conversation. example: email id: type: string nullable: true description: The id of the source message. example: '3' delivered_as: type: string description: How the conversation was initiated. example: operator_initiated user_ip: type: string nullable: true description: The IP address of the end user who opened this conversation, when available. Null otherwise, including when the conversation was not opened by an end user. example: 203.0.113.42 recipients: type: array nullable: true description: The recipients of the source message. Only present for email conversations. items: type: object properties: type: type: string description: The recipient type. One of `to`, `cc`, or `bcc`. example: to email: type: string format: email description: The recipient email address. example: user@example.com drop_reason: type: string nullable: true description: The reason this recipient was dropped, if applicable. example: reply_to: type: array nullable: true description: The Reply-To header addresses of the source message, where a reply will be routed. Can differ from the sender's From address. Only present for email conversations. items: type: object properties: email: type: string format: email description: The Reply-To email address. example: replies@example.com name: type: string nullable: true description: The display name associated with the Reply-To address. example: Support Team subject: type: string description: Optional. The message subject. For Twitter, this will show a generic message regarding why the subject is obscured. In webhook payloads for API version 2.15+, this field returns plain text. example: '' body: type: string description: The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured. In webhook payloads for API version 2.15+, this field returns plain text. example: "Hey there!
" author: "$ref": "#/components/schemas/conversation_source_author" attachments: type: array description: A list of attachments for the part. items: "$ref": "#/components/schemas/part_attachment" url: type: string nullable: true description: The URL where the conversation was started. For Twitter, Email, and Bots, this will be blank. example: redacted: type: boolean description: Whether or not the source message has been redacted. Only applicable for contact initiated messages. example: false email_message_metadata: "$ref": "#/components/schemas/source_email_message_metadata" conversation_source_author: title: Conversation source author type: object description: The author who started the conversation. Can be a Contact, Admin, or Bot. properties: type: type: string description: The type of the author. example: admin id: type: string nullable: true description: The id of the author. example: '274' name: type: string nullable: true description: The name of the author. example: Jane Doe email: type: string format: email nullable: true description: The email of the author. example: jane.doe@example.com source_email_message_metadata: title: Email Message Metadata type: object description: Contains metadata if the message was sent as an email properties: message_id: type: string nullable: true description: The unique identifier for the email message as specified in the Message-ID header example: "Previous thread
` tags are kept as blank paragraphs instead of being dropped. example: "
This is the body in html
" body_markdown: type: string description: The content of the article in markdown. For multilingual articles, this will be the body of the default language's content. An alternative to `body` — you can provide content as markdown instead of HTML. Mutually exclusive with `body`. example: "# Hello\n\nA paragraph with **bold** text.\n" author_id: type: integer description: The id of the author of the article. For multilingual articles, this will be the id of the author of the default language's content. Must be a teammate on the help center's workspace. Required unless an `author_id` is provided in `translated_content` under the workspace's default Help Center locale. example: 1295 state: type: string description: Whether the article will be `published` or will be a `draft`. Defaults to draft. For multilingual articles, this will be the state of the default language's content. enum: - published - draft example: draft parent_id: type: integer description: The id of the article's parent collection or section. An article without this field stands alone. example: 18 parent_ids: type: array description: The ids of the parent collections to place this article in. Send an empty array to leave the article without a collection. When provided, this takes precedence over `parent_id`. items: type: integer example: - 18 - 19 locale: type: string description: The locale of the article's default content, for example `en`. Defaults to the locale of the help center that the parent collection belongs to when `parent_id` is sent, and otherwise to the default Help Center locale. Must be a locale supported by the workspace's Help Center. example: en translated_content: description: Content for other locales, keyed by locale code. Content for the article's default locale can also be given here instead of at the top level. If it is given in both places, the values must match. "$ref": "#/components/schemas/article_translated_content" folder_id: type: integer nullable: true description: The ID of the folder to place this article in, or null to leave it without a folder. example: 6 audience_ids: type: array nullable: true description: >- The list of audience IDs to assign to this article for Fin AI Agent targeting. Sending a top-level `audience_ids` broadcasts the same set to every locale. For per-locale targeting, use `translated_content.This is the body in html
" body_markdown: type: string description: The content of the article in markdown. An alternative to `body` — you can provide content as markdown instead of HTML. Mutually exclusive with `body` and `json_blocks`. example: "# Internal Guide\n\nSome instructions.\n" json_blocks: type: array description: The content of the article as a list of content blocks. Used only when `body` is not provided. Cannot be combined with `body_markdown`. items: type: object locale: type: string description: The locale of the article. Defaults to `en`. example: en author_id: type: integer description: The id of the author of the article. example: 1295 owner_id: type: integer description: The id of the owner of the article. example: 1295 folder_id: type: integer nullable: true description: The ID of the folder to place this article in. Pass `null` to leave it without a folder. example: 6 audience_ids: type: array nullable: true description: >- The list of audience IDs to target this internal article to for Fin AI Agent. Pass an empty array or omit the field for no audience targeting. Unknown audience IDs return a `404` error with no partial commit. items: type: integer example: - 1 - 2 ai_chatbot_availability: type: boolean description: Whether the internal article should be available for AI Chatbot (Fin). Defaults to false. default: false example: true ai_copilot_availability: type: boolean description: Whether the internal article should be available for AI Copilot. Defaults to false. default: false example: true ai_sales_agent_availability: type: boolean description: Whether the internal article should be available for AI Sales Agent. Defaults to false. default: false example: true required: - title - owner_id - author_id create_collection_request: description: You can create a collection type: object title: Create Collection Request Payload properties: name: type: string description: The name of the collection. For multilingual collections, this will be the name of the default language's content. Required unless a name is provided in `translated_content` under the workspace's default Help Center locale. example: collection 51 description: type: string description: The description of the collection. For multilingual collections, this will be the description of the default language's content. example: English description icon: type: string description: The icon of the collection, for example `book-bookmark`. Defaults to `book-bookmark`. example: book-bookmark translated_content: nullable: true "$ref": "#/components/schemas/group_translated_content" parent_id: type: string nullable: true description: The id of the parent collection. If `null` then it will be created as the first level collection. example: '6871118' help_center_id: type: integer nullable: true description: The id of the help center where the collection will be created. If `null` then it will be created in the default help center. example: '123' create_contact_request: description: Payload to create a contact type: object title: Create Contact Request Payload properties: role: type: string description: The role of the contact. `lead` creates a lead; any other value creates a user. example: user external_id: type: string description: A unique identifier for the contact which is given to Intercom example: "625e90fc55ab113b6d92175f" email_verified: type: boolean nullable: true description: |- Whether the contact has proved they own this email address, for example through a confirmation link or one-time code you sent. Send it together with `email`. `email_verified` without `email` is rejected. Changing a contact's email resets it to not verified. Intercom reuses leads with a verified email when an inbound email, conversation or ticket matches the address. example: true email: type: string description: The contacts email example: jdoe@example.com phone: type: string nullable: true description: The contacts phone example: "+353871234567" name: type: string nullable: true description: The contacts name example: John Doe avatar: type: string nullable: true description: An image URL containing the avatar of a contact example: https://www.example.com/avatar_image.jpg signed_up_at: type: integer format: date-time nullable: true description: (Unix timestamp in seconds) The time specified for when a contact signed up. example: 1571672154 last_seen_at: type: integer format: date-time nullable: true description: (Unix timestamp in seconds) The time when the contact was last seen (either where the Intercom Messenger was installed or when specified manually). example: 1571672154 owner_id: type: string nullable: true description: The id of an admin that has been assigned account ownership of the contact example: "321" unsubscribed_from_emails: type: boolean nullable: true description: Whether the contact is unsubscribed from emails example: true sms_consent: type: boolean description: Whether the contact has consented to receive SMS messages. example: false unsubscribed_from_sms: type: boolean description: Whether the contact is unsubscribed from SMS messages. example: false language_override: type: string nullable: true description: A preferred language setting for the contact, used by the Intercom Messenger even if their browser settings change. example: en custom_attributes: type: object nullable: true description: The custom attributes which are set for the contact example: paid_subscriber: true monthly_spend: 155.5 team_mates: 1 anyOf: - required: - email title: Create contact with email - required: - external_id title: Create contact with external_id - required: - role title: Create contact with role create_content_import_source_request: title: Create Content Import Source Payload type: object description: You can add an Content Import Source to your Fin Content Library. nullable: false properties: sync_behavior: type: string description: If you intend to create or update External Pages via the API, this should be set to `api`. enum: - api example: api status: type: string description: The status of the content import source. enum: - active - deactivated default: active example: active url: type: string description: The URL of the content import source. It must be an http or https URL whose host is a valid public domain name. example: https://help.example.com audience_ids: nullable: true description: The unique identifiers for the audiences to associate with this content import source. Can be a single integer or an array of integers. example: - 5678 oneOf: - type: integer - type: array items: type: integer required: - sync_behavior - url create_conversation_request: description: Conversations are how you can communicate with users in Intercom. They are created when a contact replies to an outbound message, or when one admin directly sends a message to a single contact. type: object title: Create Conversation Request Payload properties: from: type: object properties: type: type: string enum: - lead - user description: The role associated to the contact - user or lead. example: user id: type: string description: The identifier for the contact which is given by Intercom. Provide one of `id`, `user_id` or `email`. If you send more than one, `id` is used first, then `user_id`. minLength: 24 maxLength: 24 example: 536e564f316c83104c000020 user_id: type: string description: The external identifier you gave the user. Matches users only; for a lead, use `id` or `email`. example: '25' email: type: string description: The contact's email. Matches a user or a lead, depending on `type`. Used only when `user_id` isn't sent. If several leads share the email and it's the only identifier sent, the request fails with `multiple_users`; use `id` instead. example: joe@example.com required: - type body: type: string description: The content of the message. HTML is not supported. example: Hello subject: type: string description: The title of the email. Only applicable if the message type is email. example: Thanks for everything attachment_urls: type: array description: A list of image URLs that will be added as attachments. You can include up to 10 URLs. items: type: string format: uri maxItems: 10 created_at: type: integer format: date-time description: The time the conversation was created as a UTC Unix timestamp. If not provided, the current time will be used. This field is only recommneded for migrating past conversations from another source into Intercom. example: 1671028894 brand_id: type: string description: The unique identifier of the brand to associate with this conversation. example: "123" required: - from - body create_data_attribute_request: description: '' type: object title: Create Data Attribute Request properties: name: type: string description: The name of the data attribute. example: My Data Attribute model: type: string description: The model that the data attribute belongs to. enum: - contact - company example: contact description: type: string description: The readable description you see in the UI for the attribute. example: My Data Attribute Description messenger_writable: type: boolean description: Can this attribute be updated by the Messenger example: false required: - name - model - data_type oneOf: - properties: data_type: enum: - options options: type: array description: Array of objects representing the options of the list, with `value` as the key and the option as the value. At least two options are required. items: type: object properties: value: type: string example: - value: 1-10 - value: 11-50 required: - options title: 'list attribute' - properties: data_type: enum: - string - integer - float - boolean - date title: 'other type' create_data_event_request: description: '' type: object title: Create Data Event Request properties: event_name: type: string description: The name of the event that occurred. This is presented to your App's admins when filtering and creating segments - a good event name is typically a past tense 'verb-noun' combination, to improve readability, for example `updated-plan`. example: invited-friend created_at: type: integer format: date-time description: The time the event occurred as a UTC Unix timestamp example: 1671028894 user_id: type: string description: Your identifier for the user. example: '314159' id: type: string description: The unique identifier for the contact (lead or user) which is given by Intercom. example: 8a88a590-e1c3-41e2-a502-e0649dbf721c email: type: string description: An email address for your user. An email should only be used where your application uses email to uniquely identify users. example: frodo.baggins@example.com metadata: type: object description: Optional metadata about the event. Values can be a string, a number, a boolean, or an object holding a rich link (`url` and `value`) or a monetary amount (`amount` and `currency`). additionalProperties: anyOf: - type: string - type: integer - type: number - type: boolean - type: object example: invite_code: ADDAFRIEND anyOf: - title: id required required: - event_name - created_at - id - title: user_id required required: - event_name - created_at - user_id - title: email required required: - event_name - created_at - email create_data_event_summaries_request: description: You can send a list of event summaries for a user. Each event summary should contain the event name, the time the event occurred, and the number of times the event occurred. The event name should be a past tense "verb-noun" combination, to improve readability, for example `updated-plan`. type: object title: Create Data Event Summaries Request anyOf: - title: id required required: - id - title: user_id required required: - user_id - title: email required required: - email properties: user_id: type: string description: Your identifier for the user. example: '314159' id: type: string description: The Intercom defined id of the user. Takes precedence over `user_id` and `email`. example: 63a0979a5eeebeaf28dd56ba email: type: string description: The user's email address. Only used when neither `id` nor `user_id` is supplied. example: frodo.baggins@example.com event_summaries: type: array description: A list of event summaries for the user. Each event summary should contain the event name, the time the event occurred, and the number of times the event occurred. The event name should be a past tense 'verb-noun' combination, to improve readability, for example `updated-plan`. items: type: object required: - event_name - count - first - last properties: event_name: type: string description: The name of the event that occurred. A good event name is typically a past tense 'verb-noun' combination, to improve readability, for example `updated-plan`. example: invited-friend count: type: integer description: The number of times the event occurred. example: 1 first: type: integer format: date-time description: The first time the event was sent example: 1671028894 last: type: integer format: date-time description: The last time the event was sent example: 1671028894 required: - event_summaries create_data_exports_request: description: Request for creating a data export type: object title: Create Data Export Request properties: created_at_after: type: integer description: The start date that you request data for. It must be formatted as a unix timestamp. example: 1527811200 created_at_before: type: integer description: The end date that you request data for. It must be formatted as a unix timestamp. example: 1527811200 required: - created_at_after - created_at_before create_external_page_request: title: Create External Page Payload type: object description: You can add an External Page to your Fin Content Library. nullable: false properties: title: type: string description: The title of the external page. example: Getting started with... html: type: string description: The body of the external page in HTML. example: "Hello world!
" url: type: string description: The URL of the external page. This will be used by Fin to link end users to the page it based its answer on. When a URL is not present, Fin will not reference the source. example: https://help.example.com/en/articles/1234-getting-started ai_agent_availability: type: boolean description: Whether the external page should be used to answer questions by AI Agent. Will not default when updating an existing external page. default: false example: true ai_copilot_availability: type: boolean description: Whether the external page should be used to answer questions by AI Copilot. Will not default when updating an existing external page. default: false example: true ai_sales_agent_availability: type: boolean description: Whether the external page should be used to answer questions by AI Sales Agent. Will not default when updating an existing external page. default: false example: true locale: type: string description: The language code of the external page, for example `en` or `fr`. It must be a language supported by the workspace. example: en source_id: type: integer description: The unique identifier for the source of the external page which was given by Intercom. Every external page must be associated with a Content Import Source which represents the place it comes from and from which it inherits a default audience (configured in the UI). For a new source, make a POST request to the Content Import Source endpoint and an ID for the source will be returned in the response. example: 1234 external_id: type: string description: The identifier for the external page which was given by the source. Must be unique for the source. example: '5678' audience_ids: type: array nullable: true description: >- The list of audience IDs to target this external page to for Fin AI Agent. Omitting the field keeps the default audience inherited from the source. Pass `[]` to clear all audience memberships, including the inherited ones. If an external page already exists with the specified source_id and external_id, omitting the field leaves its audience memberships unchanged. Unknown audience IDs return a `404` error. items: type: integer example: - 1 - 2 required: - title - html - locale - source_id - external_id create_message_request: description: You can create a message type: object title: Create Message Request Payload nullable: true properties: message_type: type: string description: 'The kind of message being created. Values: `in_app`, `email` or `whatsapp`. `inapp` is also accepted for in-app messages, and responses always show in-app messages as `inapp`.' enum: - in_app - inapp - email - whatsapp example: in_app subject: type: string description: The title of the email. example: Thanks for everything body: type: string description: The content of the message. HTML and plaintext are supported. example: Hello there template: type: string description: For `email` messages, the style of the outgoing message. Possible values `plain` or `personal`. For `whatsapp` messages, the name of the WhatsApp message template to send. A template that doesn't exist returns a `400` error. example: plain from: type: object description: The sender of the message. Required. A request without `from` returns a `400` error. properties: type: type: string description: Always `admin`. enum: - admin example: admin id: type: integer description: The identifier for the admin which is given by Intercom. example: 394051 whatsapp_number: type: string description: For `whatsapp` messages, the WhatsApp number of your workspace to send from, in international format. If you leave it out, a WhatsApp number in your workspace that has the template is used. A number that isn't valid, or isn't registered in your workspace, returns a `400` error. example: "+14155550123" required: - type - id to: oneOf: - $ref: '#/components/schemas/recipient' - type: array description: The recipients of the message. Not accepted for `whatsapp` messages, which take a single recipient. An array returns a `400` error. items: $ref: '#/components/schemas/recipient' example: - type: user id: 536e564f316c83104c000020 - type: lead id: 536e564f316c83104c000021 - type: object title: WhatsApp recipient description: The recipient of a `whatsapp` message, identified by phone number. Required form for `whatsapp` messages. A contact is created for the number if there isn't one. Only `phone` and `name` are used. Other keys are ignored. properties: phone: type: string description: The recipient's phone number, in international format. example: "+5547999998888" name: type: string description: The name to give the contact if one is created. example: John Doe required: - phone cc: oneOf: - $ref: '#/components/schemas/recipient' - type: array description: The CC recipients of the message. items: $ref: '#/components/schemas/recipient' example: - type: user id: 536e564f316c83104c000023 bcc: oneOf: - $ref: '#/components/schemas/recipient' - type: array description: The BCC recipients of the message. items: $ref: '#/components/schemas/recipient' example: - type: user id: 536e564f316c83104c000022 created_at: type: integer description: The time the message was created. If not provided, the current time will be used. example: 1590000000 create_conversation_without_contact_reply: type: boolean description: Whether a conversation should be opened in the inbox for the message without the contact replying. Defaults to false if not provided. For `whatsapp` messages, a conversation is always opened and this field is ignored. default: false example: true components: type: array description: The components of the WhatsApp template, with the values for its variables. Required for `whatsapp` messages. items: type: object additionalProperties: true example: - type: BODY parameters: - type: text text: Username 123 locale: type: string description: The locale of the WhatsApp template to send, such as `en`. If you leave it out, the contact's messenger locale is used, then the workspace locale. A template that isn't available in the locale returns a `400` error. example: en brand_id: type: string description: The id of the brand to send the message from. Not used for `whatsapp` messages. A brand that doesn't exist returns a `400` error. example: '1234' anyOf: - title: 'message_type: `email`.' required: - message_type - subject - body - template - from - to - title: 'message_type: `inapp`.' required: - message_type - body - from - to - title: 'message_type: `whatsapp`.' required: - message_type - template - components - from - to recipient: type: object title: Recipient description: A recipient of a message properties: type: type: string description: The role associated to the contact - `user` or `lead`. enum: - user - lead example: user id: type: string description: The identifier for the contact which is given by Intercom. example: 536e564f316c83104c000020 required: - type - id create_or_update_company_request: type: object title: Create Or Update Company Request Payload description: You can create or update a Company. Send either `company_id` or `id`; a request with neither returns a `400` error. nullable: true properties: name: type: string description: The name of the Company. Leading and trailing whitespace is removed. example: Intercom company_id: type: string description: The company id you have defined for the company. Can't be updated example: 625e90fc55ab113b6d92175f id: type: string description: An alternative name for `company_id`. Supply this or `company_id`. example: 625e90fc55ab113b6d92175f plan: type: string description: The name of the plan you have associated with the company. example: Enterprise size: type: integer description: The number of employees in this company. example: 100 website: type: string description: The URL for this company's website. Please note that the value specified here is not validated. Accepts any string. example: https://www.example.com industry: type: string description: The industry that this company operates in. example: Manufacturing custom_attributes: type: object description: Values for custom attributes that already exist in your workspace. Each value can be a string, integer, number, boolean or null. Arrays and objects aren't accepted. additionalProperties: anyOf: - type: string nullable: true - type: integer - type: number - type: boolean example: paid_subscriber: true monthly_spend: 155.5 team_mates: 9 remote_created_at: type: integer description: The time the company was created by you. example: 1394531169 update_last_request_at: type: boolean description: Set to true to update the company's last seen time to now. example: true monthly_spend: type: integer description: How much revenue the company generates for your business. Floats are truncated to whole integers, so 155.98 is stored as 155. A value above 2147483647 (2**31-1) is stored as 0. 2147483647 itself, or a value of -2147483648 or below, returns a `422` error. example: 1000 update_company_request: type: object title: Update Company Request Payload description: You can update a Company nullable: true properties: name: type: string description: The name of the Company. Leading and trailing whitespace is removed. example: Intercom update_last_request_at: type: boolean description: Set to true to update the company's last seen time to now. example: true plan: type: string description: The name of the plan you have associated with the company. example: Enterprise size: type: integer description: The number of employees in this company. example: 100 website: type: string description: The URL for this company's website. Please note that the value specified here is not validated. Accepts any string. example: https://www.example.com industry: type: string description: The industry that this company operates in. example: Manufacturing custom_attributes: type: object description: Values for custom attributes that already exist in your workspace. Each value can be a string, integer, number, boolean or null. Arrays and objects aren't accepted. additionalProperties: anyOf: - type: string nullable: true - type: integer - type: number - type: boolean example: paid_subscriber: true monthly_spend: 155.5 team_mates: 9 remote_created_at: type: integer description: The time the company was created by you. example: 1394531169 monthly_spend: type: integer description: How much revenue the company generates for your business. Floats are truncated to whole integers, so 155.98 is stored as 155. A value above 2147483647 (2**31-1) is stored as 0. 2147483647 itself, or a value of -2147483648 or below, returns a `422` error. example: 1000 create_or_update_custom_object_instance_request: description: Payload to create or update a Custom Object instance type: object title: Create Or Update Custom Object Instance Request Payload properties: external_id: type: string description: A unique identifier for the Custom Object instance in the external system it originated from. The value `reference_not_found` is reserved and is rejected with a `400`. Omitting this field creates a new instance on every request instead of updating an existing one. external_created_at: type: integer format: date-time nullable: true description: The time when the Custom Object instance was created in the external system it originated from. A value that cannot be read as a time is stored as `null` rather than rejected. example: 1571672154 external_updated_at: type: integer format: date-time nullable: true description: The time when the Custom Object instance was last updated in the external system it originated from. A value that cannot be read as a time is stored as `null` rather than rejected. example: 1571672154 custom_attributes: type: object nullable: true description: |- The custom attributes which are set for the Custom Object instance. Each value must match the type of the attribute it is set on: a string, integer, number or boolean, a Unix timestamp or date string for a datetime attribute, or `null` to clear the attribute. A list attribute takes the label or id of one of its options; a value that matches no option clears the attribute rather than being rejected. A reference attribute takes the Intercom id of the record it points at, or an array of ids for a reference to several records; an id that matches no record is skipped. additionalProperties: anyOf: - type: string nullable: true - type: integer - type: number - type: boolean - type: array items: type: string example: order_number: ORDER-12345 total_amount: 99.99 create_or_update_tag_request: description: You can create or update an existing tag, and optionally apply it to a list of contact or company ids. type: object title: Create or Update Tag Request Payload properties: name: type: string maxLength: 191 description: The name of the tag, which will be created if not found, or the new name for the tag if this is an update request. Names are case insensitive and can be at most 191 characters long. Creating a tag with a longer name returns a 400. When updating by `id`, a longer name or one that another tag already has returns 200 with the new name, but the tag keeps its old name. example: Independent id: type: string description: The id of tag to updates. example: '656452352' ids_to_add: type: array description: The Intercom ids of the contacts or companies to apply the tag to. A contact id that does not exist returns a 404; a company id that does not exist is skipped. A 404 still leaves the tag created or renamed. The `users` and `companies` arrays in the response are always empty when this field is used. items: type: string example: - 536e564f316c83104c000020 taggable_type: type: string description: Whether the ids in `ids_to_add` are contacts or companies. Defaults to `user`. enum: - user - company example: user required: - name create_phone_switch_request: description: You can create an phone switch type: object title: Create Phone Switch Request Payload nullable: true properties: phone: type: string description: Phone number in E.164 format, that will receive the SMS to continue the conversation in the Messenger. example: "+1 1234567890" custom_attributes: type: object description: Custom attributes to add to the user or lead's custom data attributes. Values are strings. Numbers and booleans are converted to strings. An empty string, or any array or object value, returns a `422` error with the key `context`. A `null` value is ignored. additionalProperties: oneOf: - type: string nullable: true - type: number - type: boolean example: issue_type: Billing priority: High body: type: string description: The text of the contact's first message. When you send it, a conversation is created straight away with this text as its first message. example: I need help with my invoice send_notification: type: boolean default: true description: Whether to send the SMS with the link to the Messenger. When `false`, no SMS is sent. example: true user_input_phone: type: string nullable: true description: The phone number as the contact typed it, in national format. When sent with `country`, used in place of `phone` to read the number. `phone` is still required. example: "087 234 5678" country: type: string nullable: true description: The two-letter country code used to read `user_input_phone`. When `country` is `US`, Intercom also looks up the carrier to detect landlines. example: IE required: - phone create_ticket_reply_with_comment_request: title: Create Ticket Reply Request Payload oneOf: - "$ref": "#/components/schemas/contact_reply_ticket_request" - "$ref": "#/components/schemas/admin_reply_ticket_request" create_ticket_request: description: You can create a Ticket type: object title: Create Ticket Request Payload properties: ticket_type_id: type: string description: The ID of the type of ticket you want to create example: '1234' contacts: type: array description: The list of contacts (users or leads) affected by this ticket. Currently only one is allowed. Required for Customer and Back-office ticket types, and optional for Tracker ticket types. items: type: object oneOf: - title: ID properties: id: type: string description: The identifier for the contact as given by Intercom. required: - id - title: External ID properties: external_id: type: string description: The external_id you have defined for the contact who is being added as a participant. required: - external_id - title: Email properties: email: type: string description: The email you have defined for the contact who is being added as a participant. If a contact with this email does not exist, one will be created. required: - email example: - id: '1234' conversation_to_link_id: type: string description: "The ID of the conversation you want to link to the ticket. Here are the valid ways of linking two tickets:\n - conversation | back-office ticket\n - customer tickets | non-shared back-office ticket\n - conversation | tracker ticket\n - customer ticket | tracker ticket" example: '1234' company_id: type: string description: The ID of the company that the ticket is associated with. The unique identifier for the company which is given by Intercom example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 created_at: type: integer description: The time the ticket was created. If not provided, the current time will be used. example: 1590000000 ticket_attributes: "$ref": "#/components/schemas/ticket_request_custom_attributes" assignment: type: object properties: admin_assignee_id: type: string description: The ID of the admin to which the ticket is assigned. If not provided, the ticket will be unassigned. example: '123' team_assignee_id: type: string description: The ID of the team to which the ticket is assigned. If not provided, the ticket will be unassigned. example: '8' channel: type: string description: The channel for the ticket. Only supported for customer ticket types. Defaults to messenger if not provided. enum: - email example: email required: - ticket_type_id create_ticket_type_attribute_request: description: You can create a Ticket Type Attribute type: object title: Create Ticket Type Attribute Request Payload properties: name: type: string description: The name of the ticket type attribute example: Bug Priority description: type: string description: The description of the attribute presented to the teammate or contact example: Priority level of the bug data_type: type: string description: The data type of the attribute enum: - string - list - integer - decimal - boolean - datetime - files example: string required_to_create: type: boolean description: Whether the attribute is required to be filled in when teammates are creating the ticket in Inbox. default: false example: false required_to_create_for_contacts: type: boolean description: Whether the attribute is required to be filled in when contacts are creating the ticket in Messenger. default: false example: false visible_on_create: type: boolean description: Whether the attribute is visible to teammates when creating a ticket in Inbox. default: true example: true visible_to_contacts: type: boolean description: Whether the attribute is visible to contacts when creating a ticket in Messenger. default: true example: true multiline: type: boolean description: Whether the attribute allows multiple lines of text (only applicable to string attributes) example: false list_items: type: string description: A comma delimited list of items for the attribute value (only applicable to list attributes) example: Low Priority,Medium Priority,High Priority allow_multiple_values: type: boolean description: Whether the attribute allows multiple files to be attached to it (only applicable to file attributes) example: false required: - name - data_type create_ticket_type_request: description: | The request payload for creating a ticket type. You can copy the `icon` property for your ticket type from [Twemoji Cheatsheet](https://twemoji-cheatsheet.vercel.app/) type: object title: Create Ticket Type Request Payload nullable: true properties: name: type: string description: The name of the ticket type. example: Bug description: type: string description: The description of the ticket type. example: Used for tracking bugs category: type: string description: Category of the Ticket Type. enum: - Customer - Back-office - Tracker example: Customer icon: type: string description: The icon of the ticket type. example: "\U0001F41E" default: "\U0001F39F️" is_internal: type: boolean description: Whether the tickets associated with this ticket type are intended for internal use only or will be shared with customers. This is currently a limited attribute. example: false default: false required: - name - category cursor_pages: title: Cursor based pages type: object description: | Cursor-based pagination is a technique used in the Intercom API to navigate through large amounts of data. A "cursor" or pointer is used to keep track of the current position in the result set, allowing the API to return the data in small chunks or "pages" as needed. nullable: true properties: type: type: string description: the type of object `pages`. example: pages enum: - pages page: type: integer description: The current page example: 1 next: type: object nullable: true description: Fetch the next page by sending this `starting_after` cursor. Omitted on the last page. properties: page: type: integer description: The number of the next page example: 2 starting_after: type: string description: The cursor to send in the next request to get the next page of results. example: your-cursor-from-response per_page: type: integer description: Number of results per page example: 2 total_pages: type: integer description: Total number of pages example: 13 call: title: Call type: object x-tags: - Calls description: Represents a phone call in Intercom properties: type: type: string description: String representing the object's type. Always has the value `call`. example: call id: type: string description: The id of the call. example: "123" conversation_id: type: string nullable: true description: The id of the conversation associated with the call, if any. example: "456" admin_id: type: string nullable: true description: The id of the admin associated with the call, if any. example: "789" contact_id: type: string nullable: true description: The id of the contact associated with the call, if any. example: "6762f0dd1bb69f9f2193bb83" state: type: string description: The current state of the call. example: ended initiated_at: "$ref": "#/components/schemas/datetime" answered_at: "$ref": "#/components/schemas/datetime" ended_at: "$ref": "#/components/schemas/datetime" created_at: "$ref": "#/components/schemas/datetime" updated_at: "$ref": "#/components/schemas/datetime" recording_url: type: string format: uri nullable: true description: API URL to download or redirect to the call recording if available. example: "https://api.intercom.io/calls/123/recording" transcription_url: type: string format: uri nullable: true description: API URL to download or redirect to the call transcript if available. example: "https://api.intercom.io/calls/123/transcript" call_type: type: string description: The type of call. example: phone direction: type: string description: The direction of the call. example: outbound ended_reason: type: string nullable: true description: The reason for the call end, if applicable. example: missed phone: type: string nullable: true description: The phone number involved in the call, in E.164 format. example: "+15551234567" fin_recording_url: type: string format: uri nullable: true description: API URL to the AI Agent (Fin) call recording if available. fin_transcription_url: type: string format: uri nullable: true description: API URL to the AI Agent (Fin) call transcript if available. duration: type: integer nullable: true description: Total call duration in seconds from the caller's perspective. For inbound calls, measured from initiated to ended. For outbound calls, measured from answered to ended. Null until the call ends, and for outbound calls that were never answered. example: 900 talk_time: type: integer nullable: true description: Total time in seconds the agent and customer were connected. example: 300 queue_time: type: integer nullable: true description: Total time in seconds the caller waited in queue before connecting, when assigned to a team. example: 45 hold_time: type: integer nullable: true description: Total time in seconds the caller was placed on hold during the call. example: 60 call_list: title: Calls type: object description: A paginated list of calls. properties: type: type: string description: String representing the object's type. Always has the value `list`. example: list data: type: array description: A list of calls. items: "$ref": "#/components/schemas/call" total_count: type: integer description: Total number of items available. example: 0 pages: "$ref": "#/components/schemas/pages_link" call_transcript_turn: title: Call Transcript Turn type: object x-tags: - Calls description: A single turn in a call transcript. properties: start_time: oneOf: - type: string - type: number description: The start time of the turn, as a seconds offset from the start of the call. A string on calls transcribed by Amazon Transcribe, a number on Fin Voice calls. example: "0.0" end_time: oneOf: - type: string - type: number description: The end time of the turn, as a seconds offset from the start of the call. A string on calls transcribed by Amazon Transcribe, a number on Fin Voice calls. example: "3.00" speaker_label: type: string description: The diarization label for the speaker. example: "Teammate 1" speaker: type: string description: The diarization label for the speaker. Same value as `speaker_label`. example: "Teammate 1" content: type: string description: The transcribed text spoken during this turn. example: Hello, thanks for calling. How can I help today? speaker_type: type: string description: The type of the speaker - either `admin` for a teammate or `user` for a contact. Absent on Fin Voice call transcripts and on calls transcribed before speaker attribution shipped, where only `speaker_label` identifies the speaker. example: admin speaker_id: type: string description: The id of the teammate or contact who is the speaker. `-1` when the teammate who spoke has since been deleted, in which case `speaker_name` is `Deleted teammate`. example: "789" speaker_name: type: string description: The resolved display name of the speaker. A contact who has been merged into another resolves to the name on the surviving record. Omitted when the speaker cannot be resolved or has no name, for example a contact whose record was scrambled by a GDPR deletion request. Clients should fall back to `speaker_label` when this is absent. example: Jane Doe article_sources: type: array description: Sources Fin cited during this turn. Only present on Fin Voice call transcripts. example: - title: Password Reset Guide entity_type: 120 entity_id: "8185560" items: type: object properties: title: type: string description: The title of the cited source. example: Password Reset Guide entity_type: type: integer description: The type of the cited entity. example: 120 entity_id: type: string description: The id of the cited entity. example: "8185560" triggered_guidance: type: array description: Guidance rules that Fin matched during this turn. Only present on Fin Voice call transcripts. example: - match_type: clarification rule_id: "3" rule_text: If the customer asks about pricing, ask which plan they're interested in before answering items: type: object properties: match_type: type: string description: How the rule was matched. example: clarification rule_id: type: string description: The id of the matched guidance rule. example: "3" rule_text: type: string description: The text of the matched guidance rule. example: If the customer asks about pricing, ask which plan they're interested in before answering ai_topic_subtopic: title: AI Topic and Subtopic type: object description: >- A single AI-generated topic and subtopic classification for a conversation. Surfaced inside `custom_attributes` under the "AI Topic and Subtopic" key as an array of these objects. Requires the AI add-on; the key is omitted when the conversation has no classification. properties: topic_name: type: string description: The name of the AI-generated topic. example: Billing subtopic_name: type: string nullable: true description: The name of the AI-generated subtopic, if any. example: Payment Issues id: type: integer nullable: true description: The id of the subtopic. example: 42 cx_score_reason: title: CX Score reason type: object description: >- A single reason behind a conversation's CX Score. Surfaced inside `custom_attributes` under the "CX Score reasons" key as an array of these objects. properties: name: type: string description: The name of the reason. example: Resolution speed value: type: string description: The value recorded for the reason. example: Fast custom_attributes: title: Custom Attributes type: object description: >- An object containing the custom attributes on a conversation as key-value pairs. For relationship attributes the value is a list of custom object instance models. System-defined attributes such as "AI Topic and Subtopic", "CX Score rating", "CX Score explanation" and "CX Score reasons" may also be included. properties: "AI Topic and Subtopic": type: array readOnly: true description: >- Read-only AI Insights classification of the conversation. Present only with the AI add-on; omitted when the conversation has no classification. example: - topic_name: Billing subtopic_name: Payment Issues id: 42 items: "$ref": "#/components/schemas/ai_topic_subtopic" "CX Score reasons": type: array readOnly: true description: >- Read-only reasons behind the conversation's CX Score. Intercom generates this attribute, so it cannot be set. Omitted when the conversation has no CX Score reasons. example: - name: Resolution speed value: Fast items: "$ref": "#/components/schemas/cx_score_reason" additionalProperties: anyOf: - type: string - type: integer - type: number - type: boolean - $ref: "#/components/schemas/datetime" - "$ref": "#/components/schemas/custom_object_instance_list" example: paid_subscriber: true monthly_spend: 155.5 team_mates: 9 start_date_iso8601: "2023-03-04T09:46:14Z" end_date_timestamp: 1677923174 CX Score rating: 4 CX Score explanation: The conversation was resolved quickly and the customer expressed satisfaction with the outcome. AI Topic and Subtopic: - topic_name: Billing subtopic_name: Payment Issues id: 42 CX Score reasons: - name: Resolution speed value: Fast custom_attributes_request: title: Custom Attributes (write) type: object description: The custom attributes which are set on this object, as key-value pairs. For relationship attributes the value should be a list of custom object instance models. Only attributes a caller may set should be sent here — attributes Intercom generates are returned in responses only. additionalProperties: anyOf: - type: string - type: integer - type: number - type: boolean - $ref: "#/components/schemas/datetime" - "$ref": "#/components/schemas/custom_object_instance_list" example: paid_subscriber: true monthly_spend: 155.5 team_mates: 9 start_date_iso8601: "2023-03-04T09:46:14Z" end_date_timestamp: 1677923174 custom_object_instance: title: Custom Object Instance type: object x-tags: - Custom Object Instances nullable: true description: A Custom Object Instance represents an instance of a custom object type. This allows you to create and set custom attributes to store data about your customers that is not already captured by Intercom. The parent object includes recommended default attributes and you can add your own custom attributes. properties: id: type: string description: The Intercom defined id representing the custom object instance. example: 16032025 external_id: type: string description: The id you have defined for the custom object instance. example: 0001d1c1e65a7a19e9f59ae2 external_created_at: type: integer format: date-time nullable: true description: The time when the Custom Object instance was created in the external system it originated from. example: 1571672154 external_updated_at: type: integer format: date-time nullable: true description: The time when the Custom Object instance was last updated in the external system it originated from. example: 1571672154 created_at: type: integer format: date-time description: The time the attribute was created as a UTC Unix timestamp example: 1671028894 updated_at: type: integer format: date-time description: The time the attribute was last updated as a UTC Unix timestamp example: 1671028894 type: type: string description: The identifier of the custom object type that defines the structure of the custom object instance. example: Order custom_attributes: type: object description: |- The custom attributes you have set on the custom object instance. Each value is returned with the type of the attribute it is set on: a string, integer, number or boolean, or `null` when the attribute is unset. A list attribute returns the label of the selected option. A reference attribute returns an object holding the referenced records, under `contacts` for a contact reference, `conversations` for a conversation reference, or `instances` for a reference to another custom object type. additionalProperties: anyOf: - type: string nullable: true - type: integer - type: number - type: boolean - type: object example: order_number: ORDER-12345 total_amount: 99.99 custom_object_instance_deleted: title: Custom Object Instance Deleted type: object description: deleted custom object instance object properties: object: type: string description: The unique identifier of the Custom Object type that defines the structure of the Custom Object instance. example: Order id: type: string description: The Intercom defined id representing the Custom Object instance. example: '123' deleted: type: boolean description: Whether the Custom Object instance is deleted or not. example: true custom_object_instance_list: title: Custom Object Instances type: object description: The list of associated custom object instances for a given reference attribute on the parent object. properties: type: type: string example: order.list instances: type: array description: The list of associated custom object instances for a given reference attribute on the parent object. items: "$ref": "#/components/schemas/custom_object_instance" custom_object_instance_not_found: title: Custom Object Instance Not Found type: object description: Returned with HTTP 200 (not 404) when the custom object type exists but no instance matches the requested id or external_id. required: - found properties: found: type: boolean description: Always `false`. Only present on this response. example: false id: type: string nullable: true description: The requested id, echoed back. Null when looked up by `external_id`. external_id: type: string nullable: true description: The requested external_id, echoed back. Null when looked up by `id`. type: type: string description: The identifier of the custom object type that was queried. example: Order custom_attributes: type: object description: Always an empty object. external_created_at: type: integer nullable: true external_updated_at: type: integer nullable: true created_at: type: integer nullable: true updated_at: type: integer nullable: true custom_object_instances_paginated_list: title: Custom Object Instances type: object x-tags: - Custom Object Instances description: A paginated list of custom object instances. nullable: false properties: type: type: string description: The type of the object - `list`. enum: - list example: list pages: "$ref": "#/components/schemas/pages_link" total_count: type: integer description: A count of the total number of custom object instances. example: 2 data: type: array description: An array of Custom Object Instance objects. items: "$ref": "#/components/schemas/custom_object_instance" customer_request: type: object nullable: true oneOf: - title: Intercom User ID properties: intercom_user_id: type: string description: The identifier for the contact as given by Intercom. example: 6329bd9ffe4e2e91dac76188 required: - intercom_user_id - title: User ID properties: user_id: type: string description: The external_id you have defined for the contact who is being added as a participant. example: 2e91dac761886329bd9ffe4e required: - user_id - title: Email properties: email: type: string description: The email you have defined for the contact who is being added as a participant. example: sam.sung@example.com required: - email data_attribute: title: Data Attribute type: object x-tags: - Data Attributes description: Data Attributes are metadata used to describe your contact and company models. These include standard and custom attributes. By using the data attributes endpoint, you can get the global list of attributes for your workspace, as well as create and archive custom attributes. properties: type: type: string description: Value is `data_attribute`. enum: - data_attribute example: data_attribute id: type: integer description: The unique identifier for the data attribute which is given by Intercom. Only available for custom attributes. example: 12878 model: type: string description: Value is `contact` for user/lead attributes and `company` for company attributes. enum: - contact - company example: contact name: type: string description: Name of the attribute. example: paid_subscriber full_name: type: string description: Full name of the attribute. Should match the name unless it's a nested attribute. We can split full_name on `.` to access nested user object values. example: custom_attributes.paid_subscriber label: type: string description: Readable name of the attribute (i.e. name you see in the UI) example: Paid Subscriber description: type: string description: Readable description of the attribute. example: Whether the user is a paid subscriber. data_type: type: string description: The data type of the attribute. A list attribute created with the `options` data type is returned as `string`, with its choices in `options`. `relationship` is a reference to a custom object. enum: - string - integer - float - boolean - date - datetime - relationship example: boolean options: type: array description: List of predefined options for attribute value. items: type: string example: - 'true' - 'false' api_writable: type: boolean description: Can this attribute be updated through API example: true messenger_writable: type: boolean description: Can this attribute be updated by the Messenger example: false ui_writable: type: boolean description: Can this attribute be updated in the UI example: true custom: type: boolean description: Set to true if this is a CDA example: true archived: type: boolean description: Is this attribute archived. (Only applicable to CDAs) example: false created_at: type: integer format: date-time description: The time the attribute was created as a UTC Unix timestamp example: 1671028894 updated_at: type: integer format: date-time description: The time the attribute was last updated as a UTC Unix timestamp example: 1671028894 admin_id: type: string description: Teammate who created the attribute. Only applicable to CDAs example: '5712945' data_attribute_list: title: Data Attribute List type: object description: A list of all data attributes belonging to a workspace for contacts or companies. properties: type: type: string description: The type of the object enum: - list example: list data: type: array description: A list of data attributes items: "$ref": "#/components/schemas/data_attribute" conversation_attribute_base: title: Conversation Attribute Base type: object properties: type: type: string description: "Value is `conversation_attribute`." enum: - conversation_attribute example: conversation_attribute id: type: integer description: The unique identifier for the conversation attribute. example: 8 name: type: string description: Name of the attribute. example: api_test_attr description: type: string description: Readable description of the attribute. example: Created via API test data_type: type: string description: "The data type of the attribute. Allowed types: string, integer, list, decimal, boolean, datetime, relationship, files." enum: - string - integer - list - decimal - boolean - datetime - relationship - files example: string required: type: boolean description: Whether this attribute is required. example: false visible_to_team_ids: type: array description: Team IDs that can see this attribute. Empty array means all teams. items: type: string example: [] archived: type: boolean description: Whether this attribute is archived. example: false created_at: type: integer format: date-time description: The time the attribute was created as a UTC Unix timestamp. example: 1778239701 updated_at: type: integer format: date-time description: The time the attribute was last updated as a UTC Unix timestamp. example: 1778239701 admin_id: type: string nullable: true description: ID of the admin who created the attribute, or `null` if there isn't one. example: '16' conversation_attribute_string_type: title: Conversation Attribute (String) allOf: - "$ref": "#/components/schemas/conversation_attribute_base" - type: object properties: data_type: type: string enum: - string multiline: type: boolean description: Whether this string attribute is multiline. example: false conversation_attribute_integer_type: title: Conversation Attribute (Integer) allOf: - "$ref": "#/components/schemas/conversation_attribute_base" - type: object properties: data_type: type: string enum: - integer conversation_attribute_list_type: title: Conversation Attribute (List) allOf: - "$ref": "#/components/schemas/conversation_attribute_base" - type: object properties: data_type: type: string enum: - list options: type: array description: Predefined options for this attribute. Each option has a unique UUID used to identify it in the options management endpoints. items: "$ref": "#/components/schemas/conversation_attribute_option" conversation_attribute_decimal_type: title: Conversation Attribute (Decimal) allOf: - "$ref": "#/components/schemas/conversation_attribute_base" - type: object properties: data_type: type: string enum: - decimal conversation_attribute_boolean_type: title: Conversation Attribute (Boolean) allOf: - "$ref": "#/components/schemas/conversation_attribute_base" - type: object properties: data_type: type: string enum: - boolean conversation_attribute_datetime_type: title: Conversation Attribute (Datetime) allOf: - "$ref": "#/components/schemas/conversation_attribute_base" - type: object properties: data_type: type: string enum: - datetime conversation_attribute_relationship_type: title: Conversation Attribute (Relationship) allOf: - "$ref": "#/components/schemas/conversation_attribute_base" - type: object properties: data_type: type: string enum: - relationship reference: type: object description: Reference configuration for related objects. properties: type: type: string description: "The cardinality of the relationship: `one` or `many`." enum: - one - many example: many object_type_id: type: string description: The ID of the related custom object type. example: Test_Object conversation_attribute_files_type: title: Conversation Attribute (Files) allOf: - "$ref": "#/components/schemas/conversation_attribute_base" - type: object properties: data_type: type: string enum: - files conversation_attribute: title: Conversation Attribute x-tags: - Conversations Attributes description: "Conversation Attributes represent custom metadata fields for conversations. They support type-specific properties: strings (multiline), lists (options), and relationships (reference)." discriminator: propertyName: data_type mapping: string: "#/components/schemas/conversation_attribute_string_type" integer: "#/components/schemas/conversation_attribute_integer_type" list: "#/components/schemas/conversation_attribute_list_type" decimal: "#/components/schemas/conversation_attribute_decimal_type" boolean: "#/components/schemas/conversation_attribute_boolean_type" datetime: "#/components/schemas/conversation_attribute_datetime_type" relationship: "#/components/schemas/conversation_attribute_relationship_type" files: "#/components/schemas/conversation_attribute_files_type" oneOf: - "$ref": "#/components/schemas/conversation_attribute_string_type" - "$ref": "#/components/schemas/conversation_attribute_integer_type" - "$ref": "#/components/schemas/conversation_attribute_list_type" - "$ref": "#/components/schemas/conversation_attribute_decimal_type" - "$ref": "#/components/schemas/conversation_attribute_boolean_type" - "$ref": "#/components/schemas/conversation_attribute_datetime_type" - "$ref": "#/components/schemas/conversation_attribute_relationship_type" - "$ref": "#/components/schemas/conversation_attribute_files_type" conversation_attribute_list: title: Conversation Attribute List type: object description: A list of all conversation attributes belonging to a workspace. properties: type: type: string description: The type of the object. enum: - list example: list data: type: array description: A list of conversation attributes. items: "$ref": "#/components/schemas/conversation_attribute" conversation_attribute_option: title: Conversation Attribute Option type: object description: A single option on a list-type conversation attribute. properties: id: type: string description: The unique UUID identifier for this option. Use this value as `option_id` in the options management endpoints. example: a1b2c3d4-e5f6-7890-abcd-ef1234567890 label: type: string description: The display label for the option. example: High archived: type: boolean description: Whether this option is archived (soft-deleted). example: false create_conversation_attribute_option_request: title: Create Conversation Attribute Option Request type: object description: Payload for adding a new option to a list-type conversation attribute. required: - label properties: label: type: string description: The label for the new option. example: High update_conversation_attribute_option_request: title: Update Conversation Attribute Option Request type: object description: Payload for renaming a list option on a conversation attribute. required: - label properties: label: type: string description: The updated label for the option. example: Renamed create_conversation_attribute_request_base: title: Create Conversation Attribute Request Base type: object required: - name - data_type properties: name: type: string description: Name of the attribute. example: api_test_attr description: type: string description: Readable description of the attribute. example: Created via API test data_type: type: string description: "The data type of the attribute. Allowed types: string, integer, list, decimal, boolean, datetime, relationship, files." enum: - string - integer - list - decimal - boolean - datetime - relationship - files example: string required: type: boolean description: Whether this attribute is required. example: false visible_to_team_ids: type: array description: Team IDs that can see this attribute. Empty array means all teams. items: type: string example: [] create_conversation_attribute_string_request: title: Create Conversation Attribute Request (String) allOf: - "$ref": "#/components/schemas/create_conversation_attribute_request_base" - type: object properties: data_type: type: string enum: - string multiline: type: boolean description: Whether this string attribute is multiline. example: false create_conversation_attribute_integer_request: title: Create Conversation Attribute Request (Integer) allOf: - "$ref": "#/components/schemas/create_conversation_attribute_request_base" - type: object properties: data_type: type: string enum: - integer create_conversation_attribute_list_request: title: Create Conversation Attribute Request (List) allOf: - "$ref": "#/components/schemas/create_conversation_attribute_request_base" - type: object required: - options properties: data_type: type: string enum: - list options: type: array minItems: 2 description: Initial options for this list attribute. Each option must have a `label`. A list attribute needs at least 2 options. items: "$ref": "#/components/schemas/create_conversation_attribute_option_request" create_conversation_attribute_decimal_request: title: Create Conversation Attribute Request (Decimal) allOf: - "$ref": "#/components/schemas/create_conversation_attribute_request_base" - type: object properties: data_type: type: string enum: - decimal create_conversation_attribute_boolean_request: title: Create Conversation Attribute Request (Boolean) allOf: - "$ref": "#/components/schemas/create_conversation_attribute_request_base" - type: object properties: data_type: type: string enum: - boolean create_conversation_attribute_datetime_request: title: Create Conversation Attribute Request (Datetime) allOf: - "$ref": "#/components/schemas/create_conversation_attribute_request_base" - type: object properties: data_type: type: string enum: - datetime create_conversation_attribute_relationship_request: title: Create Conversation Attribute Request (Relationship) allOf: - "$ref": "#/components/schemas/create_conversation_attribute_request_base" - type: object required: - reference properties: data_type: type: string enum: - relationship reference: type: object description: Reference configuration for related objects. required: - type - object_type_id properties: type: type: string description: "The cardinality of the relationship: `one` or `many`." enum: - one - many object_type_id: type: string description: The ID of the related custom object type. It must match an existing custom object type. create_conversation_attribute_files_request: title: Create Conversation Attribute Request (Files) allOf: - "$ref": "#/components/schemas/create_conversation_attribute_request_base" - type: object properties: data_type: type: string enum: - files create_conversation_attribute_request: title: Create Conversation Attribute Request description: Payload for creating a new conversation attribute. discriminator: propertyName: data_type mapping: string: "#/components/schemas/create_conversation_attribute_string_request" integer: "#/components/schemas/create_conversation_attribute_integer_request" list: "#/components/schemas/create_conversation_attribute_list_request" decimal: "#/components/schemas/create_conversation_attribute_decimal_request" boolean: "#/components/schemas/create_conversation_attribute_boolean_request" datetime: "#/components/schemas/create_conversation_attribute_datetime_request" relationship: "#/components/schemas/create_conversation_attribute_relationship_request" files: "#/components/schemas/create_conversation_attribute_files_request" oneOf: - "$ref": "#/components/schemas/create_conversation_attribute_string_request" - "$ref": "#/components/schemas/create_conversation_attribute_integer_request" - "$ref": "#/components/schemas/create_conversation_attribute_list_request" - "$ref": "#/components/schemas/create_conversation_attribute_decimal_request" - "$ref": "#/components/schemas/create_conversation_attribute_boolean_request" - "$ref": "#/components/schemas/create_conversation_attribute_datetime_request" - "$ref": "#/components/schemas/create_conversation_attribute_relationship_request" - "$ref": "#/components/schemas/create_conversation_attribute_files_request" update_conversation_attribute_request: title: Update Conversation Attribute Request type: object description: Payload for updating a conversation attribute. properties: name: type: string description: Name of the attribute. example: api_test_renamed description: type: string description: Readable description of the attribute. example: Updated via API multiline: type: boolean description: "(String data type only) Whether this string attribute is multiline." example: false required: type: boolean description: Whether this attribute is required. example: false visible_to_team_ids: type: array description: Team IDs that can see this attribute. Empty array means all teams. items: type: string example: [] reference: type: object description: "(Relationship data type only) Reference configuration for related objects." required: - type properties: type: type: string description: "The cardinality of the relationship: `one` or `many`." enum: - one - many object_type_id: type: string description: The ID of the related custom object type. create_data_connector_request: title: Create Data Connector Request type: object description: You can create a data connector by providing the required parameters. properties: name: type: string description: The name of the data connector. example: Get Order Status description: type: string description: A description of what this data connector does. example: Looks up order status from an external service internal_description: type: string description: The internal description of the data connector. If omitted, it is an empty string. http_method: type: string description: The HTTP method used when calling the external API. enum: - get - post - put - delete - patch example: get url: type: string description: The URL of the external API endpoint. Supports template variables like `{{order_id}}`. example: "https://api.example.com/orders/{{order_id}}/status" body: type: string description: The request body template. Supports template variables. direct_fin_usage: type: boolean description: Whether the connector is used directly by Fin (true) or only in workflows (false). Defaults to false. example: false audiences: type: array description: The user types this connector is available for. items: type: string enum: - leads - users - visitors example: - leads - visitors headers: type: array description: | HTTP headers to include in the request. Don't put credentials such as API keys here: header values are recorded unmasked in the connector's execution logs, except `Authorization`, which is always masked. Attach an authentication token with `token_ids` instead; its value is masked in execution logs. items: type: object properties: name: type: string description: The header name. example: Content-Type value: type: string description: The header value. Supports template variables. example: application/json required: - name - value data_inputs: type: array description: Input parameters accepted by the connector. items: type: object properties: name: type: string description: The parameter name. example: order_id type: type: string description: The parameter type. enum: - string - integer - decimal - boolean example: string description: type: string description: A description of the parameter. example: The order ID to look up required: type: boolean description: Whether the parameter is required. example: true default_value: type: string description: The default value for the parameter. Defaults to an empty string if omitted. required: - name - description - type - required customer_authentication: type: boolean description: Whether the connector requires customer authentication before executing. Defaults to false. example: false bypass_authentication: type: boolean description: Whether authentication is bypassed entirely (public endpoint). Defaults to false. example: false enforce_auth: type: boolean description: Whether authentication is enforced. On workspaces where this is supported, it takes precedence over `customer_authentication` and `bypass_authentication` when sent together, and setting it to false disables OTP. validate_missing_attributes: type: boolean description: Whether to validate that all required data inputs have values before executing. example: false mock_response: type: object description: A sample JSON response from the external API. Auto-generates `response_fields` and sets `configuration_response_type` to `mock_response_type`. example: order: id: 12345 status: shipped token_ids: type: array description: IDs of authentication tokens to attach to this data connector. items: type: string example: - '1234' - '5678' required: - name update_data_connector_request: title: Update Data Connector Request type: object description: | Update an existing data connector. All fields are optional — only provided fields will be updated. Set `state` to `live` or `draft` to change the connector's state. properties: name: type: string description: The name of the data connector. example: Updated Connector Name description: type: string description: A description of what this data connector does. example: Updated description internal_description: type: string description: The internal description of the data connector. If omitted, it keeps its current value, unless the connector has no internal description yet, in which case it is set to the connector's `description`. state: type: string description: The desired state of the connector. enum: - draft - live http_method: type: string description: The HTTP method used by the data connector. enum: - get - post - put - delete - patch example: post url: type: string description: The URL of the external API endpoint. Supports template variables like `{{order_id}}`. example: "https://api.example.com/orders/{{order_id}}/status" body: type: string description: The request body template. Supports template variables. direct_fin_usage: type: boolean description: Whether this connector is used directly by Fin. example: false audiences: type: array description: The audience types this connector targets. items: type: string enum: - leads - users - visitors example: - leads - users headers: type: array description: | HTTP headers to include in the request. Don't put credentials such as API keys here: header values are recorded unmasked in the connector's execution logs, except `Authorization`, which is always masked. Attach an authentication token with `token_ids` instead; its value is masked in execution logs. items: type: object properties: name: type: string description: The header name. example: Content-Type value: type: string description: The header value. Supports template variables. example: application/json required: - name - value data_inputs: type: array description: The input parameters accepted by this data connector. Replaces all existing inputs. items: type: object properties: name: type: string description: The name of the input parameter. example: order_id type: type: string description: The data type of the input. enum: - string - integer - decimal - boolean example: string description: type: string description: A description of the input parameter. Required for each input. example: The order ID to look up required: type: boolean description: Whether this input is required. example: true default_value: type: string description: The default value for this input, if any. required: - name - description - type - required customer_authentication: type: boolean description: Whether OTP authentication is enabled for this connector. example: false bypass_authentication: type: boolean description: Whether authentication is bypassed for this connector. example: false enforce_auth: type: boolean description: Whether authentication is enforced. On workspaces where this is supported, it takes precedence over `customer_authentication` and `bypass_authentication` when sent together, and setting it to false disables OTP. validate_missing_attributes: type: boolean description: Whether to validate missing attributes before execution. example: true mock_response: type: object description: A sample JSON response from the external API. Auto-generates `response_fields` and sets `configuration_response_type` to `mock_response_type`. example: order: id: 12345 status: shipped token_ids: type: array description: IDs of authentication tokens to attach to this data connector. An empty array removes all tokens. items: type: string example: - '1234' - '5678' data_connector: title: Data Connector type: object x-tags: - Data Connectors description: | A data connector allows you to make HTTP requests to external APIs from Intercom workflows and AI agents. properties: type: type: string description: The type of object - `data_connector`. enum: - data_connector example: data_connector id: type: string description: The unique identifier for the data connector. example: '12345' name: type: string description: The name of the data connector. example: Order Status Service description: type: string nullable: true description: A description of what this data connector does. example: Fetches order status from external fulfillment API internal_description: type: string description: The internal description of the data connector. state: type: string description: The current state of the data connector. enum: - draft - live example: live http_method: type: string description: The HTTP method used by the data connector. enum: - get - post - put - delete - patch example: post enforce_auth: type: boolean description: Whether authentication is enforced for this connector. example: true direct_fin_usage: type: boolean description: Whether this data connector is assigned to Fin for direct usage. example: false created_by_admin_id: type: string description: The ID of the admin who created this data connector. example: '12345' updated_by_admin_id: type: string description: The ID of the admin who last updated this data connector. example: '12345' created_at: type: string format: date-time description: The time the data connector was created. example: '2025-11-15T09:30:00Z' updated_at: type: string format: date-time description: The time the data connector was last updated. example: '2026-01-20T14:22:15Z' execution_results_url: type: string description: The URL path to fetch execution results for this connector. example: "/data_connectors/12345/execution_results" data_connector_detail: title: Data Connector (Detail) type: object x-tags: - Data Connectors description: | Full detail view of a data connector, returned by `GET /data_connectors/{id}`, `POST /data_connectors`, and `PATCH /data_connectors/{id}`. Includes configuration, data inputs, response fields, and object mappings. properties: type: type: string description: The type of object - `data_connector`. enum: - data_connector example: data_connector id: type: string description: The unique identifier for the data connector. example: '12345' name: type: string description: The name of the data connector. example: Order Status Service description: type: string nullable: true description: A description of what this data connector does. example: Fetches order status from external fulfillment API internal_description: type: string description: The internal description of the data connector. state: type: string description: The current state of the data connector. enum: - draft - live example: live url: type: string nullable: true description: The URL of the external API endpoint. Supports template variables like `{{order_id}}`. example: "https://api.example.com/orders/{{order_id}}/status" body: type: string description: The request body template. Supports template variables. example: '{"text": "{{message}}"}' headers: type: array description: HTTP headers for the request. Header values are always redacted as `"****"` in responses. items: type: object properties: name: type: string description: The header name. example: Authorization value: type: string description: Always `"****"` in responses. example: "****" example: - name: Authorization value: "****" http_method: type: string description: The HTTP method used by the data connector. enum: - get - post - put - delete - patch example: post direct_fin_usage: type: boolean description: Whether this connector is used directly by Fin. example: false audiences: type: array description: The audience types this connector targets. items: type: string enum: - users - leads - visitors example: - users - leads execution_type: type: string description: How the connector executes. enum: - server_side - client_side example: server_side configuration_response_type: type: string description: The expected response format from the connector. enum: - test_response_type - mock_response_type example: test_response_type data_transformation_type: type: string description: The type of data transformation applied to the response. enum: - full_access - redacted_access - code_block_transformation transform_code_block: type: object description: | The code block used to transform the connector's response. Present only when `data_transformation_type` is `code_block_transformation` and a code block exists; otherwise omitted. example: code: | def transform(response): return {"status": response["order_status"]} return transform(inputs['data']) language: python properties: code: type: string description: The source code of the transform code block. The API response body is available as `inputs['data']`. The code must `return` the transformed value. example: | def transform(response): return {"status": response["order_status"]} return transform(inputs['data']) language: type: string description: The programming language of the transform code block. Currently always `python`. example: python client_function_name: type: string nullable: true description: The name of the client-side function, if applicable. client_function_timeout_ms: type: integer nullable: true description: Timeout in milliseconds for the client function, if applicable. data_inputs: type: array description: The input parameters accepted by this data connector. items: type: object properties: name: type: string description: The name of the input parameter. example: conversation_id type: type: string description: The data type of the input. enum: - string - integer - decimal - boolean example: string description: type: string nullable: true description: A description of the input parameter. required: type: boolean description: Whether this input is required. example: true default_value: type: string description: The default value for this input, if any. response_fields: type: array description: The fields returned in the connector response. items: type: object properties: path: type: string description: The JSON path of the response field. example: status type: type: string description: The data type of the response field. enum: - unknown - string - integer - decimal - datetime - boolean example: string example_value: nullable: true description: An example value for this field. example: ok redacted: type: boolean description: Whether this field is redacted in logs. example: false object_mappings: type: array description: Mappings from connector response objects to Intercom objects. items: type: object properties: response_object_path: type: string intercom_object_type: type: string enum: - conversation - user attribute_mappings: type: array items: type: object properties: response_attribute_path: type: string intercom_attribute_identifier: type: string mapping_type: type: string enum: - primitive_mapping - context_mapping reference_mappings: type: array items: type: object properties: intercom_object_type: type: string enum: - conversation - user intercom_attribute_identifier: type: string token_ids: type: array description: IDs of authentication tokens associated with this connector. items: type: string example: [] customer_authentication: type: boolean description: Whether OTP authentication is enabled for this connector. example: false bypass_authentication: type: boolean description: Whether authentication is bypassed for this connector. example: false enforce_auth: type: boolean description: Whether authentication is enforced for this connector. example: true validate_missing_attributes: type: boolean nullable: true description: Whether to validate missing attributes before execution. created_by_admin_id: type: string nullable: true description: The ID of the admin who created this connector. example: '456' updated_by_admin_id: type: string nullable: true description: The ID of the admin who last updated this connector. example: '456' created_at: type: string format: date-time description: The time the data connector was created. example: '2025-11-15T09:30:00Z' updated_at: type: string format: date-time description: The time the data connector was last updated. example: '2026-01-20T14:22:15Z' execution_results_url: type: string description: The URL path to fetch execution results for this connector. example: "/data_connectors/12345/execution_results" data_connector_execution_result: title: Data Connector Execution Result type: object x-tags: - Data Connectors description: An execution result from a data connector HTTP request. properties: type: type: string description: The type of object - `data_connector.execution`. enum: - data_connector.execution example: data_connector.execution id: type: string description: The unique identifier for the execution result. example: '99001' data_connector_id: type: string description: The unique identifier of the data connector that produced this result. example: '12345' success: type: boolean description: Whether the execution was successful. example: true http_status: type: integer nullable: true description: The HTTP status code returned by the external API. example: 200 http_method: type: string description: The HTTP method used for the request. enum: - get - post - put - delete - patch example: post error_type: type: string nullable: true description: The type of error that occurred, if any. enum: - request_configuration_error - faraday_error - 3rd_party_error - response_mapping_error - token_refresh_error - fin_action_response_formatting_error - fin_action_identity_verification_error - email_verification_error - non_fin_standalone_action_identity_verification_error - request_validation_error - client_side_action_error - code_block_transformation_error - otp_preview_not_supported_error example: 3rd_party_error error_message: type: string nullable: true description: A human-readable error message. Any http or https URLs in it are redacted the same way as `request_url`; the rest of the message is returned as is. example: Connection refused execution_time_ms: type: integer nullable: true description: The execution time in milliseconds. example: 245 source_type: type: string nullable: true description: The type of source that triggered this execution. enum: - custom_bot - inbound_custom_bot - button_custom_bot - answer - workflow - saved_reply - triggerable_custom_bot - inbox - fin - synthetic_test example: workflow source_id: type: string nullable: true description: The identifier of the source that triggered this execution. example: '5001' conversation_id: type: string nullable: true description: The conversation associated with this execution, if any. example: '8001' created_at: type: string format: date-time description: The time the execution occurred. example: '2026-02-10T18:15:32Z' request_url: type: string nullable: true description: The request URL. Query parameters, userinfo, and fragments are redacted. For some hosts that put credentials in the path, the path is removed too. A suffix such as ` [query params redacted]` or ` [credentials redacted]` is appended when anything is redacted, and a URL that cannot be parsed becomes `[invalid URL redacted]`. example: https://api.example.com/webhook request_body: type: string nullable: true description: The request body sent to the external API. example: '{"message": "hello"}' response_body: type: string nullable: true description: The response body from the external API. example: '{"status": "ok"}' raw_response_body: type: string nullable: true description: The raw (unmapped) response body. example: '{"status": "ok"}' data_connector_execution_result_list: title: Data Connector Execution Result List type: object description: A paginated list of data connector execution results. properties: type: type: string description: The type of object - `list`. enum: - list example: list data: type: array description: An array of execution result objects. items: "$ref": "#/components/schemas/data_connector_execution_result" pages: type: object description: Pagination information. properties: type: type: string example: pages enum: - pages per_page: type: integer description: The number of results per page. example: 10 next: type: object nullable: true description: Cursor for the next page of results. properties: starting_after: type: string description: The cursor value to use for the next page. example: WzE3NzA3NDU1MTUuMCw5OTAwMCxudWxsXQ== data_connector_list: title: Data Connector List type: object description: A paginated list of data connectors. properties: type: type: string description: The type of object - `list`. enum: - list example: list data: type: array description: An array of data connector objects. items: "$ref": "#/components/schemas/data_connector" pages: type: object description: Pagination information. properties: type: type: string example: pages enum: - pages per_page: type: integer description: The number of results per page. example: 20 next: type: object nullable: true description: Cursor for the next page of results. properties: starting_after: type: string description: The cursor value to use for the next page. example: WzE3Njg5MTg5MzUuMCwxMjM0NSxudWxsXQ== data_connector_version_list: title: Data Connector Version List type: object description: A paginated list of data connector versions, newest first. properties: type: type: string description: The type of object - `list`. enum: - list example: list data: type: array description: An array of data connector version objects. items: "$ref": "#/components/schemas/data_connector_version" pages: type: object description: Pagination information. `next` is omitted on the last page. properties: type: type: string example: pages enum: - pages per_page: type: integer description: The number of results per page. example: 20 next: type: object description: Cursor for the next page of results. properties: starting_after: type: string description: The cursor value to use for the next page. example: WzQ0MDksNDQwOSxudWxsXQ== data_connector_version: title: Data Connector Version type: object x-tags: - Data Connectors description: A point-in-time snapshot of a data connector's configuration, with the version's status and an optional note. properties: type: type: string description: The type of object - `data_connector_version`. enum: - data_connector_version example: data_connector_version status: type: string description: The status of this version today. enum: - live - paused - draft - previously_live example: live note: type: string nullable: true description: A note describing this version, if one has been set. example: Switched to the v2 orders endpoint author: type: object nullable: true description: The teammate who created this version. properties: id: type: integer description: The unique identifier of the teammate. example: 456 name: type: string description: The name of the teammate. example: Alice Admin created_at: type: string format: date-time description: The time this version was created. example: '2026-09-14T10:02:11Z' entity_version_id: type: integer description: The identifier of this version. Use it as `version_id` when retrieving or updating a version. example: 9821 definition: type: object nullable: true description: The data connector's configuration at this version. `null` if the snapshot is no longer available. Mirrors the response of [Retrieve a data connector](/docs/references/rest-api/api.intercom.io/data-connectors/retrievedataconnector), without `id`, `type`, `created_by_admin_id`, `updated_by_admin_id`, `created_at`, `updated_at`, `execution_results_url` and `transform_code_block`. properties: name: type: string description: The name of the data connector. example: Order Status Service description: type: string nullable: true description: A description of what this data connector does. internal_description: type: string nullable: true description: The internal description of the data connector. state: type: string description: The state of the data connector at this version. example: live url: type: string nullable: true description: The URL of the external API endpoint. Supports template variables like `{{order_id}}`. body: type: string nullable: true description: The request body template. Supports template variables. headers: type: array description: HTTP headers for the request. Header values are always redacted as `"****"`. items: type: object properties: name: type: string example: Authorization value: type: string description: Always `"****"` in responses. example: "****" http_method: type: string description: The HTTP method used by the data connector. example: get direct_fin_usage: type: boolean description: Whether this connector is used directly by Fin. audiences: type: array description: The audience types this connector targets. items: type: string execution_type: type: string nullable: true description: How the connector executes, for example `server_side` or `client_side`. configuration_response_type: type: string nullable: true description: The expected response format from the connector. data_transformation_type: type: string nullable: true description: The type of data transformation applied to the response. client_function_name: type: string nullable: true description: The name of the client-side function, if applicable. client_function_timeout_ms: type: integer nullable: true description: Timeout in milliseconds for the client function, if applicable. data_inputs: type: array description: The input parameters accepted by this data connector. items: type: object properties: name: type: string type: type: string description: type: string nullable: true required: type: boolean default_value: {} response_fields: type: array description: The fields returned in the connector response. items: type: object properties: path: type: string type: type: string example_value: {} redacted: type: boolean object_mappings: type: array description: Mappings from connector response objects to Intercom objects. items: type: object properties: response_object_path: type: string intercom_object_type: type: string attribute_mappings: type: array items: type: object properties: response_attribute_path: type: string intercom_attribute_identifier: type: string mapping_type: type: string reference_mappings: type: array items: type: object properties: intercom_object_type: type: string intercom_attribute_identifier: type: string token_ids: type: array description: IDs of authentication tokens associated with this connector. items: type: string customer_authentication: type: boolean description: Whether OTP authentication is enabled for this connector. bypass_authentication: type: boolean description: Whether authentication is bypassed for this connector. enforce_auth: type: boolean nullable: true description: Whether authentication is enforced for this connector. validate_missing_attributes: type: boolean nullable: true description: Whether to validate missing attributes before execution. update_data_connector_version_request: title: Update Data Connector Version Request type: object description: Payload for updating a data connector version. required: - note properties: note: type: string nullable: true description: The new note for the version. Sending `null`, an empty string, or a whitespace-only string clears the note. example: Switched to the v2 orders endpoint deleted_data_connector_object: title: Deleted Data Connector Object type: object description: Response returned when a data connector is deleted. properties: id: type: string description: The unique identifier for the data connector. example: '125' object: type: string description: The type of object which was deleted. enum: - data_connector example: data_connector deleted: type: boolean description: Whether the data connector was deleted successfully. example: true data_event: title: Data Event type: object x-tags: - Data Events description: Data events are used to notify Intercom of changes to your data. properties: type: type: string description: The type of the object enum: - event example: event event_name: type: string description: The name of the event that occurred. This is presented to your App's admins when filtering and creating segments - a good event name is typically a past tense 'verb-noun' combination, to improve readability, for example `updated-plan`. example: invited-friend created_at: type: integer format: date-time description: The time the event occurred as a UTC Unix timestamp example: 1671028894 user_id: type: string description: Your identifier for the user. example: '314159' id: type: string description: Your identifier for a lead or a user. example: 8a88a590-e1c3-41e2-a502-e0649dbf721c intercom_user_id: type: string description: The Intercom identifier for the user. example: 63a0979a5eeebeaf28dd56ba email: type: string description: An email address for your user. An email should only be used where your application uses email to uniquely identify users. example: frodo.baggins@example.com metadata: type: object description: Optional metadata about the event. Values keep the type they were sent with. additionalProperties: anyOf: - type: string - type: integer - type: number - type: boolean - type: object example: invite_code: ADDAFRIEND required: - event_name - created_at data_event_list: title: Data Event List type: object description: This will return a list of data events for the App. properties: type: type: string description: The type of the object enum: - event.list example: event.list events: type: array description: A list of data events items: "$ref": "#/components/schemas/data_event" pages: type: object description: Pagination properties: next: type: string example: https://api.intercom.io/events?per_page=2&before=1389913941064&intercom_user_id=63a0979a5eeebeaf28dd56ba&type=user" since: type: string example: https://api.intercom.io/events?intercom_user_id=63a0979a5eeebeaf28dd56ba&type=user&since=1389913941065 data_event_summary: title: Data Event Summary type: object description: This will return a summary of data events for the App. properties: type: type: string description: The type of the object enum: - event.summary example: event.summary email: type: string description: The email address of the user example: Sam.Sung@example.com intercom_user_id: type: string description: The Intercom user ID of the user example: 63a0979a5eeebeaf28dd56ba user_id: type: string description: The user ID of the user example: 62b997f288e14803c5006932 events: type: array description: A summary of data events items: "$ref": "#/components/schemas/data_event_summary_item" data_event_summary_item: title: Data Event Summary Item type: object description: This will return a summary of a data event for the App. nullable: true properties: name: type: string description: The name of the event example: placed-order first: type: string description: The first time the event was sent example: '2014-01-16T23:12:21.000+00:00' last: type: string description: The last time the event was sent example: '2014-01-16T23:12:21.000+00:00 ' count: type: integer description: The number of times the event was sent example: 1 description: type: string description: The description of the event example: A user placed an order data_export: title: Data Export type: object x-tags: - Data Export description: The data export API is used to export message delivery and engagement statistics for outbound content (Emails, Posts, Custom Bots, Surveys, Tours, Series, and more) sent in a given timeframe. The exported data includes who received each message, when they received it, and how they engaged with it (opens, clicks, replies, completions, dismissals, unsubscribes, and bounces). properties: job_identifier: type: string description: The identifier for your job. example: orzzsbd7hk67xyu status: type: string enum: - pending - in_progress - failed - completed - no_data - canceled description: The current state of your job. example: pending download_expires_at: type: string description: The time after which you will not be able to access the data, as a Unix timestamp. It is one week from the time the job was created. Empty until the job completes. example: '1674917488' download_url: type: string description: The location where you can download your data. Empty until the job completes. example: https://api.intercom.io/download/content/data/orzzsbd7hk67xyu data_export_csv: title: Data Export CSV type: object description: A CSV output file properties: user_id: type: string description: The user_id of the user who was sent the message. user_external_id: type: string description: The external_user_id of the user who was sent the message company_id: type: string description: The company ID of the user in relation to the message that was sent. Will return -1 if no company is present. email: type: string description: The users email who was sent the message. name: type: string description: The full name of the user receiving the message ruleset_id: type: string description: The id of the message. content_id: type: string description: The specific content that was received. In an A/B test each version has its own Content ID. content_type: type: string description: Email, Chat, Post etc. content_title: type: string description: The title of the content you see in your Intercom workspace. ruleset_version_id: type: string description: As you edit content we record new versions. This ID can help you determine which version of a piece of content that was received. receipt_id: type: string description: ID for this receipt. Will be included with any related stats in other files to identify this specific delivery of a message. received_at: type: integer description: Timestamp for when the receipt was recorded. series_id: type: string description: The id of the series that this content is part of. Will return -1 if not part of a series. series_title: type: string description: The title of the series that this content is part of. node_id: type: string description: The id of the series node that this ruleset is associated with. Each block in a series has a corresponding node_id. first_reply: type: integer description: The first time a user replied to this message if the content was able to receive replies. Only events within the export job's requested date range are counted. first_completion: type: integer description: The first time a user completed this message if the content was able to be completed e.g. Tours, Surveys. Only events within the export job's requested date range are counted. first_series_completion: type: integer description: The first time the series this message was a part of was completed by the user. Only events within the export job's requested date range are counted. first_series_disengagement: type: integer description: The first time the series this message was a part of was disengaged by the user. Only events within the export job's requested date range are counted. first_series_exit: type: integer description: The first time the series this message was a part of was exited by the user. Only events within the export job's requested date range are counted. first_goal_success: type: integer description: The first time the user met this messages associated goal if one exists. Only events within the export job's requested date range are counted. first_open: type: integer description: The first time the user opened this message. Only events within the export job's requested date range are counted. first_click: type: integer description: The first time the series the user clicked on a link within this message. Only events within the export job's requested date range are counted. first_dismisall: type: integer description: The first time the series the user dismissed this message. Only events within the export job's requested date range are counted. first_unsubscribe: type: integer description: The first time the user unsubscribed from this message. Only events within the export job's requested date range are counted. first_hard_bounce: type: integer description: The first time this message hard bounced for this user. Only events within the export job's requested date range are counted. deleted_article_object: title: Deleted Article Object type: object description: Response returned when an object is deleted properties: id: type: string description: The unique identifier for the article which you provided in the URL. example: '6890762' object: type: string description: The type of object which was deleted. - article enum: - article example: article deleted: type: boolean description: Whether the article was deleted successfully or not. example: true deleted_internal_article_object: title: Deleted Internal Article Object type: object description: Response returned when an object is deleted properties: id: type: string description: The unique identifier for the internal article which you provided in the URL. example: '6890762' object: type: string description: The type of object which was deleted. - internal_article enum: - internal_article example: internal_article deleted: type: boolean description: Whether the internal article was deleted successfully or not. example: true deleted_collection_object: title: Deleted Collection Object type: object description: Response returned when an object is deleted properties: id: type: string description: The unique identifier for the collection which you provided in the URL. example: '6890762' object: type: string description: The type of object which was deleted. - `collection` enum: - collection example: collection deleted: type: boolean description: Whether the collection was deleted successfully or not. example: true deleted_company_object: title: Deleted Company Object type: object description: Response returned when an object is deleted properties: id: type: string description: The unique identifier for the company which is given by Intercom. example: 5b7e8b2f-7a1a-4e6c-8e1b-4f9d4f4c4d4f object: type: string description: The type of object which was deleted. - `company` enum: - company example: company deleted: type: boolean description: Always `true`. The contacts are detached after the response is sent. example: true deleted_object: title: Deleted Object type: object description: Response returned when an object is deleted properties: id: type: string description: The unique identifier for the news item which you provided in the URL. example: '6890762' object: type: string description: The type of object which was deleted - news-item. enum: - news-item example: news-item deleted: type: boolean description: Whether the news item was deleted successfully or not. example: true deleted_note_object: title: Deleted Note Object type: object description: Response returned when an object is deleted properties: id: type: string description: The unique identifier for the note which you provided in the URL. example: '34' type: type: string description: The type of object which was deleted. - `note` enum: - note example: note deleted: type: boolean description: Whether the note was deleted successfully or not. example: true detach_contact_from_conversation_request: properties: admin_id: type: string description: The `id` of the admin who is performing the action. example: '5017690' required: - admin_id ecommerce_catalog_upload_conflict_error: title: Ecommerce Catalog Upload Conflict Error description: | The error list returned with `409 Conflict`. When a multipart upload session is already in progress for the connector, the body also carries the `import_job_id` of that session, so you can continue it. allOf: - "$ref": "#/components/schemas/error" - type: object properties: import_job_id: type: integer format: int64 description: | The identifier of the multipart upload session that is already in progress. Only present when the conflict is an existing multipart session. Pass it as `import_job_id` to continue that session. example: 1000000471233 ecommerce_catalog_upload_part_response: title: Ecommerce Catalog Upload Part Response type: object description: Returned after a multipart catalog part is successfully uploaded. properties: import_job_id: type: integer format: int64 description: | The unique identifier for the active upload session. Pass this as `import_job_id` in subsequent part uploads and in the finalization request. example: 1000000471233 next_part_number: type: integer description: The part number to use in the next upload request. example: 2 ecommerce_catalog_upload_response: title: Ecommerce Catalog Upload Response type: object description: Returned when a catalog upload is accepted and sync has started. properties: import_job_id: type: integer format: int64 description: The unique identifier for the import job. example: 1000000471233 status: type: string description: The current status of the catalog sync. enum: - processing example: processing message: type: string description: A human-readable description of the sync status. example: Catalog received. Sync has started. ecommerce_catalog_variant: title: Ecommerce Catalog Variant type: object description: A product variant in an ecommerce catalog upload. properties: id: type: string description: Unique identifier for this variant within the product. example: 'var-001' title: type: string description: Variant display name shown to shoppers (e.g. "Small / Blue"). example: 'Blue / Large' price: type: number description: Price of this specific variant. Fin uses variant prices for precise budget filtering and displays the variant price in recommendation cards. example: 29.99 nullable: true compare_at_price: type: number description: Original price before a discount. When provided, Fin will naturally mention the saving to the shopper (e.g. "down from $129 to $99"). example: 39.99 nullable: true in_stock: type: boolean description: Whether this variant is currently available. Out-of-stock variants are not shown in Fin's recommendation cards and Fin will not suggest them to shoppers. example: true url: type: string description: Direct link to this variant's page. Takes precedence over the product URL in recommendation cards. If omitted, constructed automatically as `{product_url}?variant={id}`. example: 'https://example.com/products/t-shirt?variant=var-001' nullable: true image_url: type: string description: Image specific to this variant. Takes precedence over the product's `featured_image_url`. Falls back to `featured_image_url`, then `image_urls`. If no valid image can be resolved, this variant's recommendation card will not be shown. example: 'https://cdn.example.com/images/t-shirt-blue.jpg' nullable: true selected_options: type: array description: The specific option values that define this variant (e.g. Size=Small, Color=Blue). Fin uses these to match shopper requests like "do you have this in medium?" to the correct variant. items: type: object properties: name: type: string description: Option name. example: 'Size' value: type: string description: Selected option value. example: 'Large' sku: type: string description: Stock-keeping unit for this specific variant. Fin uses this to resolve shopper requests like "do you have this in size M?" to the exact variant, and can quote it back when a shopper asks for it directly. example: 'TSHIRT-BLU-L' nullable: true ecommerce_catalog_product: title: Ecommerce Catalog Product type: object description: | A product object in an ecommerce catalog upload. The catalog file must be a JSON array of these objects. The `id`, `title`, and `url` fields are required; all others are optional. required: - id - title - url properties: id: type: string description: Your unique product identifier. Used to match products on re-upload so only changed products are re-indexed. Also the delete key — any product ID absent from a new upload is removed from Fin's knowledge. Must be stable across uploads. example: 'prod-12345' title: type: string description: Product name. Used by Fin when searching for and recommending products. example: 'Classic Cotton T-Shirt' url: type: string description: Canonical product page URL shown in Fin's product recommendations. Must be a valid https:// URL. example: 'https://example.com/products/classic-cotton-t-shirt' description: type: string description: Product description that Fin reads to understand what the product is. HTML formatting is supported and safely sanitized (`description_html` takes precedence if both are provided). This is the primary field Fin uses to match products to shopper questions — a richer description leads to better recommendations. example: 'A comfortable everyday t-shirt made from 100% organic cotton.' nullable: true description_html: type: string description: HTML product description. Takes precedence over `description` when both are provided. HTML is safely sanitized before indexing. example: 'A comfortable everyday t-shirt made from 100% organic cotton.
' nullable: true featured_image_url: type: string description: Primary product image shown in Fin's recommendation cards. Falls back to the first entry of `image_urls` if not provided. If no valid image can be resolved for a variant, that variant's recommendation card is not shown to the shopper. example: 'https://cdn.example.com/images/t-shirt-main.jpg' nullable: true image_urls: type: array description: Additional product images. Used as a fallback image source when `featured_image_url` is absent or when a variant has no specific image. items: type: string example: - 'https://cdn.example.com/images/t-shirt-back.jpg' - 'https://cdn.example.com/images/t-shirt-detail.jpg' price_min: type: number description: Lowest price across all variants. If omitted, derived automatically from variant prices. Fin uses this to filter products when a shopper mentions a budget (e.g. "under $100"). Displayed as a range alongside `price_max`, or as a single value if both are equal. example: 19.99 nullable: true price_max: type: number description: Highest price across all variants. If omitted, derived from variant prices. Used alongside `price_min` for budget filtering and price display. example: 39.99 nullable: true currency: type: string description: ISO 4217 currency code for all prices on this product (e.g. "USD", "EUR", "GBP"). Defaults to USD if omitted. Used to format prices with the correct symbol in Fin's responses and product cards. example: 'USD' nullable: true in_stock: type: boolean description: | Whether the product is available to purchase. If omitted, derived from variant stock — the product is in stock if at least one variant has `in_stock: true`. Products with no in-stock variants are hidden from Fin entirely and will not be recommended to shoppers. example: true nullable: true tags: type: array description: Free-form keywords matching how shoppers phrase needs in chat (e.g. "waterproof", "gift", "plus-size"). Used by Fin to match fuzzy queries; complements `category_path` and `collections`. items: type: string example: - 'organic' - 'bestseller' collections: type: array description: Collections or groupings this product belongs to in your store. Fin uses collections to understand your catalog's structure and answer questions like "what's in the sale collection?". Each element may be a plain string or an object with a `title` field. items: oneOf: - type: string example: 'Summer Collection' - type: object properties: title: type: string example: 'Summer Collection' category_path: description: | Hierarchical category breadcrumb for the product. Fin understands the hierarchy — a shopper asking about "Clothing" will see products from all subcategories underneath it. The most specific category is shown in search results. Strongly recommended. Provide as a pre-formatted string (e.g. `"Clothing > T-Shirts"`) or as an array of path segments (e.g. `["Clothing", "T-Shirts"]`). Array segments are joined with ` > `. oneOf: - type: string example: 'Clothing > T-Shirts' - type: array items: type: string example: - 'Clothing' - 'T-Shirts' nullable: true available_options: type: array description: | Option types available for this product and their possible values (e.g. `{"name": "Size", "values": ["S", "M", "L"]}`). Fin uses these to understand what choices a shopper can make and to correctly filter variants when a shopper asks for a specific size, colour, or other attribute. items: type: object properties: name: type: string description: Option name (e.g. "Size"). example: 'Size' values: type: array description: All available values for this option. items: type: string example: - 'Small' - 'Medium' - 'Large' variants: type: array description: Individual purchasable variants of the product. Fin recommends specific variants (not just products), so populating variants with accurate stock, price, and option data leads to more precise recommendations. See `ecommerce_catalog_variant` for the variant object schema. items: "$ref": "#/components/schemas/ecommerce_catalog_variant" additional_data: type: object description: Custom attributes for your business. Fin uses these to show each customer only the products relevant to them (e.g. regional availability or warehouse codes). All keys must be consistent across all products in your catalog — the attribute schema is read from the first product in the file. example: sku: 'TSHIRT-BLU-L' vendor: 'Acme Apparel' nullable: true ecommerce_product_event_product: title: Ecommerce Product Event Product description: | The full product sent in a `product.created` or `product.updated` event. It uses the same fields as `ecommerce_catalog_product`, plus `updated_at`, which is required. The serialized product must be 60 KB or smaller. allOf: - "$ref": "#/components/schemas/ecommerce_catalog_product" - type: object required: - updated_at properties: created_at: type: string format: date-time description: When the product was created in your store, as an ISO 8601 timestamp. example: '2026-10-14T09:30:00Z' nullable: true updated_at: type: string format: date-time description: When the product was last changed in your store, as an ISO 8601 timestamp. example: '2026-10-15T14:05:00Z' ecommerce_product_event_request: title: Ecommerce Product Event Request type: object description: A single product event. required: - type - occurred_at - data properties: type: type: string description: The kind of product change. enum: - product.created - product.updated - product.deleted example: product.updated occurred_at: type: string format: date-time description: When the change happened, as an ISO 8601 timestamp. example: '2026-10-15T14:05:00Z' data: type: object description: The event payload. Send `product` for `product.created` and `product.updated`, and `product_id` for `product.deleted`. properties: product: "$ref": "#/components/schemas/ecommerce_product_event_product" product_id: type: string description: The `id` of the product to delete. Required for `product.deleted`. example: 'tent-2p-ultralight' ecommerce_product_event_response: title: Ecommerce Product Event Response type: object description: Returned when a product event is accepted and queued. properties: event_id: type: integer description: The unique identifier for the queued event. example: 1000000471233 email_address_header: title: Email Address Header type: object description: Contains data for an email address header for a conversation part that was sent as an email. properties: type: type: string description: The type of email address header example: from email_address: type: string description: The email address example: jdoe@example.com name: type: string nullable: true description: The name associated with the email address example: Joe Example email_message_metadata: title: Email Message Metadata type: object description: Contains metadata if the message was sent as an email properties: subject: type: string description: The subject of the email example: Question about my order email_address_headers: title: Email Address Headers type: array description: A list of an email address headers. items: "$ref": "#/components/schemas/email_address_header" message_id: type: string nullable: true description: The unique identifier for the email message as specified in the Message-ID header example: "conversation_attribute_updated_by_workflow.
properties:
workflow:
type: object
properties:
name:
type: string
description: Name of the workflow
example: Workflow 1
attribute:
type: object
properties:
name:
type: string
description: Name of the CDA updated
example: flight_category
value:
type: object
properties:
name:
type: string
description: Value of the CDA updated
example: vip_status
conversation_attribute_updated_by_admin:
title: Part type - conversation_attribute_updated_by_admin
type: object
description: Contains details about Custom Data Attributes (CDAs) that were modified by an admin (operator) for conversation part type conversation_attribute_updated_by_admin.
properties:
attribute:
type: object
properties:
name:
type: string
description: Name of the CDA updated
example: jira_issue_key
value:
type: object
properties:
name:
type: string
description: Current value of the CDA updated
example: PROJ-007
previous:
type: string
nullable: true
description: Previous value of the CDA
example: PROJ-006
conversation_attribute_updated_by_user:
title: Part type - conversation_attribute_updated_by_user
type: object
description: Contains details about Custom Data Attributes (CDAs) that were modified by a user for conversation part type conversation_attribute_updated_by_user.
properties:
attribute:
type: object
properties:
name:
type: string
description: Name of the CDA updated
example: Priority
value:
type: object
properties:
name:
type: string
description: Current value of the CDA updated
example: High
previous:
type: string
nullable: true
description: Previous value of the CDA (null for older events)
example: Medium
custom_action_started:
title: Part type - custom_action_started
type: object
description: Contains details about name of the action that was initiated for conversation part type custom_action_started.
properties:
action:
type: object
properties:
name:
type: string
description: Name of the action
example: Jira Create Issue
custom_action_finished:
title: Part type - custom_action_finished
type: object
description: Contains details about final status of the completed action for conversation part type custom_action_finished.
properties:
action:
type: object
properties:
name:
type: string
description: Name of the action
example: Jira Create Issue
result:
type: string
description: Status of the action
enum:
- success
- failed
example: success
operator_workflow_event:
title: Part type - operator_workflow_event
type: object
description: Contains details about name of the workflow for conversation part type operator_workflow_event.
properties:
workflow:
type: object
properties:
name:
type: string
description: The name of the workflow
example: Custom Bot 1
event:
type: object
properties:
type:
type: string
description: Type of the workflow event initiated
example: wait_finished
result:
type: string
description: Result of the workflow event
example: Finsihed waiting
call_summary:
title: Part type - call_summary
type: object
description: Contains the id of the call the summary describes, for conversation part type call_summary. A conversation can contain several calls, and therefore several call summaries, so this identifies which call each summary belongs to. The id matches the id returned by the Calls API and by the call.started, call.ended, call.recording_available and call.transcription_available webhook topics.
properties:
call_id:
type: string
description: The id of the call the summary describes
example: "3822007689"
ai_agent_event_otp_email_verification_failed:
title: Part type - ai_agent_event (otp_email_verification_failed)
type: object
description: Contains the reason Fin could not verify a contact by one-time passcode email, for conversation part type ai_agent_event when the event type is otp_email_verification_failed. Other ai_agent_event event types are not described here.
properties:
event:
type: object
description: The event the part records
example:
type: "otp_email_verification_failed"
value: "OTP email verification failed"
data:
otp_email_verification_failed:
reason: "no_email"
properties:
type:
type: string
description: The event type
example: "otp_email_verification_failed"
value:
type: string
description: A readable label for the event
example: "OTP email verification failed"
data:
type: object
description: Data recorded with the event. Empty when the failure was recorded without a reason.
example:
otp_email_verification_failed:
reason: "no_email"
properties:
otp_email_verification_failed:
type: object
description: Details of the failed verification
example:
reason: "no_email"
properties:
reason:
type: string
description: Why the one-time passcode email could not verify the contact. Treat this as a free-form string and fall back to value for a reason you do not recognise. no_email means the contact has no email address on record.
example: "no_email"
standalone_platform_handoff:
title: Part type - standalone_platform_handoff
type: object
description: Contains the handoff Fin attempted to an external platform, for conversation part type standalone_platform_handoff.
properties:
handoff:
type: object
description: The handoff Fin attempted.
properties:
type:
type: string
description: The handoff type. One of zendesk_ticket, zendesk_agent, salesforce_case, salesforce_in_app_messaging, salesforce_team, external_agent or external_ticket. Older parts can also return salesforce_chat.
example: salesforce_case
success:
type: boolean
nullable: true
description: true when the handoff completed and false when it failed. null means no outcome was recorded on this part, for example a Salesforce in-app messaging handoff that was only initiated.
example: true
data:
type: object
description: Details of the handoff. Always present. For a successful salesforce_case handoff it holds the created Case's case_id and case_number; otherwise it is an empty object.
properties:
case_id:
type: string
description: The ID of the Salesforce Case created by the handoff.
example: '500XX0000001'
case_number:
type: string
description: The number of the Salesforce Case created by the handoff.
example: '00001234'
example:
case_id: '500XX0000001'
case_number: '00001234'
example:
type: salesforce_case
success: true
data:
case_id: '500XX0000001'
case_number: '00001234'
event_details:
title: Event details of Workflow & actions
type: object
anyOf:
- "$ref": "#/components/schemas/conversation_attribute_updated_by_workflow"
- "$ref": "#/components/schemas/conversation_attribute_updated_by_admin"
- "$ref": "#/components/schemas/conversation_attribute_updated_by_user"
- "$ref": "#/components/schemas/custom_action_started"
- "$ref": "#/components/schemas/custom_action_finished"
- "$ref": "#/components/schemas/operator_workflow_event"
- "$ref": "#/components/schemas/call_summary"
- "$ref": "#/components/schemas/ai_agent_event_otp_email_verification_failed"
- "$ref": "#/components/schemas/standalone_platform_handoff"
error:
type: object
title: Error
description: The API will return an Error List for a failed request, which will
contain one or more Error objects.
properties:
type:
type: string
description: The type is error.list
example: error.list
request_id:
type: string
nullable: true
format: uuid
description: ''
example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
errors:
type: array
description: An array of one or more error objects
items:
properties:
code:
type: string
description: A string indicating the kind of error, used to further
qualify the HTTP response code.
example: unauthorized
message:
type: string
nullable: true
description: Optional. Human readable description of the error.
example: Access Token Invalid
data:
type: object
nullable: true
additionalProperties: true
description: Optional. Extra detail about the error, for example
`required_permissions` on a 403 `action_forbidden` error.
example:
required_permissions:
- read_conversations
required:
- code
required:
- type
- errors
external_page:
title: External Page
type: object
x-tags:
- AI Content
description: External pages that you have added to your Fin Content Library.
nullable: false
properties:
type:
type: string
description: Always external_page
enum:
- external_page
default: external_page
example: external_page
id:
type: string
description: The unique identifier for the external page which is given
by Intercom.
example: '1234'
title:
type: string
description: The title of the external page.
example: Getting started with...
html:
type: string
description: The body of the external page in HTML.
example: "Hello world!
" url: type: string description: The URL of the external page. This will be used by Fin to link end users to the page it based its answer on. example: https://help.example.com/en/articles/1234-getting-started ai_agent_availability: type: boolean description: Whether the external page should be used to answer questions by AI Agent. example: true ai_copilot_availability: type: boolean description: Whether the external page should be used to answer questions by AI Copilot. example: true ai_sales_agent_availability: type: boolean description: Whether the external page should be used to answer questions by AI Sales Agent. example: true fin_availability: type: boolean description: Deprecated. Use ai_agent_availability and ai_copilot_availability instead. example: true locale: type: string description: The language code of the external page, for example `en` or `fr`. example: en source_id: type: integer description: The unique identifier for the source of the external page which was given by Intercom. Every external page must be associated with a Content Import Source which represents the place it comes from and from which it inherits a default audience (configured in the UI). For a new source, make a POST request to the Content Import Source endpoint and an ID for the source will be returned in the response. example: 1234 external_id: type: string description: The identifier for the external page which was given by the source. Must be unique for the source. example: '5678' audience_ids: type: array description: The list of audience IDs that this external page is targeted to for Fin AI Agent. Empty when the external page has no audience targeting. items: type: integer example: - 1 - 2 created_at: type: integer format: date-time description: The time when the external page was created. example: 1672928359 updated_at: type: integer format: date-time description: The time when the external page was last updated. example: 1672928610 last_ingested_at: type: integer format: date-time description: The time when the external page was last ingested. example: 1672928610 tags: description: The tags applied to the external page. allOf: - "$ref": "#/components/schemas/tags" required: - id - type - title - html - ai_agent_availability - ai_copilot_availability - locale - source_id - created_at - updated_at - last_ingested_at - external_id external_pages_list: title: External Pages type: object x-tags: - AI Content description: This will return a list of external pages for the App. nullable: false properties: type: type: string description: The type of the object - `list`. enum: - list example: list pages: "$ref": "#/components/schemas/pages_link" total_count: type: integer description: A count of the total number of external pages. example: 1 data: type: array description: An array of External Page objects items: "$ref": "#/components/schemas/external_page" fin_agent_message: title: Fin Agent Message type: object description: A message exchanged within a Fin Agent conversation. x-tags: - Fin Agent properties: author: type: string enum: - user - agent - fin description: The author that created the message. In `conversation_metadata.history`, only `user` and `agent` are accepted. example: user body: type: string description: | The body of the message. Accepts both plain text and HTML format. For the message you send to Fin, this is the user's message. For an `agent` item in `conversation_metadata.history`, it is the agent's message. Fin's response is returned in the format set by `response_format` (HTML by default). example: How can I see my account details? timestamp: type: string format: date-time description: | The timestamp when the message was created. Used to deduplicate messages sent within a 5 minute window. Ideally should include milliseconds for higher precision. Send `timestamp` or `timestamp_ms`; at least one is required. If you send both, `timestamp_ms` is used. On the top-level `message`, sending neither fails with a 422 error (`message: timestamp_ms is required`). In `conversation_metadata.history`, an item with neither causes the whole history to be ignored. example: '2025-01-24T10:01:20.000Z' timestamp_ms: type: string format: date-time description: | The timestamp when the message was created, with millisecond precision. Accepted in place of `timestamp` when you send a message, and also present in webhook event responses (fin_replied). At least one of `timestamp` or `timestamp_ms` is required. example: '2025-01-24T10:01:20.456Z' required: - author - body fin_agent_user: title: Fin Agent User type: object description: A user object representing the user in a Fin Agent conversation. x-tags: - Fin Agent properties: id: type: string description: | The ID of the user. This value will be used to uniquely identify the user during a conversation with Fin. Maps to the user_id field on the Intercom User object. example: '123456' name: type: string description: The name of the user. example: John Doe email: type: string format: email description: The email of the user. example: john.doe@example.com attributes: type: object description: | A hash of attributes associated with the user. Attributes can be used by Fin to target content and responses. Limit to 10 attributes. additionalProperties: true example: plan_type: Pro subscription_status: active required: - id fin_agent_attachment: title: Fin Agent Attachment type: object description: | An attachment object representing a file or URL attachment included with a message. Attachments can be used to provide additional context to Fin. Maximum of 10 attachments per request. x-tags: - Fin Agent properties: type: type: string enum: - url - file description: The type of attachment. example: url url: type: string format: uri description: The URL of the attachment. Required when type is 'url'. Must be publicly accessible. example: https://example.com/document.pdf name: type: string description: The name of the file. Required when type is 'file'. example: screenshot.png content_type: type: string description: The MIME type of the file. Required when type is 'file'. example: image/png data: type: string format: byte description: Base64-encoded file data. Required when type is 'file'. example: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk... required: - type fin_agent_conversation_metadata: title: Fin Agent Conversation Metadata type: object description: Metadata about the conversation, including history and attributes. x-tags: - Fin Agent properties: history: type: array description: | An array of previous messages in the conversation before Fin is initialized. This data provides context to Fin and helps generate a better answer. Limit to the last 10 messages. Only `user` and `agent` authors are accepted. If any item is invalid, for example it has no `timestamp` or `timestamp_ms`, or has another author, the whole history is ignored. maxItems: 10 items: "$ref": "#/components/schemas/fin_agent_message" attributes: type: object description: | A hash of attributes associated with the conversation. These attributes can be used by Fin to provide more contextual responses. Limit to 20 attributes. maxProperties: 20 additionalProperties: true example: priority_level: high department: sales fin_agent_attribute_errors: title: Fin Agent Attribute Errors type: object description: Contains error details if any user or conversation attribute updates failed. x-tags: - Fin Agent properties: user: type: object description: User-related attribute errors. properties: attributes: type: object description: Map of user attribute names to error messages. additionalProperties: type: string example: invalid_attr: User attribute 'invalid_attr' does not exist conversation: type: object description: Conversation-related attribute errors. properties: attributes: type: object description: Map of conversation attribute names to error messages. additionalProperties: type: string example: bad_attr: Conversation attribute 'bad_attr' does not exist fin_agent_status_updated_event: title: Fin Agent Status Updated Event type: object description: | Event fired when Fin's status changes during a conversation. Delivered via webhooks. Fin will report its status to the client via this event. x-tags: - Fin Agent properties: event_name: type: string enum: - fin_status_updated description: The name of the event. example: fin_status_updated conversation_id: type: string description: The ID of the conversation. example: '123456' user_id: type: string description: The ID of the user. example: '7891' status: type: string enum: - thinking - awaiting_user_reply - escalated - resolved - complete description: | Fin's current status. - thinking: Fin has started running a procedure. Not sent on every turn - awaiting_user_reply: Fin has finished replying and is waiting for the user to respond - escalated: The conversation has been escalated to a human - resolved: The user's query has been resolved - complete: Fin has completed its workflow. When CSAT is enabled a csat_requested event may follow example: escalated reason: type: string description: | Optional. A human-readable explanation of why the conversation was escalated. Only present when status is 'escalated'. When you escalate deterministically with `/fin/escalate`, the reason is always "Escalation requested via API". The following reasons apply to Fin-decided escalations when Fin owns the conversation (`/fin/start`, `/fin/procedures/{procedure_id}/run`, and `/fin/reply` on a conversation that was started that way). `/fin/ask` can report any of them, because escalation rules still apply and the conversation can still be routed to a team or finish without resolution. On an Ask, "Escalation requested by user" normally only follows an escalation rule match. - "Escalation requested by user" - "Escalation rule: {rule_name}" - "Escalation rule matched" - "Routed to team" - "Conversation finished without resolution" "Escalation requested by user" is sent whenever Fin decides to hand over, not only when the user asks for a human, for example on a procedure handoff or a custom answer handover. It also follows an escalation rule match, as a second `escalated` event after the rule's reason. While a procedure is running, every escalation Fin decides on reports it. example: Escalation requested via API created_at_ms: type: string format: date-time description: The timestamp the event was created at, with millisecond precision. example: '2025-01-24T10:00:00.123Z' required: - event_name - conversation_id - user_id - status - created_at_ms fin_agent_replied_event: title: Fin Agent Replied Event type: object description: | Event fired when Fin replies to a user. Delivered via webhooks. The content of the response will be contained in the message object. Intermediate replies have status 'replying'; a separate fin_status_updated event with 'awaiting_user_reply' fires once Fin's reply is done. x-tags: - Fin Agent properties: event_name: type: string enum: - fin_replied description: The name of the event. example: fin_replied conversation_id: type: string description: The ID of the conversation. example: '123456' user_id: type: string description: The ID of the user. example: '7891' message: type: object description: Fin's answer to the user's query. properties: id: type: string description: A unique identifier for this message. example: '98765' author: type: string enum: - fin description: The author of the message (always 'fin' for this event). example: fin body: type: string description: The body of Fin's response, in the format given by `format` (HTML by default). example:You can see your account details by clicking on the Account tab in the top right corner of the screen.
format: type: string enum: - html - markdown description: Present only when the request set `response_format` to `markdown`. `markdown` when Fin converted the reply to Markdown, or `html` if it could not convert the reply and sent HTML instead. When absent, `body` is HTML. timestamp_ms: type: string format: date-time description: The timestamp the message was created at, with millisecond precision. example: '2025-01-24T09:01:00.456Z' sources: type: array description: | The content sources Fin used to generate this reply, in the same order as the [n] citation markers in the body. Present only when Fin cited content. items: type: object properties: title: type: string description: The title of the source. example: Managing your account type: type: string enum: - article - external description: Whether the source is an Intercom article or external content. example: article url: type: string description: The URL of the source. example: https://www.example.com/help/en/articles/1-managing-your-account required: - title - type - url example: - title: Managing your account type: article url: https://www.example.com/help/en/articles/1-managing-your-account required: - author - body - timestamp_ms status: type: string enum: - replying - awaiting_user_reply - complete description: | Fin's current status. - replying: Intermediate reply part; more parts may follow - awaiting_user_reply: Legacy status; instead use the fin_status_updated event with 'awaiting_user_reply', which fires once Fin's reply is done - complete: Fin's reply is final and no user reply is expected. Sent for one-shot Ask replies only example: replying created_at_ms: type: string format: date-time description: The timestamp the event was created at, with millisecond precision. example: '2025-01-24T10:00:00.123Z' required: - event_name - conversation_id - user_id - message - status - created_at_ms fin_agent_csat_requested_event: title: Fin Agent CSAT Requested Event type: object description: | Event fired when Fin asks the user to rate the conversation. Delivered via webhooks. Carries the rating options to present to the user; submit the user's choice with POST /fin/csat. Unlike the reply events it has no message — a rating survey is a set of options to choose from, not readable text. x-tags: - Fin Agent properties: event_name: type: string enum: - csat_requested description: The name of the event. example: csat_requested conversation_id: type: string description: The ID of the conversation. example: '123456' user_id: type: string description: The ID of the user. example: '7891' csat: type: object description: The rating survey to present to the user. example: options: - key: good emoji: "😃" label: Great - key: amazing emoji: "🤩" label: Amazing properties: options: type: array description: The ordered rating options to show the user. example: - key: good emoji: "😃" label: Great - key: amazing emoji: "🤩" label: Amazing items: type: object properties: key: type: string enum: - terrible - bad - ok - good - amazing description: The stable key to send back as 'rating' on POST /fin/csat. example: amazing emoji: type: string description: The emoji representing this rating. example: "🤩" label: type: string description: | The human-readable label for this rating, localised to the conversation's detected language. Distinct from 'key' — display the label, but send back the key. example: Amazing required: - key - emoji - label required: - options created_at_ms: type: string format: date-time description: The timestamp the event was created at, with millisecond precision. example: '2025-01-24T10:00:00.123Z' required: - event_name - conversation_id - user_id - csat - created_at_ms file_attribute: title: File type: object description: The value describing a file upload set for a custom attribute properties: type: type: string example: upload name: type: string description: The name of the file example: Screenshot.png url: type: string description: The url of the file. This is a temporary URL and will expire after 30 minutes. example: https://intercom-attachments-1.com/.../Screenshot.png content_type: type: string description: The type of file example: image/png filesize: type: integer description: The size of the file in bytes example: 11308309 width: type: integer description: The width of the file in pixels, if applicable example: 3024 height: type: integer description: The height of the file in pixels, if applicable example: 1964 group_content: title: Group Content type: object description: The Content of a Group. nullable: true properties: type: type: string description: The type of object - `group_content` . enum: - - group_content example: group_content nullable: true name: type: string description: The name of the collection or section. example: Collection name description: type: string description: The description of the collection. Only available for collections. example: " Collection description" group_translated_content: title: Group Translated Content type: object description: The Translated Content of an Group. The keys are the locale codes and the values are the translated content of the Group. nullable: true properties: type: type: string description: The type of object - group_translated_content. nullable: true enum: - - group_translated_content example: group_translated_content ar: description: The content of the group in Arabic "$ref": "#/components/schemas/group_content" bg: description: The content of the group in Bulgarian "$ref": "#/components/schemas/group_content" bs: description: The content of the group in Bosnian "$ref": "#/components/schemas/group_content" ca: description: The content of the group in Catalan "$ref": "#/components/schemas/group_content" cs: description: The content of the group in Czech "$ref": "#/components/schemas/group_content" da: description: The content of the group in Danish "$ref": "#/components/schemas/group_content" de: description: The content of the group in German "$ref": "#/components/schemas/group_content" el: description: The content of the group in Greek "$ref": "#/components/schemas/group_content" en: description: The content of the group in English "$ref": "#/components/schemas/group_content" es: description: The content of the group in Spanish "$ref": "#/components/schemas/group_content" et: description: The content of the group in Estonian "$ref": "#/components/schemas/group_content" fi: description: The content of the group in Finnish "$ref": "#/components/schemas/group_content" fr: description: The content of the group in French "$ref": "#/components/schemas/group_content" he: description: The content of the group in Hebrew "$ref": "#/components/schemas/group_content" hr: description: The content of the group in Croatian "$ref": "#/components/schemas/group_content" hu: description: The content of the group in Hungarian "$ref": "#/components/schemas/group_content" id: description: The content of the group in Indonesian "$ref": "#/components/schemas/group_content" it: description: The content of the group in Italian "$ref": "#/components/schemas/group_content" ja: description: The content of the group in Japanese "$ref": "#/components/schemas/group_content" ko: description: The content of the group in Korean "$ref": "#/components/schemas/group_content" lt: description: The content of the group in Lithuanian "$ref": "#/components/schemas/group_content" lv: description: The content of the group in Latvian "$ref": "#/components/schemas/group_content" mn: description: The content of the group in Mongolian "$ref": "#/components/schemas/group_content" nb: description: The content of the group in Norwegian "$ref": "#/components/schemas/group_content" nl: description: The content of the group in Dutch "$ref": "#/components/schemas/group_content" pl: description: The content of the group in Polish "$ref": "#/components/schemas/group_content" pt: description: The content of the group in Portuguese (Portugal) "$ref": "#/components/schemas/group_content" ro: description: The content of the group in Romanian "$ref": "#/components/schemas/group_content" ru: description: The content of the group in Russian "$ref": "#/components/schemas/group_content" sl: description: The content of the group in Slovenian "$ref": "#/components/schemas/group_content" sr: description: The content of the group in Serbian "$ref": "#/components/schemas/group_content" sv: description: The content of the group in Swedish "$ref": "#/components/schemas/group_content" tr: description: The content of the group in Turkish "$ref": "#/components/schemas/group_content" vi: description: The content of the group in Vietnamese "$ref": "#/components/schemas/group_content" pt-BR: description: The content of the group in Portuguese (Brazil) "$ref": "#/components/schemas/group_content" zh-CN: description: The content of the group in Chinese (China) "$ref": "#/components/schemas/group_content" zh-TW: description: The content of the group in Chinese (Taiwan) "$ref": "#/components/schemas/group_content" granted_company_list: title: Granted Company List type: object description: A list of the company ids a contact has been granted access to. properties: type: type: string description: The type of object enum: - list example: list company_ids: type: array description: The `company_id` values of the companies the contact has been granted access to. items: type: string example: acme-corp pages: allOf: - "$ref": "#/components/schemas/pages_link" type: object description: Pagination details. Null on the replace response, which returns the whole stored set. nullable: true total_count: type: integer description: The total number of companies the contact has been granted access to. example: 2 replace_granted_companies_request: title: Replace Granted Companies Request type: object description: The full set of companies to grant the contact access to. Any company id left out is dropped. required: - company_ids properties: company_ids: type: array description: The `company_id` values of the companies to grant the contact access to. Send an empty array to drop every grant. Maximum of 100 ids. maxItems: 100 items: type: string example: acme-corp example: - acme-corp - '1234' handling_event: title: Handling Event type: object description: A pause or resume event for a conversation required: - teammate - type - timestamp properties: teammate: "$ref": "#/components/schemas/teammate_reference" type: type: string enum: [paused, resumed] description: The type of handling event example: paused timestamp: type: string format: date-time description: ISO8601 timestamp when the event occurred example: "2026-01-09T09:00:00Z" reason: type: string description: Optional reason for the event (e.g., "Paused", "Away") example: Paused nullable: true handling_event_list: title: Handling Event List type: object description: A list of handling events for a conversation properties: handling_events: type: array description: Array of handling events items: "$ref": "#/components/schemas/handling_event" hitl_event: title: HITL Event type: object description: A single event in a Fin human-in-the-loop consultation on a conversation. properties: hitl_cycle_id: type: string description: Identifies the consultation this event belongs to. The same on every event of one consultation, so it is not unique per event. example: 3f2a91c4-8e77-4d61-9a2b-0c5d7e1f4a80 event_type: type: string description: What happened. enum: - fin_consultation_started - fin_draft_proposed - fin_teammate_input_received - fin_draft_revised - fin_consultation_finished example: fin_consultation_started conversation_part_id: type: string description: The conversation part this event relates to, where one exists. example: '4471002' nullable: true rule_id: type: string description: The escalation rule that triggered the consultation, as recorded when it began. Null if no rule triggered it. example: '88' nullable: true rule_name: type: string description: The rule's name as recorded when the consultation began, which may differ from its current name. example: Refunds over $100 nullable: true created_at: type: integer description: Unix timestamp for when the event occurred. Approximate on `fin_draft_proposed`. example: 1767225600 data: type: object description: | Fields specific to this event. Which are present depends on `event_type` — see the endpoint description for the full mapping. properties: channel: type: string description: The channel the conversation was on when Fin consulted a teammate. enum: - email - chat - voice - unknown example: email rule_threshold_percent: type: integer description: The confidence threshold the rule required, as a percentage. example: 60 nullable: true confidence_percent: type: integer description: How confident Fin was in its answer, as a percentage. Compare against `rule_threshold_percent`. example: 42 nullable: true sharp_ask: type: string description: The question Fin put to the teammate. example: How long do refunds take? nullable: true ask_rationale: type: string description: Why Fin needed to ask. example: No article covers refund timelines. nullable: true issue_summary: type: string description: Fin's summary of what the customer needs. example: Customer chasing a refund. nullable: true customer_question: type: string description: The customer's message that prompted the consultation. example: Where is my refund? nullable: true draft: type: string description: The reply Fin proposed to the teammate. example: Refunds are processed within 30 days. nullable: true round_index: type: integer description: Which round of teammate feedback this event belongs to, starting at 1. example: 1 teammate_input: type: string description: The feedback the teammate gave Fin. example: Tell them 5 business days. nullable: true reviewer_admin_id: type: string description: The teammate involved in this event — who gave the feedback, or who approved the draft or took over. example: '4001' nullable: true regeneration_outcome: type: string description: How Fin responded to the feedback. `answer` means it produced a revised draft, and is the only value accompanied by a `fin_draft_revised` event. `no_answer` means it had nothing to send, `failed` that regeneration failed, `consult_teammate` that it asked the teammate again, and `pending` that the consultation ended before Fin responded. example: answer nullable: true revised_draft: type: string description: The reply Fin produced after the teammate's feedback. example: Refunds take 5 business days. nullable: true outcome: type: string description: How the consultation ended. enum: - approved - taken_over - timed_out_sent - timed_out_escalated - superseded example: approved approved_draft_type: type: string description: Whether the teammate approved Fin's original draft or the one it revised after their feedback. enum: - original - revised example: revised nullable: true final_draft: type: string description: The reply as it stood when the consultation ended. example: Refunds take 5 business days. nullable: true sent_text: type: string description: What was sent to the customer. Null when nothing was sent. example: Refunds take 5 business days. nullable: true duration_seconds: type: integer description: How long the consultation took, in seconds. example: 180 nullable: true rounds_count: type: integer description: How many rounds of teammate feedback the consultation had. Only the ten most recent are returned as events, so this can exceed the number of `fin_teammate_input_received` events. example: 1 payload_truncated: type: boolean description: Whether any text on this consultation was too long to store in full and was cut. example: false hitl_event_list: title: HITL Event List type: object description: A list of human-in-the-loop events for a conversation, oldest first. properties: type: type: string description: The type of the object. enum: - list example: list data: type: array description: An array of HITL event objects. items: "$ref": "#/components/schemas/hitl_event" side_conversation_summary: title: Side Conversation Summary type: object description: A side conversation with its conversation parts. properties: side_conversation_id: type: string description: The unique identifier for the side conversation. example: '456' conversation_parts: type: array description: The conversation parts (messages) in this side conversation. items: "$ref": "#/components/schemas/conversation_part" total_count: type: integer description: The total number of conversation parts in this side conversation. example: 1 side_conversation_list: title: Side Conversation List type: object description: A paginated list of side conversations for a conversation. properties: type: type: string description: The type of the response object. enum: - side_conversation.list example: side_conversation.list side_conversations: type: array description: An array of side conversation objects. items: "$ref": "#/components/schemas/side_conversation_summary" total_count: type: integer description: The total number of side conversations. example: 1 pages: type: object description: Pagination metadata. properties: type: type: string enum: - pages example: pages page: type: integer description: The current page number. example: 1 per_page: type: integer description: The number of results per page. example: 25 total_pages: type: integer description: The total number of pages. example: 1 help_center: title: Help Center type: object x-tags: - Help Center description: Help Centers contain collections properties: id: type: string description: The unique identifier for the Help Center which is given by Intercom. example: '123' workspace_id: type: string description: The id of the workspace which the Help Center belongs to. example: hfi1bx4l created_at: type: integer format: date-time description: The time when the Help Center was created. example: 1672928359 updated_at: type: integer format: date-time description: The time when the Help Center was last updated. example: 1672928610 identifier: type: string description: The identifier of the Help Center. This is used in the URL of the Help Center. example: intercom website_turned_on: type: boolean description: Whether the Help Center is turned on or not. This is controlled in your Help Center settings. example: true display_name: type: string description: The display name of the Help Center only seen by teammates. example: Intercom Help Center url: type: string description: The URL for the help center, if you have a custom domain then this will show the URL using the custom domain. example: "https://help.mycompany.com" custom_domain: type: string nullable: true description: Custom domain configured for the help center example: "help.mycompany.com" default: type: boolean description: Whether this help center is the default for the workspace. example: false locales: type: array description: The locales in which the help center is available. items: type: string example: - en - fr help_center_list: title: Help Centers type: object x-tags: - Help Center description: A list of Help Centers belonging to the App properties: type: type: string description: The type of the object - `list`. enum: - list example: list data: type: array description: An array of Help Center objects items: "$ref": "#/components/schemas/help_center" jobs: title: Jobs type: object x-tags: - Jobs description: Jobs are tasks that are processed asynchronously by the Intercom system after being enqueued via the API. This allows for efficient handling of operations that may take time to complete, such as data imports or exports. You can check the status of your jobs to monitor their progress and ensure they are completed successfully. properties: type: type: string description: The type of the object enum: - job id: type: string description: The id of the job that's currently being processed or has completed. example: '20' url: type: string description: API endpoint URL to check the job status. example: https://api.intercom.io/jobs/status/20 status: type: string description: The status of the job execution. enum: - pending - success - failed resource_type: type: string description: The type of resource created during job execution. example: ticket resource_id: type: string description: The id of the resource created during job execution (e.g. ticket id). Only set once the job has succeeded. example: '123' nullable: true resource_url: type: string description: The url of the resource created during job execution. Use this url to fetch the resource. Only set once the job has succeeded. example: https://api.intercom.io/tickets/123 nullable: true required: - id ip_allowlist: title: IP Allowlist type: object description: IP allowlist settings for the workspace. properties: type: type: string description: String representing the object's type. Always has the value `ip_allowlist`. example: ip_allowlist enabled: type: boolean description: Whether the IP allowlist is enabled for the workspace. example: true ip_allowlist: type: array description: | List of allowed IP addresses and/or IP ranges in CIDR notation. Examples: - Single IP: `192.168.0.1` - IP range: `192.168.0.1/24` (allows 192.168.0.0 - 192.168.0.255) items: type: string example: - "192.168.1.0/24" - "10.0.0.1" intercom_version: description: Intercom API version.If you omit the header, the API uses the version set in your app package, and 1.0 if none is set. type: string example: '2.18' enum: - '1.0' - '1.1' - '1.2' - '1.3' - '1.4' - '2.0' - '2.1' - '2.2' - '2.3' - '2.4' - '2.5' - '2.6' - '2.7' - '2.8' - '2.9' - '2.10' - '2.11' - '2.12' - '2.13' - '2.14' - '2.15' - '2.16' - '2.17' - '2.18' linked_object: title: Linked Object type: object description: A linked conversation or ticket. properties: type: type: string description: ticket or conversation enum: - ticket - conversation example: ticket id: type: string description: The ID of the linked object example: '7583' category: type: string description: Category of the Linked Ticket Object. enum: - Customer - Back-office - Tracker - example: Customer nullable: true linked_object_list: title: Linked Objects type: object description: An object containing metadata about linked conversations and linked tickets. Up to 1000 can be returned. properties: type: type: string description: Always list. enum: - list example: list total_count: type: integer description: The total number of linked objects. example: 100 has_more: type: boolean description: Whether or not there are more linked objects than returned. example: false data: type: array description: An array containing the linked conversations and linked tickets. items: "$ref": "#/components/schemas/linked_object" macro: title: Macro type: object x-tags: - Macros description: A macro is a pre-defined response template (saved reply) that can be used to quickly reply to conversations. nullable: true properties: type: type: string description: String representing the object's type. Always has the value `macro`. enum: - macro example: macro id: type: string description: The unique identifier for the macro. example: "123" name: type: string description: The name of the macro. example: "Order Status Update" body: type: string description: The body of the macro in HTML format with placeholders transformed to XML-like format. example: "Hi
New costumes in store for this spooky season
" sender_id: type: integer description: The id of the sender of the news item. Must be a teammate on the workspace. example: 123 state: type: string description: News items will not be visible to your users in the assigned newsfeeds until they are set live. enum: - draft - live example: live deliver_silently: type: boolean description: When set to `true`, the news item will appear in the messenger newsfeed without showing a notification badge. example: true labels: type: array description: Label names displayed to users to categorize the news item. items: type: string example: - Product - Update - New cover_image_url: type: string format: uri description: URL of the image to use as the cover. Must contain `.png` or `.jpg` in lower case, so `.jpeg` and `.PNG` are rejected. Intercom copies the image and serves it from its own signed URL. example: https://example.com/cover.jpg reactions: type: array description: Ordered list of emoji reactions to the news item. Send an empty list to disable reactions. Send at most five, each a single Unicode code point, so an emoji with a skin tone, a joiner sequence or a variation selector (such as ❤️) is rejected. More than five returns a 400, but the news item is still saved as a draft, with no reactions or cover image. items: type: string example: - "\U0001F606" - "\U0001F605" newsfeed_assignments: type: array description: A list of newsfeed_assignments to assign to the specified newsfeed. items: "$ref": "#/components/schemas/newsfeed_assignment" required: - title - sender_id update_news_item_request: description: The body of a request that updates an existing news item. Leaving `labels` or `newsfeed_assignments` out clears them, and leaving `reactions` out disables reactions; every other optional field keeps its current value when left out. type: object title: Update News Item Request properties: title: type: string description: The title of the news item. example: Halloween is here! body: type: string description: The news item body, which may contain HTML. example: "New costumes in store for this spooky season
" sender_id: type: integer description: The id of the sender of the news item. Must be a teammate on the workspace. example: 123 state: type: string description: News items will not be visible to your users in the assigned newsfeeds until they are set live. enum: - draft - live example: live deliver_silently: type: boolean description: When set to `true`, the news item will appear in the messenger newsfeed without showing a notification badge. example: true labels: type: array description: Label names displayed to users to categorize the news item. Send the full list; the labels you leave out are removed. items: type: string example: - Product - Update - New cover_image_url: type: string format: uri description: URL of the image to use as the cover. Must contain `.png` or `.jpg` in lower case, so `.jpeg` and `.PNG` are rejected. Intercom copies the image and serves it from its own signed URL. example: https://example.com/cover.jpg reactions: type: array description: Ordered list of emoji reactions to the news item. Send an empty list to disable reactions. Send at most five, each a single Unicode code point, so an emoji with a skin tone, a joiner sequence or a variation selector (such as ❤️) is rejected. items: type: string example: - "\U0001F606" - "\U0001F605" newsfeed_assignments: type: array description: A list of newsfeed_assignments to assign to the specified newsfeed. Send the full list; the assignments you leave out are removed. items: "$ref": "#/components/schemas/newsfeed_assignment" required: - sender_id newsfeed: title: Newsfeed type: object x-tags: - News description: | A newsfeed is a collection of news items, targeted to a specific audience. Newsfeeds currently cannot be edited through the API, please refer to [this article](https://www.intercom.com/help/en/articles/6362267-getting-started-with-news) to set up your newsfeeds in Intercom. properties: id: type: string description: The unique identifier for the newsfeed which is given by Intercom. example: '12312' type: type: string description: The type of object. enum: - newsfeed example: newsfeed name: type: string description: The name of the newsfeed. This name will never be visible to your users. Returned HTML-escaped, for example `&` as `&`. The News Center newsfeed always returns the name `News center newsfeed`. example: My Newsfeed created_at: type: integer format: timestamp description: Timestamp for when the newsfeed was created. example: 1674917488 updated_at: type: integer format: timestamp description: Timestamp for when the newsfeed was last updated. example: 1674917488 newsfeed_assignment: title: Newsfeed Assignment type: object x-tags: - News description: Assigns a news item to a newsfeed. properties: newsfeed_id: type: integer description: The unique identifier for the newsfeed which is given by Intercom. example: 198313 published_at: type: integer format: timestamp nullable: true description: Publish date of the news item on the newsfeed, use this field if you want to set a publish date in the past (e.g. when importing existing news items). On write, this field will be ignored if the news item state is "draft", and a date in the future is rejected with a `400`. Null while the news item isn't live. example: 1674917488 note: title: Note type: object x-tags: - Notes description: Notes allow you to annotate and comment on your contacts and companies. A note is attached to either a contact or a company, never both. properties: type: type: string description: String representing the object's type. Always has the value `note`. example: note id: type: string description: The id of the note. example: '17495962' created_at: type: integer format: timestamp description: The time the note was created. example: 1674589321 contact: type: object description: Represents the contact that the note was created about. nullable: true properties: type: type: string description: String representing the object's type. Always has the value `contact`. id: type: string description: The id of the contact. example: 214656d0c743eafcfde7f248 company: type: object description: Represents the company that the note was created about. nullable: true properties: type: type: string description: String representing the object's type. Always has the value `company`. id: type: string description: The id of the company. example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 author: type: object nullable: true description: Represents the Admin that created the note. When the note has no recorded admin, this is `null` on a single note and left out of each note in a list. allOf: - "$ref": "#/components/schemas/admin" body: type: string description: The body text of the note. example: "Text for the note.
" note_list: title: Paginated Response type: object description: A paginated list of notes associated with a contact or a company. On the last page, `pages.next` is `null`. These lists never send `pages.prev`. properties: type: type: string description: String representing the object's type. Always has the value `list`. example: list data: type: array description: An array of notes. items: "$ref": "#/components/schemas/note" total_count: type: integer description: A count of the total number of notes. example: 1 pages: "$ref": "#/components/schemas/pages_link" open_conversation_request: title: Open Conversation Request type: object description: Payload of the request to open a conversation properties: message_type: type: string enum: - open example: open admin_id: type: string description: The id of the admin who is performing the action. example: '5017690' assignee_id: type: string description: The `id` of the `admin` or `team` to assign the conversation to when it is opened. Set `0` to unassign it, which clears both the teammate and the team assignee. example: '4324241' skip_notifications: type: boolean description: Option to disable notifications when opening a conversation. Available from API version 2.15. example: true required: - message_type - admin_id pages_link: title: Pagination Object type: object description: | The majority of list resources in the API are paginated to allow clients to traverse data over multiple requests. Their responses are likely to contain a pages object that hosts pagination links which a client can use to paginate through the data without having to construct a query. The link relations for the pages field are as follows. properties: type: type: string example: pages enum: - pages page: type: integer example: 1 next: type: string format: uri description: A link to the next page of results. Omitted or `null` on the last page, depending on the list. Some lists never include `next` or `prev`, so compare `page` with `total_pages` to tell whether more pages remain. nullable: true prev: type: string format: uri description: A link to the previous page of results. Omitted on the first page. nullable: true per_page: type: integer example: 50 total_pages: type: integer example: 1 paginated_response: title: Paginated Response type: object description: Paginated Response properties: type: type: string description: The type of object enum: - list example: list pages: "$ref": "#/components/schemas/pages_link" total_count: type: integer description: A count of the total number of objects. example: 1 data: type: array description: An array of Objects items: anyOf: - "$ref": "#/components/schemas/news_item" - "$ref": "#/components/schemas/newsfeed" part_attachment: title: Part attachment type: object description: The file attached to a part properties: type: type: string description: The type of attachment example: upload name: type: string description: The name of the attachment example: example.png url: type: string description: The URL of the attachment example: https://picsum.photos/200/300 content_type: type: string description: The content type of the attachment example: image/png filesize: type: integer description: The size of the attachment example: 100 width: type: integer description: The width of the attachment example: 100 height: type: integer description: The height of the attachment example: 100 phone_switch: title: Phone Switch type: object description: Phone Switch Response nullable: true properties: type: type: string description: '' enum: - phone_call_redirect default: phone_call_redirect example: phone_call_redirect url: type: string description: The Messenger link for the phone call redirect, which is also the link sent by SMS to the phone number. example: http://via.intercom.io/msgr/1add3dd1-a75e-4a96-96fd-984d16aba059 quick_reply_option: title: Quick Reply Option type: object properties: text: type: string description: The text to display in this quick reply option. uuid: type: string format: uuid description: A unique identifier for this quick reply option. This value will be available within the metadata of the comment conversation part that is created when a user clicks on this reply option. required: - text - uuid register_fin_voice_call_request: title: Register Fin Voice Call Request Payload type: object description: Register a Fin Voice call with Intercom nullable: true required: - phone_number - call_id properties: phone_number: type: string description: Phone number in E.164 format for the call example: '+1234567890' call_id: type: string description: External call identifier from the call provider example: 'call-123-abc' source: type: string description: Source of the call. Can be "five9", "zoom_phone", "nice_cxone", "dialpad", "generic", or "aws_connect". Defaults to "aws_connect", and any other value is treated as "aws_connect". enum: - five9 - zoom_phone - nice_cxone - dialpad - generic - aws_connect example: 'aws_connect' vendor_internal_id: type: string description: Optional vendor-supplied identifier for linking the Fin Voice session to records in the vendor's own systems. Stored as-is and returned on every lookup. Cannot exceed 191 characters. nullable: true maxLength: 191 example: 'vendor-internal-abc-123' data: type: object description: Additional metadata about the call nullable: true example: key: value redact_conversation_request: oneOf: - title: Redact Conversation Part Request type: object description: Payload of the request to redact a conversation part properties: type: type: string enum: - conversation_part description: The type of resource being redacted. example: conversation_part conversation_id: type: string description: The id of the conversation. example: '19894788788' conversation_part_id: type: string description: The id of the conversation_part. example: '19381789428' required: - type - conversation_id - conversation_part_id - title: Redact Conversation Source Request type: object description: Payload of the request to redact a conversation source properties: type: type: string enum: - source description: The type of resource being redacted. example: source conversation_id: type: string description: The id of the conversation. example: '19894788788' source_id: type: string description: The id of the source. example: '19894781231' required: - type - conversation_id - source_id reference: title: Reference type: object description: reference to another object properties: type: type: string description: '' example: contact id: type: string nullable: true description: '' example: 1a2b3c reply_conversation_request: oneOf: - "$ref": "#/components/schemas/contact_reply_conversation_request" - "$ref": "#/components/schemas/admin_reply_conversation_request" - "$ref": "#/components/schemas/bot_reply_conversation_request" role: title: Role type: object x-tags: - Roles description: A role defines what a teammate can do in a workspace. The teammates endpoint returns the id and name of the role a teammate holds; this schema adds the role's description. properties: type: type: string description: Value is always "role" example: role id: type: string description: The id of the role example: '991267902' name: type: string description: The name of the role example: Support Lead description: type: string nullable: true description: The description of the role example: Can view and reply to conversations role_list: title: Role List type: object x-tags: - Roles description: A list of role objects in the workspace. properties: type: type: string description: The type of the object enum: - list example: list data: type: array description: A list of role objects items: "$ref": "#/components/schemas/role" example: - type: role id: '991267902' name: Support Lead description: Can view and reply to conversations search_request: description: Search using Intercoms Search APIs. type: object title: Search data properties: query: oneOf: - "$ref": "#/components/schemas/single_filter_search_request" title: Single filter search request - "$ref": "#/components/schemas/multiple_filter_search_request" title: multiple filter search request pagination: "$ref": "#/components/schemas/starting_after_paging" sort: type: object description: How to sort the results. Without it, the endpoint's default order is used. properties: field: type: string description: The field to sort by, one of the searchable fields listed for the endpoint. Some fields can't be sorted; the endpoint's Sorting section says which. A missing `field`, or one that isn't searchable, returns a `400` error with the code `invalid_field`. example: updated_at order: type: string enum: - ascending - descending default: descending description: The sort order. example: descending required: - field required: - query company_search_request: description: Search for companies using Intercom's Search API. type: object title: Company search request properties: query: oneOf: - "$ref": "#/components/schemas/single_filter_search_request" title: Single filter search request - "$ref": "#/components/schemas/multiple_filter_search_request" title: multiple filter search request pagination: "$ref": "#/components/schemas/starting_after_paging" sort: type: object description: An optional object to sort the results by. properties: field: type: string description: The field to sort the results on. example: created_at order: type: string description: The order to sort the results in. Defaults to `descending` when omitted. Values other than `ascending` or `descending` return a `400` error with code `invalid_sort_order`. enum: - ascending - descending default: descending example: descending required: - query segment: title: Segment type: object x-tags: - Segments description: A segment is a group of your contacts defined by the rules that you set. properties: type: type: string description: The type of object. enum: - segment example: segment id: type: string description: The unique identifier representing the segment. example: 56203d253cba154d39010062 name: type: string description: The name of the segment. example: Active created_at: type: integer description: The time the segment was created. example: 1394621988 updated_at: type: integer description: The time the segment was updated. example: 1394622004 person_type: type: string description: 'Type of the contact: contact (lead) or user.' enum: - contact - user example: contact count: type: integer description: The number of items in the user segment. It's returned when the request has `include_count` with a value. A company segment only gets a count when a contact segment has the same name, and it shows that segment's count. example: 3 nullable: true segment_list: title: Segment List type: object description: This will return a list of Segment Objects. The list is not paginated. properties: type: type: string description: The type of the object enum: - segment.list example: segment.list segments: type: array description: A list of Segment objects items: "$ref": "#/components/schemas/segment" single_filter_search_request: title: Single Filter Search Request description: Search using Intercoms Search APIs with a single filter. type: object properties: field: type: string description: The accepted field that you want to search on. example: created_at operator: type: string enum: - "=" - "!=" - IN - NIN - "<" - "<=" - ">" - ">=" - "~" - "!~" - "^" - "$" description: |- The accepted operators you can use to define how you want to search for the value. Operator support depends on the field's data type. The breakdown below is for Contacts search; the other search endpoints that share this schema accept a different set per field: - `string` fields: `=`, `!=`, `IN`, `NIN`, `~`, `!~`, `^`, `$` - `tag_id`: `=` and `!=` only. Every other operator returns an error. - `boolean` fields: `=`, `!=`, `IN`, `NIN` - `integer` fields: `=`, `!=`, `IN`, `NIN`, `<`, `>`, `<=`, `>=` - `datetime` fields (standard contact timestamps such as `created_at` and `last_seen_at`): `=`, `!=`, `<`, `>`, `<=`, `>=`. Filtering is on the exact second, in UTC. - `date` fields (Date custom attributes): `=`, `<`, `>` only. `!=`, `<=`, and `>=` are not supported and return an error. Values are truncated to a whole UTC day. example: ">" value: oneOf: - type: string - type: integer - type: boolean - type: array items: oneOf: - type: string - type: integer description: The value that you want to search on. example: '73732934' nullable: true sla_applied: title: Applied SLA type: object nullable: true description: | The SLA Applied object contains the details for which SLA has been applied to this conversation. Important: if there are any canceled sla_events for the conversation - meaning an SLA has been manually removed from a conversation, the sla_status will always be returned as null. properties: type: type: string description: object type example: conversation_sla_summary sla_name: type: string description: The name of the SLA as given by the teammate when it was created. example: '' sla_status: type: string enum: - hit - missed - canceled - active description: |- SLA statuses: - `hit`: If there’s at least one hit event in the underlying sla_events table, and no “missed” or “canceled” events for the conversation. - `missed`: If there are any missed sla_events for the conversation and no canceled events. If there’s even a single missed sla event, the status will always be missed. A missed status is not applied when the SLA expires, only the next time a teammate replies. - `active`: An SLA has been applied to a conversation, but has not yet been fulfilled. SLA status is active only if there are no “hit, “missed”, or “canceled” events. example: hit snooze_conversation_request: title: Snooze Conversation Request type: object description: Payload of the request to snooze a conversation properties: message_type: type: string enum: - snoozed example: snoozed admin_id: type: string description: The id of the admin who is performing the action. example: '5017691' snoozed_until: type: integer format: timestamp description: The time you want the conversation to reopen. example: 1673609604 required: - message_type - admin_id - snoozed_until social_profile: title: Social Profile type: object description: A Social Profile allows you to label your contacts, companies, and conversations and list them using that Social Profile. properties: type: type: string description: value is "social_profile" example: social_profile name: type: string description: The name of the Social media profile example: Facebook url: type: string format: uri description: The name of the Social media profile example: http://twitter.com/th1sland starting_after_paging: title: 'Pagination: Starting After' type: object nullable: true properties: per_page: type: integer description: The number of results to fetch per page. example: 2 starting_after: type: string description: The cursor to use in the next request to get the next page of results. nullable: true example: your-cursor-from-response subscription_type: title: Subscription Types type: object x-tags: - Subscription Types description: A subscription type lets customers easily opt out of non-essential communications without missing what's important to them. properties: type: type: string description: The type of the object - subscription example: subscription id: type: string description: The unique identifier representing the subscription type. example: '123456' state: type: string description: The state of the subscription type. enum: - live - draft - archived example: live default_translation: "$ref": "#/components/schemas/translation" translations: type: array description: An array of translations objects with the localised version of the subscription type in each available locale within your translation settings. items: "$ref": "#/components/schemas/translation" consent_type: type: string description: Describes the type of consent. enum: - opt_out - opt_in example: opt_in content_types: type: array description: The message types that this subscription supports - can contain `email` or `sms_message`. items: type: string enum: - email - sms_message example: email subscription_type_list: title: Subscription Types type: object description: A list of subscription type objects. properties: type: type: string description: The type of the object enum: - list example: list data: type: array description: A list of subscription type objects associated with the workspace . items: "$ref": "#/components/schemas/subscription_type" tag: title: Tag type: object x-tags: - Tags description: A tag allows you to label your contacts, companies, conversations, tickets, articles, internal articles, content snippets and external pages, and list them using that tag. properties: type: type: string description: value is "tag" example: tag id: type: string description: The id of the tag example: '123456' name: type: string description: The name of the tag example: Test tag applied_at: type: integer format: timestamp nullable: true description: The time when the tag was applied to the object. Only present when the tag is returned as part of a tagging operation on a contact, conversation, ticket, article, internal article, content snippet, or external page, when listing the tags on a contact, or when it is returned as part of an external page. `null` when the tag has just been removed from an article, internal article, content snippet or external page. Removing a tag from a contact, conversation or ticket returns the original value. example: 1663597223 applied_by: type: object nullable: true description: The admin who applied the tag. Only present when the tag is returned as part of a tagging operation on a contact, conversation, ticket, article, internal article, content snippet, or external page, when listing the tags on a contact, or when it is returned as part of an external page. `null` when the tag has just been removed from an article, internal article, content snippet or external page. Removing a tag from a contact, conversation or ticket returns the original value. When no admin is recorded, `type` is `nobody_admin` and `id` is `null`. allOf: - "$ref": "#/components/schemas/reference" tag_basic: title: Tag type: object x-tags: - Tags description: A tag allows you to label your contacts, companies, and conversations and list them using that tag. properties: type: type: string description: value is "tag" example: tag id: type: string description: The id of the tag example: '123456' name: type: string description: The name of the tag example: Test tag tag_create_response: title: Create or Update Tag Response description: The response for creating or updating a tag, including the entities that were tagged or untagged. allOf: - "$ref": "#/components/schemas/tag_basic" - type: object properties: users: type: array nullable: true description: The users that were tagged or untagged. items: type: object properties: id: type: string description: The Intercom ID of the user. example: '6329e838deab40166d1a53f7' tagged: type: boolean description: Whether the user was tagged (true) or untagged (false). example: true example: [] companies: type: array nullable: true description: The companies that were tagged or untagged. items: type: object properties: id: type: string description: The Intercom ID of the company. example: '6329e838deab40166d1a5400' tagged: type: boolean description: Whether the company was tagged (true) or untagged (false). example: true example: [] tag_company_request: description: You can tag a single company or a list of companies. type: object title: Tag Company Request Payload properties: name: type: string maxLength: 191 description: The name of the tag, which will be created if not found. Names can be at most 191 characters long. example: Independent companies: type: array items: properties: id: type: string description: The Intercom defined id representing the company. example: 531ee472cce572a6ec000006 company_id: type: string description: The company id you have defined for the company. example: '6' name: type: string description: The name of the company, used to look it up when neither `id` nor `company_id` is given. example: Intercom description: The id, company_id or name of the company can be passed as input parameters. Companies that cannot be found are skipped. required: - name - companies tag_list: title: Tags type: object description: A list of tags objects in the workspace. properties: type: type: string description: The type of the object enum: - list example: list data: type: array description: A list of tags objects associated with the workspace . items: "$ref": "#/components/schemas/tag" tag_multiple_users_request: description: You can tag or untag a list of users. type: object title: Tag Users Request Payload properties: name: type: string maxLength: 191 description: The name of the tag, which will be created if not found. Names can be at most 191 characters long. example: Independent users: type: array description: The id, user_id or email of the user can be passed as input parameters. Users that cannot be found are skipped. items: properties: id: type: string description: The Intercom defined id representing the user. example: 5f7f0d217289f8d2f4262080 user_id: type: string description: The user id you have defined for the user, used to look it up when `id` is not given. example: '25' email: type: string description: The email address of the user, used to look it up when neither `id` nor `user_id` is given. example: jane@example.com untag: type: boolean description: Set to true to remove the tag from this user instead of applying it. example: true required: - name - users tags: title: Tags type: object description: A list of tags objects associated with a conversation, article or internal article properties: type: type: string description: The type of the object enum: - tag.list example: tag.list tags: type: array description: A list of tags objects associated with the object. items: "$ref": "#/components/schemas/tag" team: title: Team type: object x-tags: - Teams description: Teams are groups of admins in Intercom. properties: type: type: string description: Value is always "team" example: team id: type: string description: The id of the team example: '814865' name: type: string description: The name of the team example: Example Team admin_ids: type: array description: The list of admin IDs that are a part of the team. example: - 493881 items: type: integer admin_priority_level: "$ref": "#/components/schemas/admin_priority_level" assignment_limit: type: integer nullable: true description: The assignment limit for the team. This field is only present when the team's distribution type is load balanced. example: 10 distribution_method: type: string nullable: true description: Describes how assignments are distributed among the team members example: "round_robin" team_handling_segment: title: Team Handling Segment type: object description: A period one teammate actively handled the conversation, attributed to the team assigned to it at the time. Teammate identity is not included. required: - team - started_at - ended_at properties: team: type: object nullable: true description: The team assigned when the period ran, or null if no team was assigned required: - type - id - name properties: type: type: string enum: - team example: team id: type: string example: '814865' name: type: string example: Billing started_at: type: string format: date-time example: "2026-09-28T10:10:00Z" ended_at: type: string format: date-time nullable: true description: Null while the period is still open example: "2026-09-28T10:20:00Z" start_reason: type: string nullable: true description: team_change when the team changed while the teammate kept handling without a break, otherwise null example: team_change end_reason: type: string nullable: true description: Why the period ended (switch, assignment, reassign, snooze, close, away, auto_away, session_drop, team_change). Null while the period is still open. example: assignment team_handling_segment_list: title: Team Handling Segment List type: object properties: team_handling_segments: type: array items: "$ref": "#/components/schemas/team_handling_segment" example: - team: type: team id: '814865' name: Billing started_at: "2026-09-28T10:10:00Z" ended_at: "2026-09-28T10:20:00Z" start_reason: end_reason: assignment team_list: title: Team List type: object description: This will return a list of team objects for the App. properties: type: type: string description: The type of the object enum: - team.list example: team.list teams: type: array description: A list of team objects items: "$ref": "#/components/schemas/team" team_priority_level: title: Team Priority Level type: object nullable: true description: Admin priority levels for teams properties: primary_team_ids: type: array description: The primary team ids for the team nullable: true example: - 814865 items: type: integer secondary_team_ids: type: array description: The secondary team ids for the team nullable: true example: - 493881 items: type: integer teammate_reference: title: Teammate Reference type: object description: A reference to a teammate required: - type - id - name properties: type: type: string enum: [admin, team, bot] description: The type of teammate example: admin id: type: integer description: The unique identifier of the teammate example: 123 name: type: string description: The display name of the teammate example: Jane Example email: type: string format: email description: The email address of the teammate (optional for teams/bots) example: jane@example.com nullable: true ticket: title: Ticket type: object x-tags: - Tickets description: Tickets are how you track requests from your users. nullable: true properties: type: type: string description: Always ticket enum: - ticket default: ticket example: ticket id: type: string description: The unique identifier for the ticket which is given by Intercom. example: '1295' ticket_id: type: string description: The ID of the Ticket used in the Intercom Inbox and Messenger. Do not use ticket_id for API queries. example: '1390' category: type: string description: Category of the Ticket. enum: - Customer - Back-office - Tracker example: Customer channel: type: string nullable: true description: The channel the ticket was created through. Defaults to messenger when no channel is specified at creation. example: messenger ticket_attributes: "$ref": "#/components/schemas/ticket_custom_attributes" ticket_state: "$ref": "#/components/schemas/ticket_state" ticket_type: "$ref": "#/components/schemas/ticket_type" contacts: "$ref": "#/components/schemas/ticket_contacts" admin_assignee_id: type: integer description: The id representing the admin assigned to the ticket. If it's not assigned to an admin it will return 0. example: 1295 team_assignee_id: type: integer description: The id representing the team assigned to the ticket. If it's not assigned to a team it will return 0. example: 1295 created_at: type: integer format: date-time description: The time the ticket was created as a UTC Unix timestamp. example: 1663597223 updated_at: type: integer format: date-time description: The last time the ticket was updated as a UTC Unix timestamp. example: 1663597260 open: type: boolean description: Whether or not the ticket is open. If false, the ticket is closed. example: true snoozed_until: type: integer format: date-time description: The time the ticket will be snoozed until as a UTC Unix timestamp. If null, the ticket is not currently snoozed. example: 1663597260 linked_objects: "$ref": "#/components/schemas/linked_object_list" ticket_parts: "$ref": "#/components/schemas/ticket_parts" is_shared: type: boolean description: Whether or not the ticket is shared with the customer. example: true company_id: type: string nullable: true description: The ID of the company the ticket is associated with. Omitted when the ticket has no company. example: 531ee472cce572a6ec000006 previous_ticket_state_id: type: string nullable: true description: The ID of the previous ticket state from the most recent state change. Returns null if no state change history exists. Useful for tracking state transitions for reporting and compliance. example: '7493' ticket_deleted: title: Ticket Deleted type: object description: deleted ticket object properties: id: type: string description: The unique identifier for the ticket. example: 5ba682d23d7cf92bef87bfd4 object: type: string description: always ticket enum: - ticket example: ticket deleted: type: boolean description: Whether the ticket is deleted or not. example: true ticket_contacts: title: Contacts type: object x-tags: - Tickets description: The list of contacts affected by a ticket. properties: type: type: string description: always contact.list enum: - contact.list example: contact.list contacts: type: array description: The list of contacts affected by this ticket. items: "$ref": "#/components/schemas/contact_reference" ticket_custom_attributes: title: Ticket Attributes type: object description: An object containing the different attributes associated to the ticket as key-value pairs. For the default title and description attributes, the keys are `_default_title_` and `_default_description_`. additionalProperties: anyOf: - type: string nullable: true - type: number - type: boolean - type: array items: "$ref": "#/components/schemas/file_attribute" - "$ref": "#/components/schemas/file_attribute" example: _default_title_: Found a bug _default_description_: The button's not working ticket_list: title: Ticket List type: object description: Tickets are how you track requests from your users. properties: type: type: string description: Always ticket.list enum: - ticket.list example: ticket.list tickets: type: array description: The list of ticket objects items: "$ref": "#/components/schemas/ticket" total_count: type: integer description: A count of the total number of objects. example: 12345 pages: "$ref": "#/components/schemas/cursor_pages" ticket_part: title: Ticket Part type: object x-tags: - Tickets description: A Ticket Part represents a message in the ticket. properties: type: type: string description: Always ticket_part example: ticket_part id: type: string description: The id representing the ticket part. example: '3' part_type: type: string description: The type of ticket part. example: comment body: type: string nullable: true description: The message body, which may contain HTML. example: "Okay!
" previous_ticket_state: type: string enum: - submitted - in_progress - waiting_on_customer - resolved description: The previous state of the ticket. example: submitted ticket_state: type: string enum: - submitted - in_progress - waiting_on_customer - resolved description: The state of the ticket. example: submitted created_at: type: integer format: date-time description: The time the ticket part was created. example: 1663597223 updated_at: type: integer format: date-time description: The last time the ticket part was updated. example: 1663597260 assigned_to: "$ref": "#/components/schemas/reference" nullable: true description: The assignee this ticket_part assigned the ticket to, as a reference whose `type` is `admin`, `team` or `bot`. When the part unassigned the ticket, `type` is `nobody_admin` and `id` is `null`. Null when the part did not change the assignment, or when the assignee has since been deleted. admin_assignee_id: type: integer nullable: true description: The id of the teammate that this ticket_part assigned the ticket to, or 0 if the part removed the teammate. Null or absent when the part did not change the teammate, including an unassignment that did not name which assignee it cleared. A bot is reported here, because assignment treats anything that is not a team as a teammate. example: 991268013 team_assignee_id: type: integer nullable: true description: The id of the team that this ticket_part assigned the ticket to, or 0 if the part removed the team. Null or absent when the part did not change the team, including an unassignment that did not name which assignee it cleared. A part can assign a team and a teammate at the same time, for example when the team uses Round Robin distribution and the teammate is resolved inline. In that case assigned_to reports only the teammate, and these two fields report each assignee separately. example: 5017691 author: "$ref": "#/components/schemas/ticket_part_author" attachments: title: Ticket part attachments type: array description: A list of attachments for the part. items: "$ref": "#/components/schemas/part_attachment" external_id: type: string nullable: true description: The external id of the ticket part example: abcd1234 redacted: type: boolean description: Whether or not the ticket part has been redacted. example: false app_package_code: type: string nullable: false example: text-integration description: The app package code if this part was created via API. Note this field won't show if the part was not created via API. translations: type: object nullable: true description: >- A map of the reply text keyed by locale code. Backs the `ticket.admin.replied.translated` webhook topic. `original` holds the locale code the reply was written in, when it is known; every other key holds the reply translated into that locale. properties: original: type: string description: The locale code identifying the language the reply was originally written in. example: en additionalProperties: type: string example: original: en en: 'Hello
' fr: 'Bonjour
' updated_attribute_data: title: Updated Attribute type: object description: The updated attribute data of the ticket part. Only present for attribute update parts. nullable: true properties: attribute: type: object description: Information about the attribute that was updated. properties: type: type: string description: The type of the object. Always 'attribute'. enum: - attribute example: attribute id: type: string description: The unique identifier of the attribute. example: "7" label: type: string description: The human-readable name of the attribute. example: "Progress" required: - type - id - label value: type: object description: The new value of the attribute. properties: type: type: string description: The type of the object. Always 'value'. enum: - value example: value id: oneOf: - type: string description: The value for text/number/decimal/boolean/date attributes, or the ID of the list option for list attributes. nullable: true example: "Fast" - type: array description: Array of file IDs for file attributes. items: type: integer example: [2] label: oneOf: - type: string description: The display value for text/number/decimal/boolean/date/list attributes. example: "Fast" - type: array description: Array of file names for file attributes. items: type: string example: ["photo.png"] required: - type - id - label required: - attribute - value ticket_part_author: title: Ticket part author type: object description: The author that wrote or triggered the part. Can be a bot, admin, team or user. properties: type: type: string description: The type of the author example: admin enum: - admin - bot - team - user id: type: string description: The id of the author example: '274' name: type: string nullable: true description: The name of the author example: Operator email: type: string format: email description: The email of the author example: operator+abcd1234@intercom.io ticket_parts: title: Ticket Parts type: object description: A list of Ticket Part objects for each note and event in the ticket. There is a limit of 500 parts. properties: type: type: string description: '' enum: - ticket_part.list example: ticket_part.list ticket_parts: title: Tickt Parts type: array description: A list of Ticket Part objects for each ticket. There is a limit of 500 parts. items: "$ref": "#/components/schemas/ticket_part" total_count: type: integer description: '' example: 2 ticket_reply: title: A Ticket Part representing a note, comment, or quick_reply on a ticket type: object description: A Ticket Part representing a note, comment, or quick_reply on a ticket properties: type: type: string description: Always ticket_part example: ticket_part enum: - ticket_part id: type: string description: The id representing the part. example: '3' part_type: type: string description: Type of the part example: note enum: - note - comment - quick_reply body: type: string nullable: true description: The message body, which may contain HTML. example: "Okay!
" created_at: type: integer format: date-time description: The time the note was created. example: 1663597223 updated_at: type: integer format: date-time description: The last time the note was updated. example: 1663597260 author: "$ref": "#/components/schemas/ticket_part_author" attachments: title: Ticket part attachments type: array description: A list of attachments for the part. items: "$ref": "#/components/schemas/part_attachment" redacted: type: boolean description: Whether or not the ticket part has been redacted. example: false app_package_code: type: string nullable: false example: text-integration description: The app package code if this part was created via API. Note this field won't show if the part was not created via API. translations: type: object nullable: true description: >- A map of the reply text keyed by locale code. Backs the `ticket.admin.replied.translated` webhook topic. `original` holds the locale code the reply was written in, when it is known; every other key holds the reply translated into that locale. properties: original: type: string description: The locale code identifying the language the reply was originally written in. example: en additionalProperties: type: string example: original: en en: 'Hello
' fr: 'Bonjour
' ticket_request_custom_attributes: title: Ticket Attributes type: object description: The attributes set on the ticket. When setting the default title and description attributes, the attribute keys that should be used are `_default_title_` and `_default_description_`. When setting ticket type attributes of the list attribute type, the key should be the attribute name and the value of the attribute should be the list item id, obtainable by [listing the ticket type](ref:get_ticket-types). For example, if the ticket type has an attribute called `priority` of type `list`, the key should be `priority` and the value of the attribute should be the guid of the list item (e.g. `de1825a0-0164-4070-8ca6-13e22462fa7e`). For a `files` attribute, pass an array of upload ids; for a `relationship` attribute, pass an array of related object ids as strings. additionalProperties: anyOf: - type: string nullable: true - type: number - type: boolean - type: array items: type: integer - type: array items: type: string example: _default_title_: Found a bug _default_description_: The button is not working ticket_state: title: Ticket State type: object x-tags: - Tickets description: A ticket state, used to define the state of a ticket. nullable: true properties: type: type: string description: String representing the object's type. Always has the value `ticket_state`. example: ticket_state id: type: string description: The id of the ticket state example: '12' category: type: string description: The category of the ticket state example: in_progress enum: - submitted - in_progress - waiting_on_customer - resolved internal_label: type: string description: The state the ticket is currently in, in a human readable form - visible in Intercom example: With Dev Team external_label: type: string description: The state the ticket is currently in, in a human readable form - visible to customers, in the messenger, email and tickets portal. example: In Progress ticket_state_detailed: title: Ticket State type: object x-tags: - Tickets description: A ticket state, used to define the state of a ticket. nullable: true properties: type: type: string description: String representing the object's type. Always has the value `ticket_state`. example: ticket_state id: type: string description: The id of the ticket state example: '12' category: type: string description: The category of the ticket state example: in_progress enum: - submitted - in_progress - waiting_on_customer - resolved internal_label: type: string description: The state the ticket is currently in, in a human readable form - visible in Intercom example: With Dev Team external_label: type: string description: The state the ticket is currently in, in a human readable form - visible to customers, in the messenger, email and tickets portal. example: In Progress archived: type: boolean description: Whether the ticket state is archived example: false ticket_types: type: object description: A list of the ticket types that use this ticket state. properties: type: type: string description: String representing the object's type. Always has the value `list`. example: list data: type: array description: A summary of each ticket type that uses this ticket state. It doesn't include the ticket type's attributes or ticket states; retrieve the ticket type for those. items: type: object properties: type: type: string description: String representing the object's type. Always has the value `ticket_type`. example: ticket_type id: type: string description: The id representing the ticket type. example: '1295' name: type: string description: The name of the ticket type example: Bug description: type: string description: The description of the ticket type example: A bug that has been reported. icon: type: string description: The icon of the ticket type example: "\U0001F41E" archived: type: boolean description: Whether the ticket type is archived or not. example: false is_internal: type: boolean description: "`true` if tickets of this type are internal only and can never be shared with customers; `false` if they are, or can be, shared." example: false category: type: string description: Category of the Ticket Type. enum: - Customer - Back-office - Tracker example: Customer ticket_state_list: title: Ticket States type: object description: A list of ticket states associated with a given ticket type. properties: type: type: string description: String representing the object's type. Always has the value `list`. example: list data: type: array description: A list of ticket states associated with a given ticket type. items: "$ref": "#/components/schemas/ticket_state_detailed" ticket_type: title: Ticket Type type: object x-tags: - Tickets description: A ticket type, used to define the data fields to be captured in a ticket. nullable: true properties: type: type: string description: String representing the object's type. Always has the value `ticket_type`. example: ticket_type id: type: string description: The id representing the ticket type. example: '1295' category: type: string description: Category of the Ticket Type. enum: - Customer - Back-office - Tracker example: Customer name: type: string description: The name of the ticket type example: Bug description: type: string description: The description of the ticket type example: A bug that has been reported. icon: type: string description: The icon of the ticket type example: "\U0001F41E" workspace_id: type: string description: The id of the workspace that the ticket type belongs to. example: ecahpwf5 ticket_type_attributes: "$ref": "#/components/schemas/ticket_type_attribute_list" ticket_states: title: Ticket States type: object description: A list of ticket states associated with a given ticket type. properties: type: type: string description: String representing the object's type. Always has the value `list`. example: list data: type: array description: A list of ticket states associated with a given ticket type. items: "$ref": "#/components/schemas/ticket_state" archived: type: boolean description: Whether the ticket type is archived or not. example: false is_internal: type: boolean description: "`true` if tickets of this type are internal only and can never be shared with customers; `false` if they are, or can be, shared." example: false created_at: type: integer format: timestamp description: The date and time the ticket type was created. updated_at: type: integer format: timestamp description: The date and time the ticket type was last updated. ticket_type_attribute: title: Ticket Type Attribute type: object description: Ticket type attribute, used to define each data field to be captured in a ticket. nullable: true properties: type: type: string description: String representing the object's type. Always has the value `ticket_type_attribute`. example: ticket_type_attribute id: type: string description: The id representing the ticket type attribute. example: '1' workspace_id: type: string description: The id of the workspace that the ticket type attribute belongs to. example: ecahpwf5 name: type: string description: The name of the ticket type attribute example: Title description: type: string description: The description of the ticket type attribute example: Bug title. data_type: type: string description: 'The type of the data attribute (allowed values: "string list integer decimal boolean datetime files")' example: string input_options: type: object nullable: true description: Input options for the attribute. For a string attribute this holds `multiline` when it was set; for a list attribute it holds the list's options. When the attribute has no input options, this is `null`, or left out of the create and update ticket type attribute responses. example: multiline: true order: type: integer description: The order of the attribute against other attributes example: 1 required_to_create: type: boolean description: Whether the attribute is required or not for teammates. default: false example: false required_to_create_for_contacts: type: boolean description: Whether the attribute is required or not for contacts. default: false example: false visible_on_create: type: boolean description: Whether the attribute is visible or not to teammates. default: true example: false visible_to_contacts: type: boolean description: Whether the attribute is visible or not to contacts. default: true example: false default: type: boolean description: Whether the attribute is built in or not. example: true ticket_type_id: type: integer description: The id of the ticket type that the attribute belongs to. example: 42 archived: type: boolean description: Whether the ticket type attribute is archived or not. example: false created_at: type: integer format: timestamp description: The date and time the ticket type attribute was created. updated_at: type: integer format: timestamp description: The date and time the ticket type attribute was last updated. ticket_type_attribute_list: title: Ticket Type Attributes type: object description: A list of attributes associated with a given ticket type. properties: type: type: string description: String representing the object's type. Always has the value `list`. example: list data: type: array description: A list of ticket type attributes associated with a given ticket type. items: "$ref": "#/components/schemas/ticket_type_attribute" ticket_type_list: title: Ticket Types type: object description: A list of ticket types associated with a given workspace. properties: type: type: string description: String representing the object's type. Always has the value `list`. example: list data: type: array description: A list of ticket_types associated with a given workspace. items: "$ref": "#/components/schemas/ticket_type" translation: title: Translation type: object description: A translation object contains the localised details of a subscription type. properties: name: type: string description: The localised name of the subscription type. example: Announcements description: type: string description: The localised description of the subscription type. example: Offers, product and feature announcements locale: type: string description: The two character identifier for the language of the translation object. example: en untag_company_request: description: You can tag a single company or a list of companies. type: object title: Untag Company Request Payload properties: name: type: string maxLength: 191 description: The name of the tag which will be untagged from the company. Names can be at most 191 characters long. example: Independent companies: type: array items: properties: id: type: string description: The Intercom defined id representing the company. example: 531ee472cce572a6ec000006 company_id: type: string description: The company id you have defined for the company. example: '6' name: type: string description: The name of the company, used to look it up when neither `id` nor `company_id` is given. example: Intercom untag: type: boolean description: Always set to true example: true required: - untag description: The id, company_id or name of the company can be passed as input parameters. Companies that cannot be found are skipped. required: - name - companies update_audience_request: title: Update Audience Request type: object description: The request payload for updating an audience. All fields are optional — only provided fields will be updated. properties: name: type: string description: The name of the audience. example: Enterprise Accounts predicates: type: array description: The predicates that define which contacts belong to the audience. items: "$ref": "#/components/schemas/predicate" example: - attribute: custom_attributes.plan type: string comparison: eq value: enterprise role_predicates: type: array description: Role-based predicates that further filter audience membership by contact role. items: "$ref": "#/components/schemas/predicate" example: - attribute: role type: role comparison: in value: - user_role - contact_role - visitor_role publish_article_draft_request: description: | Optional body for publishing a staged article draft. On a single-language workspace the body can be omitted. On a multilingual workspace, `locales` is required and lists which locales' drafts to publish. type: object title: Publish Article Draft Request Payload nullable: true properties: locales: type: array description: | The locales whose staged drafts should be published. Required on multilingual workspaces; each locale must have a pending draft. items: type: string example: - en - fr author_id: type: integer description: The id of the teammate to publish as. This is only used when the access token is not associated with a teammate, and is then required; omitting it returns 400 `parameter_not_found`. Otherwise the authenticating teammate is used. Must be a teammate on the workspace. example: 1295 update_article_request: description: You can Update an Article type: object title: Update Article Request Payload nullable: true properties: title: type: string description: The title of the article. For multilingual articles, this will be the title of the default language's content. example: Thanks for everything description: type: string description: The description of the article. For multilingual articles, this will be the description of the default language's content. example: Description of the Article body: type: string description: The content of the article in HTML. For multilingual articles, this will be the body of the default language's content. Mutually exclusive with `body_markdown`. Empty `` tags are kept as blank paragraphs instead of being dropped. example: "
This is the body in html
" body_markdown: type: string description: The content of the article in markdown. For multilingual articles, this will be the body of the default language's content. An alternative to `body` — you can provide content as markdown instead of HTML. Mutually exclusive with `body`. example: "## Updated heading\n\nNew content.\n" author_id: type: integer description: The id of the author of the article. For multilingual articles, this will be the id of the author of the default language's content. Must be a teammate on the help center's workspace. example: 1295 state: type: string description: Whether the article will be `published` or will be a `draft`. Omitting this field leaves the publish state unchanged, so a draft stays a draft and an edit to a published article goes live immediately unless that article already has a pending draft or a scheduled publish time is set in the same request. For multilingual articles, this will be the state of the default language's content. enum: - published - draft example: draft parent_id: type: string nullable: true description: >- The id of the collection or section to move the article into. Omitting this field or sending `null` leaves the article's parent unchanged. Send `home` to remove the article from its collection so that it stands alone. example: '18' parent_ids: type: array description: The ids of the parent collections to place this article in. Send an empty array to remove the article from all collections. When provided, this takes precedence over `parent_id`. items: type: integer example: - 18 - 19 translated_content: "$ref": "#/components/schemas/article_translated_content" folder_id: type: integer nullable: true description: The ID of the folder to place this article in, or null to remove it from its folder. example: 6 audience_ids: type: array nullable: true description: >- The list of audience IDs to assign to this article for Fin AI Agent targeting. Sending a top-level `audience_ids` broadcasts the same set to every locale. Sending `audience_ids: []` clears all audience memberships from every locale. For per-locale targeting, use `translated_content.Hello world!
" url: type: string description: The URL of the external page. This will be used by Fin to link end users to the page it based its answer on. If omitted, the page's existing URL is removed. example: https://help.example.com/en/articles/1234-getting-started ai_agent_availability: type: boolean description: Whether the external page should be used to answer questions by AI Agent. example: true ai_copilot_availability: type: boolean description: Whether the external page should be used to answer questions by AI Copilot. example: true ai_sales_agent_availability: type: boolean description: Whether the external page should be used to answer questions by AI Sales Agent. example: true locale: type: string description: The language code of the external page, for example `en` or `fr`. It must be a language supported by the workspace. example: en source_id: type: integer description: The unique identifier for the source of the external page which was given by Intercom. Every external page must be associated with a Content Import Source which represents the place it comes from and from which it inherits a default audience (configured in the UI). For a new source, make a POST request to the Content Import Source endpoint and an ID for the source will be returned in the response. example: 1234 external_id: type: string description: The identifier for the external page which was given by the source. Must be unique for the source. example: '5678' audience_ids: type: array nullable: true description: >- The list of audience IDs to target this external page to for Fin AI Agent. Replaces all existing audience memberships. Omitting the field leaves existing audience memberships unchanged. Pass `[]` to clear all audience memberships. Unknown audience IDs return a `404` error. items: type: integer example: - 1 - 2 required: - title - html - locale - source_id - external_id update_ticket_request: description: You can update a Ticket type: object title: Update Ticket Request Payload properties: ticket_attributes: type: object description: The attributes set on the ticket. example: _default_title_: example _default_description_: having a problem ticket_state_id: type: string description: The ID of the ticket state associated with the ticket type. example: '123' company_id: type: string description: The ID of the company that the ticket is associated with. The unique identifier for the company which is given by Intercom. Set to nil to remove company. example: 5f4d3c1c-7b1b-4d7d-a97e-6095715c6632 open: type: boolean description: Specify if a ticket is open. Set to false to close a ticket. Closing a ticket will also unsnooze it. example: true is_shared: type: boolean description: "Set to `true` to share a ticket with the customer. Only a ticket that isn't shared yet can be shared: a Back-office ticket, of a ticket type that isn't internal, that is linked to a conversation with no other shared linked ticket. Sending `false`, or `true` for a ticket that is already shared (Customer tickets are shared by default) or can't be shared (Tracker tickets), returns a `400`." example: true snoozed_until: type: integer format: timestamp description: The time you want the ticket to reopen. example: 1673609604 admin_id: type: integer description: The ID of the admin performing ticket update. Needed for workflows execution and attributing actions to specific admins. example: 123 assignee_id: type: string description: The ID of the admin or team to which the ticket is assigned. Set this 0 to unassign it. example: '123' update_ticket_type_attribute_request: description: You can update a Ticket Type Attribute type: object title: Update Ticket Type Attribute Request Payload properties: name: type: string description: The name of the ticket type attribute example: Bug Priority description: type: string description: The description of the attribute presented to the teammate or contact example: Priority level of the bug required_to_create: type: boolean description: Whether the attribute is required to be filled in when teammates are creating the ticket in Inbox. default: false example: false required_to_create_for_contacts: type: boolean description: Whether the attribute is required to be filled in when contacts are creating the ticket in Messenger. default: false example: false visible_on_create: type: boolean description: Whether the attribute is visible to teammates when creating a ticket in Inbox. default: true example: true visible_to_contacts: type: boolean description: Whether the attribute is visible to contacts when creating a ticket in Messenger. default: true example: true multiline: type: boolean description: Whether the attribute allows multiple lines of text (only applicable to string attributes) example: false list_items: type: string description: A comma delimited list of items for the attribute value (only applicable to list attributes) example: Low Priority,Medium Priority,High Priority allow_multiple_values: type: boolean description: Whether the attribute allows multiple files to be attached to it (only applicable to file attributes) example: false archived: type: boolean description: Whether the attribute should be archived and not shown during creation of the ticket (it will still be present on previously created tickets) example: false update_ticket_type_request: description: | The request payload for updating a ticket type. You can copy the `icon` property for your ticket type from [Twemoji Cheatsheet](https://twemoji-cheatsheet.vercel.app/) type: object title: Update Ticket Type Request Payload nullable: true properties: name: type: string description: The name of the ticket type. example: Bug description: type: string description: The description of the ticket type. example: A bug has been occured category: type: string description: Category of the Ticket Type. enum: - Customer - Back-office - Tracker example: Customer icon: type: string description: The icon of the ticket type. example: "\U0001F41E" default: "\U0001F39F️" archived: type: boolean description: The archived status of the ticket type. example: false is_internal: type: boolean description: Whether the tickets associated with this ticket type are intended for internal use only or will be shared with customers. This is currently a limited attribute. example: false default: false update_visitor_request: description: Update an existing visitor. type: object title: Update Visitor Request Payload properties: id: type: string description: A unique identified for the visitor which is given by Intercom. Used to look the visitor up; it is not changed by this request. example: 8a88a590-e user_id: type: string description: A unique identified for the visitor which is given by you. Used to look the visitor up; it is not changed by this request. example: '123' name: type: string description: The visitor's name. example: Christian Bale email: type: string description: The visitor's email address. Sending this promotes the visitor to a lead and the response becomes a contact object. example: winstonsmith@truth.org phone: type: string description: The visitor's phone number. example: "+353871234567" owner_id: type: integer description: The id of the teammate who owns the visitor. example: 991267734 last_request_at: type: integer description: The time the visitor was last seen, as a Unix timestamp. example: 1663597223 last_seen_ip: type: string description: The IP address the visitor was last seen from. example: 1.2.3.4 last_seen_user_agent: type: string description: The user agent the visitor was last seen with. example: Mozilla/5.0 unsubscribed_from_emails: type: boolean description: Whether the visitor is unsubscribed from emails. example: false language_override: type: string description: The language to send the visitor messages in, overriding the language we detect. example: fr avatar: type: string description: An image URL for the visitor's avatar. example: https://example.org/128Wu8Q.jpg companies: type: array description: The companies to associate the visitor with. Only applied when the same request sends `email`, which promotes the visitor to a lead. items: type: object utm_campaign: type: string description: The campaign the visitor arrived from. example: intercom-link utm_content: type: string description: The content the visitor arrived from. example: banner utm_medium: type: string description: The medium the visitor arrived from. example: email utm_source: type: string description: The source the visitor arrived from. example: Intercom utm_term: type: string description: The search term the visitor arrived from. example: messenger custom_attributes: type: object description: The custom attributes which are set for the visitor. additionalProperties: anyOf: - type: string nullable: true - type: integer - type: number - type: boolean example: paid_subscriber: true monthly_spend: 155.5 team_mates: 9 anyOf: - required: - id - required: - user_id visitor: title: Visitor type: object description: Visitors are useful for representing anonymous people that have not yet been identified. They usually represent website visitors. Visitors are not visible in Intercom platform. The Visitors resource provides methods to fetch, update, convert and delete. nullable: true properties: type: type: string description: Value is 'visitor' default: visitor example: visitor id: type: string description: The Intercom defined id representing the Visitor. example: 530370b477ad7120001d user_id: type: string description: Automatically generated identifier for the Visitor. example: 8a88a590-e1c3-41e2-a502-e0649dbf721c anonymous: type: boolean description: Identifies if this visitor is anonymous. example: false email: type: string format: email description: The email of the visitor. example: jane.doe@example.com phone: type: string nullable: true description: The phone number of the visitor. example: 555-555-5555 name: type: string nullable: true description: The name of the visitor. example: Jane Doe pseudonym: type: string nullable: true description: The pseudonym of the visitor. example: Red Duck from Dublin avatar: type: object properties: type: type: string description: '' default: avatar example: avatar image_url: type: string format: uri nullable: true description: This object represents the avatar associated with the visitor. example: https://example.com/avatar.png app_id: type: string description: The id of the app the visitor is associated with. example: hfi1bx4l companies: type: object properties: type: type: string description: The type of the object enum: - company.list example: company.list companies: type: array description: Companies are returned in a reduced form here, with only these four keys. items: type: object properties: type: type: string description: The type of the object enum: - company example: company company_id: type: string nullable: true description: The company id you have defined for the company. example: '625' id: type: string description: The Intercom defined id representing the company. example: 531ee472cce572a6ec000006 name: type: string description: The name of the company. example: Blue Sun location_data: type: object properties: type: type: string description: '' default: location_data example: location_data city_name: type: string description: The city name of the visitor. example: Dublin continent_code: type: string description: The continent code of the visitor. example: EU country_code: type: string description: The country code of the visitor. example: IRL country_name: type: string description: The country name of the visitor. example: Ireland postal_code: type: string description: The postal code of the visitor. example: D02 N960 region_name: type: string description: The region name of the visitor. example: Leinster timezone: type: string description: The timezone of the visitor. example: Europe/Dublin last_request_at: type: integer description: The time the Lead last recorded making a request. example: 1663597260 created_at: type: integer description: The time the Visitor was added to Intercom. example: 1663597223 remote_created_at: type: integer description: The time the Visitor was added to Intercom. example: 1663597223 signed_up_at: type: integer description: The time the Visitor signed up for your product. example: 1663597223 updated_at: type: integer description: The last time the Visitor was updated. example: 1663597260 session_count: type: integer description: The number of sessions the Visitor has had. example: 1 social_profiles: type: object properties: type: type: string description: The type of the object enum: - social_profile.list example: social_profile.list social_profiles: type: array items: type: string owner_id: type: string nullable: true description: The id of the admin that owns the Visitor. example: '5169261' unsubscribed_from_emails: type: boolean description: Whether the Visitor is unsubscribed from emails. example: false marked_email_as_spam: type: boolean description: Identifies if this visitor has marked an email as spam. example: false has_hard_bounced: type: boolean description: Identifies if this visitor has had a hard bounce. example: false tags: type: object properties: type: type: string description: The type of the object enum: - tag.list example: tag.list tags: type: array items: properties: type: type: string description: The type of the object enum: - tag example: tag id: type: string description: The id of the tag. example: '8482' name: type: string description: The name of the tag. example: tag_name segments: type: object properties: type: type: string description: The type of the object enum: - segment.list example: segment.list segments: type: array items: type: object properties: type: type: string description: The type of the object enum: - segment example: segment id: type: string description: The Intercom defined id representing the segment. example: 56203d455f71e8285f000020 custom_attributes: type: object description: The custom attributes you have set on the Visitor. additionalProperties: anyOf: - type: string nullable: true - type: integer - type: number - type: boolean referrer: type: string nullable: true description: The referer of the visitor. example: https://www.google.com/ utm_campaign: type: string nullable: true description: The utm_campaign of the visitor. example: intercom-link utm_content: type: string nullable: true description: The utm_content of the visitor. example: banner utm_medium: type: string nullable: true description: The utm_medium of the visitor. example: email utm_source: type: string nullable: true description: The utm_source of the visitor. example: Intercom utm_term: type: string nullable: true description: The utm_term of the visitor. example: messenger do_not_track: type: boolean nullable: true description: Identifies if this visitor has do not track enabled. example: false visitor_deleted_object: title: Visitor Deleted Object type: object description: Response returned when an object is deleted properties: id: type: string description: The unique identifier for the visitor which is given by Intercom. example: 530370b477ad7120001d type: type: string description: The type of object which was deleted enum: - visitor example: visitor user_id: type: string description: Automatically generated identifier for the Visitor. example: 8a88a590-e1c3-41e2-a502-e0649dbf721c workflow_export: title: Workflow Export type: object description: A workflow export containing the complete workflow configuration. properties: export_version: type: string description: The version of the export format. example: "1.0" exported_at: type: string format: date-time description: The timestamp when the export was generated. example: "2026-01-26T12:00:00Z" app_id: type: integer description: The workspace identifier. example: 12345 workflow: type: object description: The workflow configuration. properties: id: type: string description: The unique identifier for the workflow. This is not the ruleset ID that the export endpoint's `id` path parameter expects. example: "67890" title: type: string description: The title of the workflow. example: "My Workflow" description: type: string nullable: true description: The description of the workflow. example: "A workflow that handles customer inquiries" trigger_type: type: string description: The type of trigger that starts this workflow. example: "inbound_conversation" state: type: string description: The current state of the workflow. enum: - live - draft - paused example: "live" target_channels: type: array items: type: string description: The channels this workflow targets. example: ["chat"] preferred_devices: type: array items: type: string description: The preferred devices for this workflow. example: ["desktop", "mobile"] created_at: type: string format: date-time description: When the workflow was created. example: "2025-06-15T10:30:00Z" updated_at: type: string format: date-time description: When the workflow was last updated. example: "2026-01-20T14:45:00Z" targeting: type: object nullable: true description: The targeting rules for this workflow. snapshot: type: object nullable: true description: The current snapshot of workflow steps and configuration. attributes: type: array items: type: object description: Custom attributes defined for this workflow. embedded_rules: type: array items: type: object description: Rules embedded within the workflow steps. securitySchemes: bearerAuth: type: http scheme: bearer responses: Unauthorized: description: Unauthorized content: application/json: examples: Unauthorized: value: type: error.list request_id: 12a938a3-314e-4939-b773-5cd45738bd21 errors: - code: unauthorized message: Access Token Invalid schema: "$ref": "#/components/schemas/error" TypeNotFound: description: Not Found content: application/json: examples: TypeNotFound: value: type: error.list request_id: 12a938a3-314e-4939-b773-5cd45738bd21 errors: - code: not_found message: Custom object type `undefined` not found schema: "$ref": "#/components/schemas/error" ObjectNotFound: description: Not Found content: application/json: examples: ObjectNotFound: value: type: error.list request_id: 12a938a3-314e-4939-b773-5cd45738bd21 errors: - code: not_found message: Object not found CustomObjectNotFound: value: type: error.list request_id: 12a938a3-314e-4939-b773-5cd45738bd21 errors: - code: not_found message: Custom object instance not found IntegrationNotFound: value: type: error.list request_id: 12a938a3-314e-4939-b773-5cd45738bd21 errors: - code: not_found message: Integration not found schema: "$ref": "#/components/schemas/error" BadRequest: description: Bad Request content: application/json: examples: BadRequest: value: type: error.list request_id: 12a938a3-314e-4939-b773-5cd45738bd21 errors: - code: parameter_invalid message: Parameter invalid schema: "$ref": "#/components/schemas/error" servers: - url: https://api.intercom.io description: The production API server - url: https://api.eu.intercom.io description: The european API server - url: https://api.au.intercom.io description: The australian API server security: - bearerAuth: [] tags: - name: Admins description: Everything about your Admins - name: AI Content description: | With the AI Content APIs, you can create and manage External Pages and Content Import Sources for your Fin Content Library. *External Pages* are pages that you want Fin to be able to answer questions about. The API for External Pages is a great way to ingest into your Fin Content Library pages that are not publicly accessible and hence can't be crawled by Intercom. *Content Import Sources* are the sources of those pages, and they are used to determine the default audience for the pages (configured via the UI). You should create a Content Import Source for each source of External Pages that you want to ingest into your Fin Content Library. You can then iterate through the content from that source via its API and POST it to the External Pages endpoint. That endpoint has an *external_id* parameter which allows you to specify the identifier from the source. The endpoint will then either create a new External Page or update an existing one as appropriate.", - name: Articles description: Everything about your Articles - name: Audiences description: Everything about your Audiences - name: Auth Tokens description: | Read and write the third-party credentials stored in your workspace, so you can find the id of the credential a data connector should authenticate with, and store a new one without leaving your integration. Reading requires an OAuth token with the `read_auth_tokens` scope; creating and updating require the `write_auth_tokens` scope and an access token associated with a teammate. You can create a `text` credential to send yourself, or an `oauth` credential whose access token Intercom obtains and refreshes automatically via the client-credentials grant. Only credentials with a `token_type` of `text` can be updated. No endpoint ever returns a credential value, client secret, refresh configuration, or OAuth configuration. - name: Away Status Reasons description: Everything about your Away Status Reasons - name: Banners description: | Retrieve the banners a contact matches and record dismissals, so you can display banners on surfaces outside the Messenger (native mobile apps, kiosks, embedded tools). These endpoints require an OAuth token with the `read_write_users` scope. Requesting a contact's banners records an impression for each banner returned, and dismissals are shared with the web Messenger. - name: Brands description: Everything about your Brands - name: Calls description: Everything about your Calls - name: Companies description: Everything about your Companies - name: Contacts description: Everything about your contacts - name: Content description: Search and operations over Knowledge Hub content — articles, snippets, external pages, uploaded files, and internal articles. - name: Content Snippets description: Everything about your Content Snippets - name: Conversations description: Everything about your Conversations externalDocs: description: What is a conversation? url: https://www.intercom.com/help/en/articles/4323904-what-is-a-conversation - name: Conversations Attributes description: Manage custom attributes for conversations - name: Custom Object Instances description: | Everything about your Custom Object instances. {% admonition type="warning" name="Permission Requirements" %} From now on, to access this endpoint, you need additional permissions. Please head over to the [Developer Hub](https://app.intercom.com/a/apps/_/developer-hub) app package authentication settings to configure the required permissions. {% /admonition %} - name: Data Attributes description: Everything about your Data Attributes - name: Data Connectors description: Everything about your Data Connectors - name: Data Events description: Everything about your Data Events - name: Data Export description: Export message delivery and engagement statistics (opens, clicks, replies, completions, dismissals, unsubscribes, bounces) for outbound content such as Emails, Posts, Custom Bots, Surveys, Tours, and Series. - name: Ecommerce Connectors description: | Upload and manage product catalogs via ecommerce connectors. Supports single-file uploads (up to 99 MB) and multipart uploads for larger catalogs. - name: Dynamic Content description: Everything about your Dynamic Content - name: Emails description: Everything about your Email Settings - name: Fin Agent description: | Access Fin programmatically via the Fin Agent API endpoints. {% admonition type="warning" %} To request access to the Fin Agent API, go to **Settings > Integrations > Fin Agent API** in your workspace and tell us about your use case. Once access is granted, **Fin Agent API** appears under **Fin AI Agent > Deploy**. {% /admonition %} Integration centres on the Fin Agent API endpoints — start a conversation with `/fin/start` and continue it with `/fin/reply`, or drive Fin from your own agent with `/fin/capabilities`, `/fin/ask`, `/fin/procedures/{procedure_id}/run`, and `/fin/escalate` — plus a set of events that notify your application of Fin's status and responses. Events are delivered via webhooks. You can also record a customer satisfaction rating with `/fin/csat`. **Events** Configure a webhook endpoint in the Fin Agent API settings to receive events. See the [setup guide](/docs/guides/fin-agent-api/setup) for configuration details. - `fin_status_updated` - Fired when Fin's status changes (awaiting_user_reply, escalated, resolved, complete) - `fin_replied` - Fired when Fin sends a reply to the user - `csat_requested` - Fired when Fin asks the user to rate the conversation (submit the choice with `POST /fin/csat`) All webhook requests include an `X-Fin-Agent-API-Webhook-Signature` header for request validation. - name: Folders - name: Help Center description: Everything about your Help Center - name: Internal Articles description: Everything about your Internal Articles - name: IP Allowlist description: | Manage IP allowlist settings for your workspace. The IP Allowlist API allows you to configure which IP addresses teammates can use your workspace from, in the web app and mobile apps. This is useful for restricting teammate access to specific corporate networks or VPNs. It doesn't apply to REST API requests, which use a separate REST API allowlist that this API doesn't manage. {% admonition type="info" name="Authentication" %} This endpoint requires the `manage_ip_allowlist` OAuth scope. {% /admonition %} - name: Jobs description: Everything about jobs - name: Macros description: Operations related to saved replies (macros) in conversations x-displayName: Macros - name: Messages description: Everything about your messages - name: News description: Everything about your News externalDocs: description: News explained url: https://www.intercom.com/help/en/articles/6362251-news-explained - name: Notes description: Everything about your Notes - name: Office Hours description: | Manage office hours schedules and their exceptions. These endpoints require an OAuth token with the `read_write_office_hours` scope. - name: Reporting Data Export description: Everything about Reporting Data Export. See this [article](https://www.intercom.com/help/en/articles/12089688-api-metrics-documentation) for details on using the data to generate various metrics. - name: Roles description: Everything about your Roles - name: Segments description: Everything about your Segments - name: Subscription Types description: Everything about subscription types - name: Switch description: Everything about Switch externalDocs: description: 'Meet Switch: from on hold to messaging in just a few taps' url: https://www.intercom.com/switch - name: Tags description: Everything about tags - name: Teams description: Everything about your Teams - name: Ticket States description: Everything about your ticket states - name: Ticket Type Attributes description: Everything about your ticket type attributes - name: Ticket Types description: Everything about your ticket types - name: Tickets description: Everything about your tickets - name: Visitors description: Everything about your Visitors - name: WhatsApp description: Everything about your WhatsApp messages - name: Workflows description: Everything about your Workflows