Peaka allows you to seamlessly embed its user interface into your web application. In this article, we will guide you through the steps to integrate Peaka’s UI into your own application.

Prerequisites

  • Partner API Key: To create a Partner API Key, please refer to this guide on managing your Partner API Key.

Initiate the Session

  • To begin, you need to initiate a session with Peaka using your Partner API Key as the token.
  • The endpoint will provide a URL to initiate your session.
{
  "sessionUrl": "https://partner.peaka.studio/api/v1/ui/session?code=<session_code>"
}

You can access the user interface using the provided URL.

Enabling Embedded UI for Peaka Integration Using an iframe

For security reasons, you cannot use the session URL directly in an iframe. To embed Peaka within an iframe, you need to enable the embedded UI for your partner API key.

In order to do that you should;

  • Go to Developer Settings in your peaka account.

  • Find your api key in the table then click ... button.

  • Select Enable Embedded UI option

  • Enable Embedded UI for this API Key

  • Enter your domain that you want to embed the Peaka app.

    URL is needed for security reasons. Please be aware that your application should be served over HTTPS for use in an iframe.
  • If you want to customize the UI, upload a css file. You can also download the valid example of the customization file (See more about customization)

Now you are ready to embed Peaka’s UI into your web application using an iframe.

<iframe src="<your_session_url>" />

Congratulations! You have successfully embedded Peaka’s UI into your web application. Your users can now seamlessly interact with Peaka’s interface to manage their data efficiently and effectively.