Skip to main content

Connect My Intercom

This guide explains how to connect and secure Intercom as a support chat in your White-Label app.

Toe Wai Shan avatar
Written by Toe Wai Shan
Updated over 2 months ago

If you want to use Intercom as a support chat in your White-Label app, follow this guide to connect and secure your workspace properly.


1. Register for Intercom Startup Program

To get started, you need:

  1. APP_ID

  2. Secret Key

    • Required for Messenger security (see below).


2. Secure Your Messenger with JWTs

JSON Web Tokens (JWTs) are the recommended way to secure your Messenger. They prevent unauthorized access, impersonation, or data leaks.

How it works:

  • JWTs are server-side generated based on:

    • user_id (mandatory)

    • Optional payload with additional user data

    • Messenger API Secret Key

  • Intercom uses the JWT to verify the identity of the user for every session.

Why use JWTs:

  • Prevents bad actors from accessing conversations.

  • Ensures only authenticated users can interact with your Messenger.

  • Strongly recommended for all installations.

Already using HMAC Identity Verification? See the migration guide to switch to JWT for enhanced security.


3. Setting Up Messenger Security

You can enable, disable, or adjust Messenger Security in Intercom:

  • Follow the instructions and code examples for your language/framework.

  • Note: Disabling this feature during development is possible but makes your workspace vulnerable.

Best Practices for JWT Implementation

  1. Token Expiration

    • Match the token lifetime to your app’s session length.

    • Shorter-lived tokens improve security.

  2. Token Refresh

    • Provide fresh tokens periodically, especially if user info changes.

  3. Rotate Secret Keys


4. Identity Verification Options

  • Recommended: JWT-based verification

  • Legacy support: HMAC-based Identity Verification

  • Tip: Switch to JWT for all new integrations.


5. Troubleshooting

jwt decoder.gif

Common issues and solutions:

  • Messenger not working everywhere:
    Ensure Messenger Security is enabled on all platforms (web, iOS, Android).

  • JWT generation errors:

    • Always use the user’s user_id for token creation.

    • Use the correct secret key from your workspace settings.

    • Avoid exposing your secret key in public/frontend code. If leaked, rotate immediately.

  • Debugging:


6. Key Takeaways

  • Always secure your Intercom Messenger with JWTs.

  • Use the APP_ID and secret key correctly across all platforms.

  • Rotate secret keys regularly and refresh JWT tokens when needed.

  • Test Messenger on all devices (web, iOS, Android) to ensure consistent functionality.

  • Use Intercom’s tools and logs for troubleshooting.


✅ With this setup, your Intercom integration will be secure, consistent, and ready to support your White-Label app users safely.

Did this answer your question?