Introduction to Kayna
Embedded Insurance Infrastructure enabling Distribution through Vertical SaaS
Kayna provides the technology & data orchestration layer between Carriers and Brokers and any Vertical SaaS platform to distribute insurance products that are directly relevant to platform customers.
- Platforms leverage data to unlock new revenue streams and add value for customers.
- Customers get accurate, data-led, right-sized insurance with automated quote, renewal, claims process.
- Carriers/Brokers gain new Insurance distribution channels.
Getting Started
To get started, you must first get credentials for your organization. Please visit Kayla dashboard signup page at Signup Page and register a new account for your organization.
Once you register a new account, you’ll need to complete the onboarding form to finalize the platform creation process. Fill out the form and click Submit to create a new platform for your organization. A dummy product with the ID [saas-platform-dummy-product-id]
will be assigned to your platform automatically.
Finding your platform credentials
You can access your platform credentials by navigating to the Authorization Keys page in the Kayna dashboard.
Widget Integration
The Kayna Widget documentation provides a quick guide to seamlessly integrate insurance products into Vertical SaaS platforms.
Fetching the Token
Widget Integration Get Token Endpoint Setup
Important Note: It’s important to keep your platform credentials secure, make sure to not expose your Access Key and Secret in your client side code. The Access Key and Secret should only be used from your secure servers. You can create a new endpoint on your servers that returns a token to your client side code.
Create a new 'authorizer' API on your Platform serverIn the API, call Kayna's authorizer API with the following payload:'accessKey' - Get it from Kayna Dashboard'secret' - Get it from Kayna Dashboard'extCustomerId' - This is a unique identifier for each of your customers. This identifier will be a shared reference between Kayna and your systems. You can use an existing ID or you can create a new ID to share with Kayna. You can choose the format of this identifier and it should be stored in your systems for future reference.Return the received 'token' as a response from the API
Important: Just a reminder, it's crucial to integrate this API on your server and not on the client side. This precaution ensures that the keys used to acquire the token remain hidden and secure, preventing their exposure in the developer tools.
Get Token
Payload
Response
If you would like to see an example of how this can be implemented, we have made an example here
Adding Kayna Widget
- Place the Kayna widget CDN link in your web page
- Call your Authorizer API to securely generate a token
- Use the Generated Token to create the kaynaKeys object
- Initialise the Kayna widget passing the required style, data and keys objects
Kayna Config
Parameters
Keys
Styles
Adding Widget
Add an empty div
Include the widget
Get the token
Initialize the widget
Great news! Your widget has been successfully integrated!
If you would like to see an example of how this can be implemented, we have made an example here
Widget Demo
Let's discover Kayna Widget.
You can make changes to the data passed to the widget by changing the values in the following JSON and then click Update
Support
If you ever find yourself in need of support or have any questions, please know that we're here for you. Don't hesitate to reach out to us via email at info@kayna.io.
At Kayna, our dedicated team is committed to providing assistance that goes above and beyond. Whether you have inquiries about creating an account, completing forms, or any other aspect of our service, we're ready to provide timely and thoughtful responses. Your satisfaction is our top priority, and we're excited to be a part of your journey with Kayna.
Feel free to connect with us; we're always here to help make your experience as smooth as possible.
Create endpoint to fetch token (Example Implementation)
Create a new endpoint in your server:
Important: To safeguard the security of the keys used for token acquisition and prevent their exposure in developer tools, it's crucial to integrate this API on the server side. This underscores the need to create a new endpoint on the server for this purpose.
.env
Just a heads up, this is just an example of how you might add a new endpoint to fetch a token via the API using JS and EXPRESS. Keep in mind that the actual steps could vary depending on the platform's technology stack. Feel free to adapt it as needed!
Adding Kayna Widget (Example Implementation)
Great news! Your widget has been successfully integrated!
Just a heads up, this is just an example of how you might integrate a widget using HTML and JS. Keep in mind that the actual steps could vary depending on the platform's technology stack. Feel free to adapt it as needed!