Skip to content

Get started

Quickstart

Get the Call button working on your site in a few minutes.

  1. Get your partner key

    iungo sends you a partner key (it starts with pk_live_) and the install code. Not a partner yet? See getting access. The key is public: it identifies your site and is safe to put in your page. It does not authenticate anyone.

  2. Add the install code

    Paste this before the closing </body> tag on every page where the button should appear, with your own key:

    html
    <script src="https://iungo.app/sdk/iungo-sdk-0.2.0.js" data-partner-key="pk_live_YOUR_KEY" async></script>
    
    <button data-iungo-call>Call</button>

    Any element can be the button: add data-iungo-call to it. The script listens for clicks, so it also works for buttons added to the page later.

  3. Make sure the host has calls turned on

    The host opens Settings → Website calls in iungo and switches your site on. Until they do, the window opens and tells the visitor the host isn't taking calls right now.

  4. Try it

    Open your page from one of the website addresses registered for your key and click the button. You should see the iungo splash, then the sign-up screen. Read Testing before you call, so you know what is real.

  5. Listen for events (optional)

    Your page can react to what happens in the window. The script exposes window.iungoClient():

    javascript
    window.addEventListener('load', () => {
      const iungo = window.iungoClient()
    
      iungo.on('call:started', ({ callId }) => {
        console.log('Call connected', callId)
      })
    
      iungo.on('call:ended', ({ reason, durationSeconds }) => {
        console.log(`Call ended (${reason}) after ${durationSeconds}s`)
      })
    
      iungo.on('error', ({ code, message, retryable }) => {
        console.warn('iungo error', code, message, retryable)
      })
    })

    See Events and errors for the full list.

If nothing happens

The window says “Calling isn't available right now”? The address you are on is not registered for your key, the host has not turned calls on, or the partner is paused. The troubleshooting guide walks through each cause.

Something missing or unclear? Tell us.