Policy Search
The policy search endpoint can be used to fetch quotes when you're requesting full quotes through the Submit Complete Plan Request. After calling the complete plan request endpoint with a valid body to get quotes, a policy search ID will be returned which you can use to poll the Policy Search endpoint and get access to data like status, quotes, and errors.
API Method:
Policy Search
POST
https://app.whiteswan.io/api/1.1/wf/policy_search
Returns information about a policy search.
Headers
Authorization*
String
Bearer <YOUR API KEY>
Content-Type*
String
application/json
Accept*
String
application/json
user-agent*
String
<YOUR APP>
Request Body
JSON Body*
Object
See specification below
Code Examples - Making the API Call:
curl -X POST "https://app.whiteswan.io/api/1.1/wf/policy_search" \
-H "Authorization: Bearer <YOUR API KEY>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "User-Agent: <YOUR APP>" \
-d '{
"policy_search": "1755962938878x653642511385623700"
}'
Body Parameters Specification:
Policy Search
policy_search
Text
1755962938878x653642511385623700
The ID of the policy search to poll.
Returned Parameters Specification:
Policy Search ID
policy_search_id
Text
1755962938878x653642511385623700
The ID of the policy search that is being polled.
-
Status
status
Multiple-Choice
Found Policies
The current status of the policy search.
Found Policies, Fetching Quotes, No Policies Found
Linked Plan Request ID
linked_plan_request
Text
1755962937306x171818994560791740
The ID of the plan request that is associated with this policy search.
-
Policy Type
policy_type
Multiple-choice
Term Life
The policy type associated with this policy search.
Term Life, Return of Premium Term Life, Guaranteed Universal Life, Whole Life, Indexed Universal Life, Variable Universal Life, Private Placement Life, Final Expense, Linked Benefit, Long Term Care, Accidental Death
Goal
goal
Multiple-choice
Protection
The goal of this policy search.
Protection, Balanced, Accumulation
Death Benefit
death_benefit
Number
1000000
The amount of death benefit sought after in this policy search.
-
Premium Budget
premium_budget
Number
1000
The target premium budget associated with this policy search.
-
Policies
policies
Personal Plan Object List
-
A list of the policies found for this policy search. See full data structure of policy objects on the Personal Plan page.
-
Error Message
error_message
Text
-
If we had any errors with finding policies based on the input for this policy search, you can access details here.
-
URL To View Quotes
policies_view_url
Text
https://app.whiteswan.io/get_started/1756132114502x277128707509505020?policy_search=1756132116084x494781508118696400&request=1756132113128x587035433367457300&block=s
A URL where the list of policies, if any, can be viewed.
-
Last updated
Was this helpful?