How can I embed Pylon tickets in my application?

Last updated: March 13, 2026

You can embed the Pylon portal directly in your application using an iframe. This lets your users view and manage their tickets without leaving your app.

Setup

1. Set up a custom domain for your portal

Your portal must be on a custom domain that shares the same root domain as your application. For example:

  • Portal: portal.yourcompany.com

  • Your app: app.yourcompany.com

This is required so that your users stay logged in when viewing the embedded portal.

See Custom Domains for setup instructions.

2. Set up SSO for automatic login

For a seamless experience, configure JWT SSO so your users are automatically authenticated when they navigate to the embedded portal.

See JWT SSO Customer Login for full setup instructions.

3. Embed the portal

Use the platform initiated flow URL as the iframe source. This ensures users are logged in before they reach the portal, so the embedded iframe shows their tickets immediately.

<iframe
  src="https://graph.usepylon.com/callback/jwt?orgSlug=<ORG_SLUG>&jwt=<TOKEN>"
  width="100%"
  height="600"
  frameborder="0"
></iframe>