POST
/
policies
Issue policy
curl --request POST \
  --url https://staging.yasmina.ai/api/v1/property/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "insurance_provider": "walaa",
  "personal_details": {
    "email": "[email protected]",
    "phone_number": "+966501234567",
    "name": "Fahad Al-Qahtani",
    "birthdate": "1990-05-14",
    "nationality": "SA",
    "nationality_id": "1023456789"
  },
  "building_details": {
    "building_age": 8,
    "building_type": "Apartment",
    "apartment_size": 120
  },
  "address": {
    "street_name": "King Abdulaziz Road",
    "building_number": "345",
    "district_name": "Al Olaya",
    "city_name": "Riyadh",
    "additional_number": "1234",
    "zip_code": "12233",
    "unit_number": "12B"
  },
  "property_cost": 500000,
  "contents_cost": 100000,
  "has_agreed_to_terms_and_conditions": true
}'
{
  "id": 655,
  "meta_data": {
    "insurance_provider": "walaa",
    "has_agreed_to_terms_and_conditions": true,
    "property_cost": 500000,
    "documents": [
      "gOSkcUZnQQpV3YLvUygSrmkTh6L9g3gxKvFbIfwU.docx"
    ],
    "personal_details": {
      "name": "Fahad Al-Qahtani",
      "email": "[email protected]",
      "birthdate": "1990-05-14",
      "nationality": "SA",
      "phone_number": "+966501234567",
      "nationality_id": "1023456789"
    },
    "building_details": {
      "building_age": 8,
      "building_type": "Apartment",
      "apartment_size": 120
    },
    "address": {
      "street_name": "King Abdulaziz Road",
      "building_number": "345",
      "district_name": "Al Olaya",
      "city_name": "Riyadh",
      "additional_number": "1234",
      "zip_code": "12233",
      "unit_number": "12B"
    }
  },
  "provider_policy_id": null,
  "provider_policy": null,
  "client_id": "9f7db0ed-0783-4654-9b18-47c316809204",
  "created_at": "2025-07-28T09:54:03.000000Z",
  "canceled_at": null,
  "status": 0
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

Created

The response is of type object.