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.
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
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/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"
}'
Body Parameters Specification:
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.
Returned Parameters Specification:
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.
-
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?