Link customer accounts (account linking)

Account linking connects a ticket to the customer’s account in your own service, so agents see a green Verified customer badge and can jump straight to that customer in your admin. You configure it once with two URL templates under Settings → Integrations → Account linking.

How a customer becomes linked

A customer is verified when they have a linked account id — their externalId. That id is set automatically by SSO (the sub claim), by the create-ticket API (the externalId field) or the enrich callback, or manually by an agent. The same id fills the {account_id} placeholder below, so the badge and the deep link are always the same fact and can never drift.

Set the URL templates

  1. As the account owner, open Settings → Integrations → Account linking (the section is headed Customer accounts).
  2. Account page URL — the page for a single customer in your admin. Put {account_id} where the account id belongs, e.g. https://admin.yourapp.com/users/{account_id}. When a ticket’s customer is linked, agents get an Open in … admin link to this page.
  3. Search URL (optional) — lets agents find an unverified customer in your admin so they can link them. Put {email} for the address, e.g. https://admin.yourapp.com/users?q={email}.
  4. Service name (optional) — shown in agent labels like Open in YourApp admin. Leave blank for a generic “admin”. Up to 40 characters.
  5. Click Save.

Template rules

The substituted value is URL-encoded, and the link opens in a new tab with rel="noopener".

Example

Account page URL:  https://admin.yourapp.com/users/{account_id}
Search URL:        https://admin.yourapp.com/users?q={email}
Service name:      YourApp

With that saved, a linked customer’s ticket shows a green Verified customer badge plus an Open in YourApp admin link; an unverified customer shows a search link so an agent can find them in your admin and link them.

Setting the account id