The intercom API reference.
Intercom API (2.14)
AI Content
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.",
Custom Object Instances
Everything about your Custom Object instances.
From now on, to access this endpoint, you need additional permissions. Please head over to the Developer Hub app package authentication settings to configure the required permissions.
Fin Agent
Access Fin programmatically via the Fin Agent API endpoints.
The Fin Agent API is currently under managed availability. Please reach out to your accounts team to discuss access and tailored, hands-on support.
Integration is centered around two endpoints (/fin/start and /fin/reply) and a set of webhook events that notify your application of Fin's status and responses.
Webhook Events
Configure a webhook endpoint in the Fin Agent API settings to receive events. See the setup guide for configuration details.
fin_status_updated- Fired when Fin's status changes (escalated, resolved, complete)fin_replied- Fired when Fin sends a reply to the user
All webhook requests include an X-Fin-Agent-API-Webhook-Signature header for request validation.
Fin Agent Message
A message exchanged within a Fin Agent conversation.
The body of the message. Accepts both plain text and HTML format. When sending a message to Fin, this should contain the user's message. Fin's response will be returned as HTML.
The timestamp when the message was created. Used to deduplicate messages sent within a 5 minute window. Ideally should include milliseconds for higher precision.
{ "author": "user", "body": "How can I see my account details?", "timestamp": "2025-01-24T10:01:20.000Z", "timestamp_ms": "2025-01-24T10:01:20.456Z" }
Fin Agent User
A user object representing the user in a Fin Agent conversation.
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.
{ "id": "123456", "name": "John Doe", "email": "john.doe@example.com", "attributes": { "plan_type": "Pro", "subscription_status": "active" } }
Fin Agent Attachment
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.
The URL of the attachment. Required when type is 'url'. Must be publicly accessible.
{ "type": "url", "url": "https://example.com/document.pdf", "name": "screenshot.png", "content_type": "image/png", "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk..." }
Fin Agent Conversation Metadata
Metadata about the conversation, including history and attributes.
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.
{ "history": [ { … } ], "attributes": { "priority_level": "high", "department": "sales" } }
Fin Agent Start Request
Request payload for initializing a Fin conversation.
The ID of the conversation that is calling Fin via this API.
A message exchanged within a Fin Agent conversation.
The author that created the message.
The body of the message. Accepts both plain text and HTML format. When sending a message to Fin, this should contain the user's message. Fin's response will be returned as HTML.
The timestamp when the message was created. Used to deduplicate messages sent within a 5 minute window. Ideally should include milliseconds for higher precision.
A user object representing the user in a Fin Agent conversation.
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.
An array of attachments to include with the message. Maximum of 10 attachments.
{ "conversation_id": "ext-123", "message": { "author": "user", "body": "How can I see my account details?", "timestamp": "2025-01-24T10:01:20.000Z", "timestamp_ms": "2025-01-24T10:01:20.456Z" }, "user": { "id": "123456", "name": "John Doe", "email": "john.doe@example.com", "attributes": { … } }, "attachments": [ { … } ], "conversation_metadata": { "history": [ … ], "attributes": { … } } }
Fin Agent Reply Request
Request payload for sending a user reply to Fin.
A message exchanged within a Fin Agent conversation.
The author that created the message.
The body of the message. Accepts both plain text and HTML format. When sending a message to Fin, this should contain the user's message. Fin's response will be returned as HTML.
The timestamp when the message was created. Used to deduplicate messages sent within a 5 minute window. Ideally should include milliseconds for higher precision.
A user object representing the user in a Fin Agent conversation.
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.
{ "conversation_id": "123456", "message": { "author": "user", "body": "How can I see my account details?", "timestamp": "2025-01-24T10:01:20.000Z", "timestamp_ms": "2025-01-24T10:01:20.456Z" }, "user": { "id": "123456", "name": "John Doe", "email": "john.doe@example.com", "attributes": { … } }, "attachments": [ { … } ] }
Fin Agent Response
Response from the Fin Agent API endpoints.
Fin's current status in the conversation workflow.
- thinking: Fin is currently thinking about a response
- awaiting_user_reply: Fin is waiting for a user to reply
- escalated: The conversation has been escalated
- resolved: The user's query has been resolved
- complete: Fin has completed its workflow
The timestamp the response was created at, with millisecond precision.
{ "conversation_id": "ext-123", "user_id": "user-456", "status": "thinking", "created_at_ms": "2025-01-24T10:00:00.123Z", "errors": { "user": { … }, "conversation": { … } } }
Fin Agent Status Updated Event
Webhook event fired when Fin's status changes during a conversation. Fin will report its status to the client via this event.
The name of the event.
Fin's current status.
- escalated: The conversation has been escalated to a human
- resolved: The user's query has been resolved
- complete: Fin has completed its workflow
Optional. A human-readable explanation of why the conversation was escalated. Only present when status is 'escalated'. Possible values include:
- "Escalation requested by user"
- "Escalation rule: {rule_name}"
- "Escalation rule matched"
- "Routed to team"
- "Conversation finished without resolution"
{ "event_name": "fin_status_updated", "conversation_id": "123456", "user_id": "7891", "status": "escalated", "reason": "Escalation requested by user", "created_at_ms": "2025-01-24T10:00:00.123Z" }
Fin Agent Replied Event
Webhook event fired when Fin replies to a user. The content of the response will be contained in the message object. Fin's status will update to 'awaiting_user_reply'.
Fin's answer to the user's query.
The author of the message (always 'fin' for this event).
The HTML body of Fin's response.
Fin's current status (always 'awaiting_user_reply' for this event).
{ "event_name": "fin_replied", "conversation_id": "123456", "user_id": "7891", "message": { "author": "fin", "body": "<p>You can see your account details by clicking on the <em>Account</em> tab in the top right corner of the screen.</p>", "timestamp_ms": "2025-01-24T09:01:00.456Z" }, "status": "awaiting_user_reply", "created_at_ms": "2025-01-24T10:00:00.123Z" }
Request
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.
The Fin Agent API is currently under managed availability. Please reach out to your accounts team to discuss access.
Once Fin is initialized, it progresses through a series of statuses such as thinking, 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.
The ID of the conversation that is calling Fin via this API.
A message exchanged within a Fin Agent conversation.
The author that created the message.
The body of the message. Accepts both plain text and HTML format. When sending a message to Fin, this should contain the user's message. Fin's response will be returned as HTML.
The timestamp when the message was created. Used to deduplicate messages sent within a 5 minute window. Ideally should include milliseconds for higher precision.
A user object representing the user in a Fin Agent conversation.
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.
An array of attachments to include with the message. Maximum of 10 attachments.
- The production API serverhttps://api.intercom.io/fin/start
- The european API serverhttps://api.eu.intercom.io/fin/start
- The australian API serverhttps://api.au.intercom.io/fin/start
- curl
- Node.js
- Ruby
- PHP
- Python
- Java
- Go
- C#
- R
curl -i -X POST \
https://api.intercom.io/fin/start \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: 2.14' \
-d '{
"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"
}
}'Fin conversation started successfully
Fin's current status in the conversation workflow.
- thinking: Fin is currently thinking about a response
- awaiting_user_reply: Fin is waiting for a user to reply
- escalated: The conversation has been escalated
- resolved: The user's query has been resolved
- complete: Fin has completed its workflow
The timestamp the response was created at, with millisecond precision.
{ "conversation_id": "ext-123", "user_id": "user-456", "status": "thinking", "created_at_ms": "2025-01-24T10:00:00.123Z" }
Request
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.
The Fin Agent API is currently under managed availability. Please reach out to your accounts team to discuss access.
A message exchanged within a Fin Agent conversation.
The author that created the message.
The body of the message. Accepts both plain text and HTML format. When sending a message to Fin, this should contain the user's message. Fin's response will be returned as HTML.
The timestamp when the message was created. Used to deduplicate messages sent within a 5 minute window. Ideally should include milliseconds for higher precision.
A user object representing the user in a Fin Agent conversation.
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.
- The production API serverhttps://api.intercom.io/fin/reply
- The european API serverhttps://api.eu.intercom.io/fin/reply
- The australian API serverhttps://api.au.intercom.io/fin/reply
- curl
- Node.js
- Ruby
- PHP
- Python
- Java
- Go
- C#
- R
curl -i -X POST \
https://api.intercom.io/fin/reply \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: 2.14' \
-d '{
"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 sent successfully
Fin's current status in the conversation workflow.
- thinking: Fin is currently thinking about a response
- awaiting_user_reply: Fin is waiting for a user to reply
- escalated: The conversation has been escalated
- resolved: The user's query has been resolved
- complete: Fin has completed its workflow
The timestamp the response was created at, with millisecond precision.
{ "conversation_id": "ext-123", "user_id": "user-456", "status": "thinking", "created_at_ms": "2025-01-24T10:00:00.123Z" }
Reporting Data Export
Everything about Reporting Data Export. See this article for details on using the data to generate various metrics.