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

Name
Type
Description

Authorization*

String

Bearer <YOUR API KEY>

Content-Type*

String

application/json

Accept*

String

application/json

user-agent*

String

<YOUR APP>

Request Body

Name
Type
Description

JSON Body*

Object

See specification below

Sample Body Payload
{
    "plan" : "1755826501569x292619937398346240"
}

Code Examples - Making the API Call:

curl -X POST "https://app.whiteswan.io/api/1.1/wf/start_application" \
     -H "Authorization: Bearer <YOUR API KEY>" \
     -H "Content-Type: application/json" \
     -H "Accept: application/json" \
     -H "User-Agent: <YOUR APP>" \
     -d '{
               "plan" : "1755826501569x292619937398346240"
          }'

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:

Field Label
Field Key
Field Type
Example Value
Description

Plan

plan

Text

1755962938878x653642511385623700

The ID of the plan to start an application for.


Sample Return Payload
{
    "url_to_apply": "https://app.whiteswan.io/apply/1756132113128x587035433367457300",
    "embed_code": "<div id=\"container-id\"></div><script id=\"strife\" src=\"https://cdn.quoteandapply.io/widget.js?prefill&eapp_id=447406&eapp_uuid=a4e283c1-8b37-4b58-a695-dbbf244e7d7d&products=[]#resume=WGFiMXY3ejdGRUVzVmxHYVZ0NEFTendybFh3SFRrdEdUTk9pL3M1SzZzS3RvYWthekpocEVMeGd4eWJVQS83SjllUVo0N2pZRm16Zi9WSEd4ZWxQUVduTWdtRkNMRWZmZDJseTN2MS84eENTTk50d0RNK2tXSXBiYTl6eC0tVW8rS3c1U1BQQ3ZnQ25YSC0tZXl0REtocEVNNU5LOGw0MGNOYmNvQT09\" data-strife-key=\"Omd010LUl8Yca9g3\" data-strife-container-id=\"container-id\"></script>",
    "plan": "1756132123417x732274886961195500",
    "quote_request": "1756132113128x587035433367457300"
}

Returned Parameters Specification:

Field Label
Field Key
Field Type
Example Value
Description

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

<div id=\"container-id\"></div><script id=\"strife\" src=\"https://cdn.quoteandapply.io/widget.js?prefill&eapp_id=447406&eapp_uuid=a4e283c1-8b37-4b58-a695-dbbf244e7d7d&products=[]#resume=WGFiMXY3ejdGRUVzVmxHYVZ0NEFTendybFh3SFRrdEdUTk9pL3M1SzZzS3RvYWthekpocEVMeGd4eWJVQS83SjllUVo0N2pZRm16Zi9WSEd4ZWxQUVduTWdtRkNMRWZmZDJseTN2MS84eENTTk50d0RNK2tXSXBiYTl6eC0tVW8rS3c1U1BQQ3ZnQ25YSC0tZXl0REtocEVNNU5LOGw0MGNOYmNvQT09\" data-strife-key=\"Omd010LUl8Yca9g3\" data-strife-container-id=\"container-id\"></script>

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?