You need to create a company record before requesting medical insurance to the employees of the company
cURL
curl --request POST \ --url https://portal.yasmina.ai/api/v1/medical/companies \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "name_ar": "<string>", "sponsor_number": "<string>", "email_address": "<string>", "phone_number": "<string>", "commercial_registration_number": "<string>" }'
{ "name": "Example company name", "name_ar": "مثال اسم شركة", "sponsor_number": "789", "email_address": "[email protected]", "phone_number": "+966512345678", "commercial_registration_number": "9876543210", "client_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "updated_at": "2025-08-01T14:22:30.000000Z", "created_at": "2025-08-01T14:22:30.000000Z", "id": 42 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Company created
The response is of type object.
object