Ui/iFrame integrations

Build custom UI integrations with iFrames that interact with Missive using JavaScript API.

iFrame integrations

You can develop your own integration that is injected into Missive with an iframe that can interact with our application via a JavaScript library.

Library

Include this script in your integration page. Check out the JavaScript API.

<script src="https://integrations.missiveapp.com/missive.js"></script>

Styles

For your convenience, we also provide a stylesheet for you to include if you want your integration to match our styles. Not only does it accelerate development, it will also make your integration support all of our themes by default. Check out our CSS styleguidearrow-up-right.

<link href="https://integrations.missiveapp.com/missive.css" rel="stylesheet">

Development

https is required when adding a custom integration to Missive. During development, we suggest using a tool like Caddyarrow-up-right or Ngrokarrow-up-right to create a secure tunnel to your local development server.

Debugging

To debug your integration, you need access to the browser console:

  1. Open the Command Bar with ⌘/Ctrl + K

  2. Search for OPEN_DEV_TOOLS

  3. Select the command to open the browser developer tools

This gives you access to the full browser console where you can:

  • View console.log output from your integration

  • Inspect errors and stack traces

  • Debug JavaScript code

  • Monitor network requests

  • Inspect the DOM

Security

There are multiple ways you can secure your iFrame:

1

Implement authentication inside the iFrame (most secure)

Implement authentication logic in your iFrame itself so your users have to log in before seeing the iFrame content.

You can use Missive's secure storage to persist authentication:

  • Values are stored per-integration and per-user

  • Tokens persist across page reloads

  • Storage is managed securely by Missive and cleared at user log out

2

Pass a token in the integration URL parameters (easiest)

Pass a token in the integration URL parameters that your server will use to authenticate the request before serving the iFrame content.

Example URL entered in Missive: https://acme.com/my-iframe?auth=12345abcde

3

Delegate OAuth flow to Missive with initiateCallback (best for OAuth providers)

How it works:

  • Missive opens the auth URL in a new browser tab

  • Adds a redirectTo parameter to your URL

  • After OAuth completion, redirect to the provided redirectTo URL with your tokens/data as query params

  • The browser tab closes automatically

  • Your integration receives the data in the response object

Important notes:

  • Works around iframe OAuth limitations

  • Compatible with iOS (uses localStorage instead of cookies)

  • The redirectTo URL is unique per attempt

  • Store the redirectTo URL during OAuth redirects

Remember:

  • Always validate tokens on your server

  • Use HTTPS for all communications

Need help building your integration?

If you don't have the technical skills to build a custom integration, check our partners listarrow-up-right for developers who can help.

Need more specific answers?

Contact us

Last updated