Guideline texts
curl --request GET \
--url https://sandbox.yasmina.ai/api/v1/car-comp/guideline-texts \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.yasmina.ai/api/v1/car-comp/guideline-texts"
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/car-comp/guideline-texts', 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/car-comp/guideline-texts",
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/car-comp/guideline-texts"
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/car-comp/guideline-texts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.yasmina.ai/api/v1/car-comp/guideline-texts")
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{
"en": {
"provider": {
"pre": "Quotes are provided through",
"brand": "Shahin",
"brand_url": "https://www.shahin.com.sa/en/",
"supervision": "Under supervision of the Insurance Authority, license",
"license": "و س ط/No. 20158/82"
},
"support": {
"lead": "Support and assistance through",
"whatsapp_label": "Customer service via WhatsApp",
"whatsapp_url": "https://wa.me/966537007368",
"terms_label": "Terms & conditions",
"terms_url": "https://www.shahin.com.sa/en/terms-and-conditions",
"tollfree_label": "Toll-free",
"tollfree_number": "8002440399"
},
"faq": [
{
"question": "What is the difference between TPL and Comprehensive insurance?",
"answer": "TPL covers damage you cause to others, while Comprehensive also covers damage to your own vehicle, subject to the policy terms."
}
]
},
"ar": {
"provider": {
"pre": "هذه العروض مقدَّمة عبر",
"brand": "شاهين"
},
"support": {
"lead": "للدعم والمساعدة عبر"
},
"faq": [
{
"question": "ما الفرق بين التأمين ضد الغير والتأمين الشامل؟",
"answer": "يغطي التأمين ضد الغير الأضرار التي تتسبب بها للآخرين، بينما يغطي التأمين الشامل كذلك الأضرار التي تلحق بمركبتك، وفقاً لشروط الوثيقة."
}
]
}
}{
"code": "40101",
"message": "Unauthenticated"
}Guideline texts
Returns the copy you are expected to show alongside motor quotes — the provider attribution and its Insurance Authority licence, the Shahin support routes, and the buyer FAQ. English and Arabic are returned together, so a bilingual page needs a single request and does not have to hold the strings itself. Fetch it rather than hard-coding the wording: changes reach you without an integration change.
GET
/
guideline-texts
Guideline texts
curl --request GET \
--url https://sandbox.yasmina.ai/api/v1/car-comp/guideline-texts \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.yasmina.ai/api/v1/car-comp/guideline-texts"
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/car-comp/guideline-texts', 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/car-comp/guideline-texts",
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/car-comp/guideline-texts"
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/car-comp/guideline-texts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.yasmina.ai/api/v1/car-comp/guideline-texts")
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{
"en": {
"provider": {
"pre": "Quotes are provided through",
"brand": "Shahin",
"brand_url": "https://www.shahin.com.sa/en/",
"supervision": "Under supervision of the Insurance Authority, license",
"license": "و س ط/No. 20158/82"
},
"support": {
"lead": "Support and assistance through",
"whatsapp_label": "Customer service via WhatsApp",
"whatsapp_url": "https://wa.me/966537007368",
"terms_label": "Terms & conditions",
"terms_url": "https://www.shahin.com.sa/en/terms-and-conditions",
"tollfree_label": "Toll-free",
"tollfree_number": "8002440399"
},
"faq": [
{
"question": "What is the difference between TPL and Comprehensive insurance?",
"answer": "TPL covers damage you cause to others, while Comprehensive also covers damage to your own vehicle, subject to the policy terms."
}
]
},
"ar": {
"provider": {
"pre": "هذه العروض مقدَّمة عبر",
"brand": "شاهين"
},
"support": {
"lead": "للدعم والمساعدة عبر"
},
"faq": [
{
"question": "ما الفرق بين التأمين ضد الغير والتأمين الشامل؟",
"answer": "يغطي التأمين ضد الغير الأضرار التي تتسبب بها للآخرين، بينما يغطي التأمين الشامل كذلك الأضرار التي تلحق بمركبتك، وفقاً لشروط الوثيقة."
}
]
}
}{
"code": "40101",
"message": "Unauthenticated"
}Authorizations
JWT Authorization header using the Bearer scheme
Response
The guideline texts, keyed by locale
The response is of type object.
⌘I

