curl --request GET \
--url https://sandbox.yasmina.ai/api/v1/car-comp/policies \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.yasmina.ai/api/v1/car-comp/policies"
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/policies', 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/policies",
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/policies"
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/policies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.yasmina.ai/api/v1/car-comp/policies")
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{
"current_page": 123,
"data": [
{
"id": 123,
"meta_data": {},
"start_date": "<string>",
"provider_policy_id": 123,
"provider_policy": "<string>",
"order_status": 123,
"approval_status": 123,
"end_date": "<string>",
"is_claimed": true,
"created_at": "<string>",
"uploaded_at": "2023-11-07T05:31:56Z",
"updated_at": "<string>",
"client_id": "<string>",
"canceled_at": "<string>",
"invoice": "<string>",
"cancellation_document": "<string>"
}
],
"first_page_url": "<string>",
"from": 123,
"last_page": 123,
"last_page_url": "<string>",
"links": [
{
"url": "<string>",
"label": "<string>",
"active": true
}
],
"next_page_url": "<string>",
"path": "<string>",
"per_page": 123,
"prev_page_url": "<string>",
"to": 123,
"total": 123,
"aggregates": {
"total_count": 12,
"total_price": 42850.75,
"by_month": {
"2026-06": {
"count": 12,
"total_price": 42850.75
}
}
}
}{
"code": "40101",
"message": "Unauthenticated"
}List policies
Listing requested policies
curl --request GET \
--url https://sandbox.yasmina.ai/api/v1/car-comp/policies \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.yasmina.ai/api/v1/car-comp/policies"
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/policies', 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/policies",
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/policies"
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/policies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.yasmina.ai/api/v1/car-comp/policies")
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{
"current_page": 123,
"data": [
{
"id": 123,
"meta_data": {},
"start_date": "<string>",
"provider_policy_id": 123,
"provider_policy": "<string>",
"order_status": 123,
"approval_status": 123,
"end_date": "<string>",
"is_claimed": true,
"created_at": "<string>",
"uploaded_at": "2023-11-07T05:31:56Z",
"updated_at": "<string>",
"client_id": "<string>",
"canceled_at": "<string>",
"invoice": "<string>",
"cancellation_document": "<string>"
}
],
"first_page_url": "<string>",
"from": 123,
"last_page": 123,
"last_page_url": "<string>",
"links": [
{
"url": "<string>",
"label": "<string>",
"active": true
}
],
"next_page_url": "<string>",
"path": "<string>",
"per_page": 123,
"prev_page_url": "<string>",
"to": 123,
"total": 123,
"aggregates": {
"total_count": 12,
"total_price": 42850.75,
"by_month": {
"2026-06": {
"count": 12,
"total_price": 42850.75
}
}
}
}{
"code": "40101",
"message": "Unauthenticated"
}Authorizations
JWT Authorization header using the Bearer scheme
Query Parameters
x >= 1Inclusive lower bound for the policy date. For issued policies (status=1), this filters by uploaded_at (the provider policy issue timestamp) and falls back to created_at when uploaded_at is unavailable. For other statuses, this filters by created_at.
"2026-06-01"
Inclusive upper bound for the policy date. For issued policies (status=1), this filters by uploaded_at (the provider policy issue timestamp) and falls back to created_at when uploaded_at is unavailable. For other statuses, this filters by created_at.
"2026-06-30"
When true, includes policy totals, total price, and monthly buckets for the filtered result set.
true
Response
Success
Hide child attributes
Hide child attributes
Timestamp when the provider policy document was attached. For issued motor policies this is the closest available issue/purchase timestamp.
Returned only when include_aggregates is true.
Hide child attributes
Hide child attributes
12
42850.75
Monthly policy counts and sales totals keyed by YYYY-MM. For issued policies (status=1), buckets use uploaded_at and fall back to created_at.
{
"2026-06": { "count": 12, "total_price": 42850.75 }
}