POST
/
policies
/
{propertyPolicy}
/
documents
Upload documents
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
}

Authorizations

Authorization
string
header
required

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

Path Parameters

propertyPolicy
integer
required

Body

multipart/form-data

Response

200
application/json

Successfully uploaded

The response is of type object.