Add Case Party

Any links you share of active cases which leads to White Swan hosted pages have their data protected through two factor authentication, and requires clients to confirm a code sent to their email or phone. Being logged in bypasses the two factor authentication.

Through the add case party endpoint you can add people to a case, which will allow them to have two factor authentication codes sent to their email or phone.

If you're including email & phone in a Start Personal Plan Request call or a Submit Complete Information Call, you do not have to add the case party through this endpoint separately. This endpoint allows you to provide several people with access to cases.

API Method:

Add Case Party

POST https://app.whiteswan.io/api/1.1/wf/invite_case_party

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
{
  "request": "1755962938878x653642511385623700",
  "invitee_email": "[email protected]",
  "invitee_phone": "1234567892"
}

Code Examples - Making the API Call:

curl -X POST "https://app.whiteswan.io/api/1.1/wf/invite_case_party" \
     -H "Authorization: Bearer <YOUR API KEY>" \
     -H "Content-Type: application/json" \
     -H "Accept: application/json" \
     -H "User-Agent: <YOUR APP>" \
     -d '{
               "request": "1755962938878x653642511385623700",
               "invitee_email": "[email protected]",
               "invitee_phone": "1234567892"
          }'

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
Required?
Field Type
Example Value
Description

Linked Plan Request

request

Text

1755962938878x653642511385623700

The ID of the plan request that you want to add this case part to.

Email Address

invitee_email

Text

The email of the case party that you want to add to this case.

Phone Number

invitee_phone

Text

1234567892

The phone number of the case party that you want to add to this case.


Sample Return Payload
{
    "status": "Success",
    "request": "1755719935099x532381077173698560",
    "request_parties": [
        {
            "email": "[email protected]",
            "phone": "1234567890",
            "party_id": "1756137602217x954719111964025200"
        }
    ],
    "error_message":null
}

Returned Parameters Specification:

Field Label
Field Key
Field Type
Example Value
Description
Alternatives (if Multiple-Choice)

Status

status

Multiple-choice

Success

Whether the request was succesful.

Success, Failure

Linked Plan Request

request

Text

1755962937306x171818994560791740

The ID of the plan request associated with the call.

-

Request Parties

request_parties

Object List

-

A list of the current case parties associated with this case.

-

  • Email

email

Text

The email of this case access party.

-

  • Phone

phone

Text

1234567890

The phone number of this case access party.

-

  • Party ID

party_id

Text

1755962937306x171818994560791740

The ID of this case access party.

-

Error Message

error_message

Text

We could not find a plan request with this ID or verify that your call contained a phone number/email. Try to double-check the email/phone and/or map an ID returned from another action/trigger.

If the call fails this parameter will provide details on the error.

-

Last updated

Was this helpful?