Relatel iframe API

Required product(s): Switch Premium
The Relatel iframe API allows you to embed a Relatel agent in your website.

How it works

When installing the iframe extension, specify a URL for us to query when the agent is viewing a detail page for a call.

The call number is available as a query parameter.

In other words for this URL:

https://example.com/mysystem

We issue a GET request to:

https://example.com/mysystem/?number=4571999999

Where 4571999999 is the number of the opposing party. All phone numbers are prefixed with their appropriate country code and have no leading zeros.

Recommendations

Some browsers block content from non-HTTPS endpoints, so make sure your endpoint uses HTTPS.

Size of the iframe

The iframe frame is a responsive square via a variable width.

To make the frame height match that of your content, include this JavaScript just before the closing </body> tag in your HTML.

<script src="https://app.relatel.dk/api/iframe.js" type="text/javascript"></script>

If you manually update the frame height, this function can readjust it:

FF.updateHeight();