Upload supporting documents for the related property or contents
cURL
curl --request POST \ --url https://staging.yasmina.ai/api/v1/property/policies/{propertyPolicy}/documents \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form document=@example-file
{ "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 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully uploaded
The response is of type object.
object