cURL
curl --request GET \
--url http://localhost:8080/users/{user_id}/insurance_policies/details \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8080/users/{user_id}/insurance_policies/details"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8080/users/{user_id}/insurance_policies/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/users/{user_id}/insurance_policies/details",
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 := "http://localhost:8080/users/{user_id}/insurance_policies/details"
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("http://localhost:8080/users/{user_id}/insurance_policies/details")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/users/{user_id}/insurance_policies/details")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"benefit": {
"benefit_details": {
"benefit_type": "CONSULTATION",
"description": "<string>"
},
"name": "<string>",
"provider_id": "<string>",
"provider_name": "<string>"
},
"insurance_policy": {
"benefit_id": "<string>",
"benefit_name": "<string>",
"created_at": "<string>",
"dependant_ids": [
"<string>"
],
"dependants": [
{
"first_name": "<string>",
"id": "<string>",
"last_name": "<string>"
}
],
"documents": {
"health_cards": {},
"customer_information_sheet": "<string>",
"enrollment_form": "<string>",
"policy_certificate": "<string>"
},
"id": "<string>",
"last_modified_at": "<string>",
"plan_code": "<string>",
"premium_amounts": {
"annual": {
"currency": "INR",
"value": 123
},
"daily": {
"currency": "INR",
"value": 123
},
"sponsor_contribution": {
"currency": "INR",
"value": 123
}
},
"primary_member": {
"first_name": "<string>",
"id": "012345678901",
"last_name": "<string>"
},
"primary_user_id": "012345678901",
"questionnaire": {
"questions": [
{
"answer": true,
"question": "<string>"
}
]
},
"end_date": "2027-01-15",
"external_policy_id": "<string>",
"master_policy_number": "<string>",
"metadata": {
"provider_metadata": {}
},
"nominee_details": {
"dependant_id": "<string>",
"nominee_type": "DEPENDANT"
},
"start_date": "2026-01-15"
}
}
],
"limit": 123,
"offset": 123,
"total": 123
}Insurance Policies
List Policies with Benefit Details
GET
/
users
/
{user_id}
/
insurance_policies
/
details
cURL
curl --request GET \
--url http://localhost:8080/users/{user_id}/insurance_policies/details \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8080/users/{user_id}/insurance_policies/details"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8080/users/{user_id}/insurance_policies/details', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/users/{user_id}/insurance_policies/details",
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 := "http://localhost:8080/users/{user_id}/insurance_policies/details"
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("http://localhost:8080/users/{user_id}/insurance_policies/details")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/users/{user_id}/insurance_policies/details")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"benefit": {
"benefit_details": {
"benefit_type": "CONSULTATION",
"description": "<string>"
},
"name": "<string>",
"provider_id": "<string>",
"provider_name": "<string>"
},
"insurance_policy": {
"benefit_id": "<string>",
"benefit_name": "<string>",
"created_at": "<string>",
"dependant_ids": [
"<string>"
],
"dependants": [
{
"first_name": "<string>",
"id": "<string>",
"last_name": "<string>"
}
],
"documents": {
"health_cards": {},
"customer_information_sheet": "<string>",
"enrollment_form": "<string>",
"policy_certificate": "<string>"
},
"id": "<string>",
"last_modified_at": "<string>",
"plan_code": "<string>",
"premium_amounts": {
"annual": {
"currency": "INR",
"value": 123
},
"daily": {
"currency": "INR",
"value": 123
},
"sponsor_contribution": {
"currency": "INR",
"value": 123
}
},
"primary_member": {
"first_name": "<string>",
"id": "012345678901",
"last_name": "<string>"
},
"primary_user_id": "012345678901",
"questionnaire": {
"questions": [
{
"answer": true,
"question": "<string>"
}
]
},
"end_date": "2027-01-15",
"external_policy_id": "<string>",
"master_policy_number": "<string>",
"metadata": {
"provider_metadata": {}
},
"nominee_details": {
"dependant_id": "<string>",
"nominee_type": "DEPENDANT"
},
"start_date": "2026-01-15"
}
}
],
"limit": 123,
"offset": 123,
"total": 123
}Authorizations
JWT bearer token. App-user tokens are issued by POST /auth/token (the partner backend calls it as its platform service account); admin and dashboard tokens are issued via OIDC login.
Path Parameters
User ID
Query Parameters
Insurance policy lifecycle status.
Available options:
PENDING, VERIFICATION, APPROVED, ISSUED, REQUIRES_CUSTOMER_RENEWAL_IN_GRACE, REQUIRES_POLICY_REISSUANCE, REQUIRES_CUSTOMER_RENEWAL, EXPIRED, REJECTED ⌘I