Start Application
The start application endpoint can be used to start an application for a certain personal plan. It is especially helpful for more sophisticated API integrations where you have your own interface to visualize policies and want to process applications either through an embed in your own environment or through linking out to a White Swan hosted policy application page.
If you're pre-filling an application, Create the Pre-fill Information before you start an application.
If you've created a quote via API but plan to process the application via the White Swan hosted application page, be aware that the White Swan hosted page is protected through two factor authentication. To ensure your users can access the page you need to either provide their email/phone when creating the plan request or Add Case Parties.
If you're using the embed code, fetch it at or close to page load, as the embed code needs to be loaded within 30 seconds to avoid the user having to authenticate through putting the date of birth of the insured in.
API Method:
Start Application
POST https://app.whiteswan.io/api/1.1/wf/start_application
Initiates an application for a particular personal plan under a plan request.
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:
Code examples are available in cURL, Python, Javascript, Java, PHP, Ruby, and Go, but can be constructed for other languages and tools. Some code examples include dependencies that may need to be installed in your codebase to ensure functionality. Remember to replace any values in the code that looks like <VALUE> and to adapt the parameter values passed.
Body Parameters Specification:
Plan
plan
Text
1755962938878x653642511385623700
The ID of the plan to start an application for.
Returned Parameters Specification:
White Swan Application URL
url_to_apply
Text
https://app.whiteswan.io/apply/1756132113128x587035433367457300
The URL or the White Swan hosted page that can be used to process the application.
Application Embedding Code
embed_code
Escaped HTML
HTML code that you can use to embed an application form in your own environment. Beware that the HTML is escaped so that it can safely be passed inside a JSON body and that you should unescape it before using it in your own environment.
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.
Goal
goal
Multiple-choice
Protection
The goal of this policy search.
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.
Last updated
Was this helpful?