Overview
This guide walks you through integrating Yasmina’s SME Medical Insurance APIs for Multiple Insurance Providers into your platform (for the single-provider version, click here). These APIs let you retrieve and compare medical insurance packages from several insurance providers before issuing policies to a company’s employees. Using our secure and reliable endpoints, you’ll be able to request and manage policies, and issue claims. Everything you need to deliver insurance services seamlessly within your application.Basic Journey
- Authorize: Get an access token to authenticate all API requests.
- Create a Company: Register the SME that will provide medical insurance for its employees.
- Choose a Package: Retrieve and compare available medical insurance packages from multiple insurance providers.
- Issue Insurance: Select the employees who will be covered and create their policies with the chosen provider.
- Health Declarations: Complete forms on behalf of employees or send them directly for completion.
- Payment: Receive a secure payment link to finalize the purchase.
Authorization
To access any of our API’s. You need to authorize yourself using the Generate Token API. We are using the standard OAuth 2.0 client credentials.The Generate Token API requires
client_id and client_secret. You can get these from your portal.After making the request, you will get access_token in the response. The
access_token must be used on all future Yasmina APIs and be supplied in the Authorization Header in the following form
Authorization: Bearer {access_token}
Create a Company record
After acquiring an access_token, you can begin using the APIs. Before you produce policies for a company, you must create a company record. After creating the company record, you can request to issue policies to the employees of that company. The The Create Company API, will require few fields that define details of the company such as Email, Phone etc… It will return a response with a unique identifier (id). Here is an example of the response from the POST companies API.List and compare available packages
Yasmina works with multiple insurance providers. After creating a company record, you can list the packages available to the company from every provider and compare them, helping the company choose the most suitable option for its employees. Check out the Categories API. This gives you a list of available insurance categories per provider.- The Insurance provider PDF
- Contains an overview picture of what is provided by the Insurance provider
- The translations
- The translations includes keys that map to the instructional text in Arabic and English that were provided by the insurance provider.
- The categories
- The categories items uses these keys and gives the coverage values
category property and an insurance_provider property. These are important properties as they are what you will need to provide when you issue policies. Notice the category and insurance_provider fields in the following sample of the categories response API.
Issue insurance policies
To issue policies, you need to execute the Issue policies API. The API takes three fields. The company_id as referenced above, the insurance_provider the company selected when comparing packages, and an array called insured. The insured are the employees that the company wants to issue insurance for. Here is an example of a payload you would sendNotice in the above, there are two employees within the company. One of them we are supplying the
iqama_id as he is a Non-Saudi while the other we supply a nationality_id as he is Saudi.category and insurance_provider that we are supplying are what was returned from the Categories API. All insured employees of a company are covered by the same provider, so the insurance_provider is supplied once at the top level.
HR declaration forms
The companies that have requested insurance needs to be supply the insurance provider with Medical forms. These are mandatory for insurance providers to know past medical histories. Yasmina offers two methods for submitting these forms:- Fill Medical Forms: Company administrators fill out the forms on behalf of the employees.
- Dispatch Medical Forms: Company administrators dispatch the forms to employees, who then complete them individually.
Fill medical forms
Fill medical forms
The fill medical forms allows the company admin to do so on behalf of the employers of the company. It takes two fields of which both are objects Check out the Fill medical forms API docs for all the supported props.
all_employees and ids_or_emails.The idea behind the two fields, is to allow the Company admin to select the default answers for all employees, and then override the answers for specific employees.For example, let us say that all employees except 1 (for example employee with email [email protected]), never had surgeries before, we can declare the answer No on the surgery question in the all_employees field, but declare Yes for the other employee.Here’s an example of such caseDispatch Medical forms
Dispatch Medical forms
In this method, the Company admin puts a list of employees (emails, nationality ids, or Iqama ids). Yasmina then dispatches the medical form to each employee on email.The employees will get a link to fill the forms themselves.You can check the Dispatch Medical Form API
Payment
Yasmina will supply a payment link of which your clients can pay for the insurance. You must share this link in your platform.Build with AI
Every page of this documentation is published in an AI-readable format, so an AI coding assistant — Claude Code, Cursor, GitHub Copilot, or any tool that can fetch a URL — can read this guide and the API reference directly and scaffold the integration for you. Appending.md to any page URL returns that page as plain Markdown.
If your assistant supports the Model Context Protocol, connect it to our documentation MCP server instead — it gives the assistant search and retrieval tools over the entire documentation site:
MCP server URL
Prompt for your AI assistant

