Vendor MasterAPI
Table of Content
Endpoints
Authentication
Type of Leads
Request Object for
lead
TypeList of Accepted
case_type
valuesAnatomy of
fields
arrayThe
ref
guideResponse Object
Understanding Responses
References for
case_type
- Auto AccidentSample Request
References for
case_type
- Workers CompensationSample Request
Endpoints
Environment | Link | Description |
Staging | Staging environment should be used for testing while integration. | |
Production | Production environment should be used once the integration is tested perfectly on staging. |
Authentication
The api-key
and api-token
header should be set in order to make requests to our API.
These credentials will be provided to you for both production and staging servers.
Request for lead
Type
lead
TypeThe request body for type
- lead
should comply with these rules.
Name | Required | Type | Description |
| True | Timestamp | Should be in |
| false | Boolean |
|
| false | Text | First name of the lead. |
| false | Text | Last name of the lead. |
| True | Email Address of the Lead. | |
| True | Phone | Phone number of the lead. This can be either in US Domestic format ( Eg: |
| True | Text | The injury type identified in the phone conversation. For Admediary, we are accepting only MVA leads and this should be specified as |
| True | US Zip Code | Location of the Lead |
| False | Text | If the lead has a time preference for callback, pass that in this parameter. |
| True | Array | The request body for each case type differs as it has a specific set of references for each case type. Each element in the |
List of Accepted case_type
values
case_type
valuesMentioned below are case_type
values that we support. For any case_type
that doesn’t match with items from this list, should be entered as meaningful text. For all such new case_type
the request body should have references of Auto Accident
. The sample for the request is provided later in this document.
Case Type | Value | Description |
Auto Accident |
| If the lead case is an auto accident. |
Anatomy of fields array
The fields array in the request contains objects. Each of these objects has three properties
Property | Required | Description |
| True | Key to identifying questions to our internal |
| False | If you believe that you want to share the question that was used, it should be passed in this field. |
| True | The answer comes from a set of choices or adheres to a type. The " |
Example :
The ref
guide
ref
guideBelow are all of the ref
values that can be used in the fields
array. Each ref
has a type and can be a choice of options, a boolean or text. We have included the default question that will get considered should the ref object have a missing title
property. The explanation of which ref
objects to be used for each case_type
is mentioned later in the document. The answers in the field object should come strictly from the set of values provided below.
Ref Key | Type | Choices | Description | Default Question |
| Enum / Text |
| Single Choice. Should be used for date questions. The actual date can be specified in the mentioned format. |
|
| Yes/No |
| Single Choice. Whether lead already has an attorney. In case of unsure, the answer to choose should be |
|
| Enum |
| Single Choice. Please use the closest possible injury type, If the answer from the caller doesn’t match the list or there is something additional to add for a particular choice, |
|
| Yes/No |
| Single Choice. If the lead has undergone any treatment, hospitalization etc. In case of unsure, the answer to choose should be |
|
| Yes/No |
| Single Choice. If the lead has lodged a police complaint. In case of unsure, the answer to choose should be |
|
| Yes/No |
| Single Choice. If the lead has filed a case etc. In case of unsure, the answer to choose should be |
|
| Yes/No |
| Single Choice. Lead at fault. In case of unsure, the answer to choose should be |
|
| Yes/No |
| Single Choice. Did the lead have any injury?. In case of unsure, the answer to choose should be |
|
| Text |
| Text value for what caused the injury |
|
| Yes/No |
| Single Choice. Lead missed work because of the injury. In case of unsure, the answer to choose should be |
|
| Yes/No |
| Single Choice. If the lead has lodged a police complaint. |
|
| Text | NA | Text. Details about the case |
|
Response Object
Mentioned below are the properties that will be present in the response object.
Key | Description |
|
|
|
|
| acknowledgment message for the request |
Response Skeleton
References for case_type
- Auto Accident
case_type
- Auto AccidentThe following set of references should be passed for Auto Accident
case type.
incident_date_option_b
- OPTIONALinjury_cause
- OPTIONALdoctor_treatment
- OPTIONALwere_you_at_fault
- OPTIONALwere_you_injured
- OPTIONALhave_attorney
- OPTIONALprimary_injury
- OPTIONALcomments
- OPTIONAL
Sample Request - Auto Accident
Last updated