List prices
curl --request GET \
--url https://sandbox.yasmina.ai/api/v1/property/prices \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.yasmina.ai/api/v1/property/prices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.yasmina.ai/api/v1/property/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.yasmina.ai/api/v1/property/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.yasmina.ai/api/v1/property/prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.yasmina.ai/api/v1/property/prices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.yasmina.ai/api/v1/property/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tawuniya": {
"name": "Tawuniya",
"name_ar": "التعاونية",
"logo": "https://sandbox.yasmina.ai/images/tawuniya-logo.png",
"coverages": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"ac_repair",
"emergency_repairs",
"theft",
"earthquakes"
],
"price": 476.1
},
"medgulf": {
"name": "Medgulf",
"name_ar": "ميدغلف",
"logo": "https://sandbox.yasmina.ai/images/medgulf-logo.png",
"benefits": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"emergency_repairs",
"theft",
"earthquakes"
],
"price": 508.3
},
"walaa": {
"name": "Walaa",
"name_ar": "ولاء",
"logo": "https://sandbox.yasmina.ai/images/walaa-logo.jpeg",
"benefits": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"emergency_repairs",
"theft",
"earthquakes",
"liability"
],
"price": 603.75
},
"takaful_alrajhi": {
"name": "Takaful Alrajhi",
"name_ar": "تكافل الراجحي",
"logo": "https://mdckhobar.sa/wp-content/uploads/2024/10/Al-Rajhi-Takaful.png",
"benefits": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"emergency_repairs",
"theft",
"earthquakes",
"srcc_protection",
"business_interruption"
],
"price": 399.05
},
"wataniyeh": {
"name": "Wataniyeh",
"name_ar": "الوطنية",
"logo": "https://www.jordanfinancialservices.com/sites/default/files/images/logos/nic-01.jpg",
"benefits": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"emergency_repairs",
"theft",
"earthquakes",
"accidental_home_damage"
],
"price": 632.5
}
}List prices
Shows prices from different insurance companies based on the provided property and contents cost. You must provide at least one of property_cost or contents_cost. You can also provide both
GET
/
prices
List prices
curl --request GET \
--url https://sandbox.yasmina.ai/api/v1/property/prices \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.yasmina.ai/api/v1/property/prices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.yasmina.ai/api/v1/property/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.yasmina.ai/api/v1/property/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.yasmina.ai/api/v1/property/prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.yasmina.ai/api/v1/property/prices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.yasmina.ai/api/v1/property/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tawuniya": {
"name": "Tawuniya",
"name_ar": "التعاونية",
"logo": "https://sandbox.yasmina.ai/images/tawuniya-logo.png",
"coverages": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"ac_repair",
"emergency_repairs",
"theft",
"earthquakes"
],
"price": 476.1
},
"medgulf": {
"name": "Medgulf",
"name_ar": "ميدغلف",
"logo": "https://sandbox.yasmina.ai/images/medgulf-logo.png",
"benefits": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"emergency_repairs",
"theft",
"earthquakes"
],
"price": 508.3
},
"walaa": {
"name": "Walaa",
"name_ar": "ولاء",
"logo": "https://sandbox.yasmina.ai/images/walaa-logo.jpeg",
"benefits": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"emergency_repairs",
"theft",
"earthquakes",
"liability"
],
"price": 603.75
},
"takaful_alrajhi": {
"name": "Takaful Alrajhi",
"name_ar": "تكافل الراجحي",
"logo": "https://mdckhobar.sa/wp-content/uploads/2024/10/Al-Rajhi-Takaful.png",
"benefits": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"emergency_repairs",
"theft",
"earthquakes",
"srcc_protection",
"business_interruption"
],
"price": 399.05
},
"wataniyeh": {
"name": "Wataniyeh",
"name_ar": "الوطنية",
"logo": "https://www.jordanfinancialservices.com/sites/default/files/images/logos/nic-01.jpg",
"benefits": [
"fires",
"explosion",
"storms",
"floods",
"maintenance",
"emergency_repairs",
"theft",
"earthquakes",
"accidental_home_damage"
],
"price": 632.5
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
⌘I

