storeRoles
Method to update Contact's aspect data for a given role.
Code
storeRoles › Request Body
contactIdroleIdagencyInactivee2ValDisallowdefaultAgencyagenciesagencyDatesagencyGroupagencyNumberagencyGroupNumbercreditScoreAccountcommissionPaymentcommissionStructuredefaultSurplusLinesProducerinterestContentloginInformationnaicNumbernoticespaymentsIssuedpersonalInformationproducerNumberquotingRestrictionsweepAccountterminationvendorNumberstoreRoles › Responses
successmessagedataadd_contact_to_role
Adds a specified contact to the given role.
Code
add_contact_to_role › Request Body
role_nameThe name of the role to add the contact to
contact_idThe unique identifier of the contact
add_contact_to_role › Responses
successarchive_contact
Archive a contact from the Contacts list; agents on current policies are refused.
Code
archive_contact › Request Body
contact_idarchive_contact › Responses
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: data | |
| type = object · requires: permissionDenied, success |
assign_policy_contact
assign_policy_contact
assign_policy_contact › Request Body
policy_idThe policy ID to assign the contact to
contact_idThe contact ID to assign to the policy
roleThe role of the contact in the policy
assign_policy_contact › Responses
successassign_quote_contact
assign_quote_contact
assign_quote_contact › Request Body
quote_idThe quote ID to assign the contact to.
contact_idThe contact ID to assign to the quote
roleThe role of the contact in the quote. Additional Interest roles are configured on Settings > Policies page.
assign_quote_contact › Responses
successassign_risk_contact
assign_risk_contact
assign_risk_contact › Request Body
risk_idThe risk ID to assign the contact to
contact_idThe contact ID to assign to the risk
roleThe role of the contact in the risk
assign_risk_contact › Responses
successcreate_adjuster_license
Create a new adjuster license record.
Code
create_adjuster_license › Request Body
contact_idUUID of the contact
business_location_idUUID of the business location (state)
license_numberLicense number
effective_dateEffective date in YYYY-MM-DD format
expiration_dateExpiration date in YYYY-MM-DD format
create_adjuster_license › Responses
successWhether the request was successful
messagesAny messages or errors related to the request
create_contact
Code
create_contact › Request Body
nametypeconfirmation_email^[a-zA-Z0-9_.+-]+@[a…date_of_birthdrivers_licenseexternal_system_referencelast_synched_datesource_update_datefein_tax_idlegal_entity_typedate_business_starteddbaadded_bypurchase_datepositionwebsitessn_groupssnagency_inception_dateagency_termination_datefollow_agency_quoting_restrictionusernamegenderdriver_license_datelicense_state^[A-Z]{2}$date_of_deathhicn_numbercompany_idagency_group_numberagency_numberproducer_numberagency_group_idagency_idagent_idscommission_structurecreate_contact › Responses
successdelete_adjuster_license
Delete an adjuster license record.
Code
delete_adjuster_license › Request Body
license_idUUID of the license to delete
delete_adjuster_license › Responses
successWhether the request was successful
messagesAny messages or errors related to the request
find_contact_by_params
Find insured using given params
Code
find_contact_by_params › Request Body
nameContact name to search for (full or partial). Cannot be empty.
role_nameOptional. Filter contacts by a specific role name (e.g., 'Agent', 'Administrator')
dob^(0[1-9]|1[0-2])/(0[…Optional. Contact's date of birth in mm/dd/yyyy format
exclude_rolesOptional. Array of role names to exclude from results. Mutually exclusive with role_name.
exclude_empty_usernamesOptional. If true, excludes contacts with empty usernames
requires_login_informationOptional. If true, only returns contacts whose roles have the 'loginInformation' aspect
page_sizeOptional. Maximum number of results to return
include_primary_addressOptional. If true, each result carries primary_address: the contact's preferred address when it has a street line, else its first address with one (by type order), or null
order_by_nameOptional. If true, results come back in a deterministic order: relevance first, then name (case-insensitive), then id. An empty name is therefore alphabetical. Requires page_size on ElasticSearch
find_contact_by_params › Responses
successIndicates if the request was successful
Array of contact objects matching the search criteria
get_contact_by_agency
get_contact_by_agency
get_contact_by_agency › Request Body
agency_numberAgency number
get_contact_by_agency › Responses
successget_contact_by_agency_group
get_contact_by_agency_group
get_contact_by_agency_group › Request Body
agency_group_numberAgency group number
get_contact_by_agency_group › Responses
successget_contact_by_agent
get_contact_by_agent
get_contact_by_agent › Request Body
producer_numberAgent producer number
get_contact_by_agent › Responses
successget_mfa_code
The contact's MFA key, on the Security tab's explicit Show; a contact with none gets one, as classic's tab makes one. Logged without the key, and never cached.
get_mfa_code › Request Body
contact_idget_mfa_code › Responses
get_quoting_permissions
The Configuration tab's read (classic getContactBusinessLocation and getContactBusinessLocationWithUniquePolicyTypes): the role the tab edits, the states the contact may quote in and those it may add, each state's policy types open and closed to quoting by name, and whether the viewer may change them.
get_quoting_permissions › Request Body
contact_idget_quoting_permissions › Responses
get_screening_history
Code
get_screening_history › Request Body
contact_idThe unique identifier of the contact
get_screening_history › Responses
successlist_contacts_by_role_code
List contacts by partial role code using prefix matching.
Code
list_contacts_by_role_code › Request Body
roleThe role type to search
filterThe prefix to match against the role code. Minimum 5 characters after trimming whitespace.
limitMaximum number of results to return. Defaults to 50.
list_contacts_by_role_code › Responses
List of matching contacts
successmodify_contact
Code
modify_contact › Request Body
idnametypeconfirmation_email^[a-zA-Z0-9_.+-]+@[a…date_of_birthdrivers_licenseexternal_system_referencelast_synched_datesource_update_datefein_tax_idlegal_entity_typedate_business_starteddbaadded_bypurchase_datepositionwebsitessn_groupssnagency_inception_dateagency_termination_datefollow_agency_quoting_restrictionusernamegenderdriver_license_datelicense_state^[A-Z]{2}$date_of_deathhicn_numbercompany_idagency_group_numberagency_numberagent_idscommission_structuremodify_contact › Responses
successnew_contact
Creates a new Contact record and optionally related phones/emails/addresses.
Code
new_contact › Request Body
namedoing_buiness_astypedate_of_birthssnfein_taxlegal_entity_typedate_business_startedgendervalidate_purchase_datephonesemailsaddresseswebsitecognito_usernameis_godrolesusernameconfirmation_emailbackground_informationdates_to_rememberpositionname_aliasescompanyorganization_contactsagency_administratorsrelated_tois_relatedexternal_system_referencenew_contact › Responses
successmessagedataoverride_screening_check_result
Code
override_screening_check_result › Request Body
screening_check_result_idID of the screening check result to override
override_reasonReason for the override
override_screening_check_result › Responses
successregenerate_security_key
A new MFA key for the contact (classic getNewMFACode), returned once and never cached.
regenerate_security_key › Request Body
contact_idregenerate_security_key › Responses
remove_contact_from_role
Removes a specified contact from the given role.
Code
remove_contact_from_role › Request Body
role_nameThe name of the role to add the contact to
contact_idThe unique identifier of the contact
remove_contact_from_role › Responses
successremove_policy_contact
remove_policy_contact
remove_policy_contact › Request Body
policy_idThe policy ID to remove the contact from
contact_idThe contact ID to remove from the policy
roleThe role of the contact in the policy
remove_policy_contact › Responses
dataThe data object is empty for this endpoint
successremove_quote_contact
remove_quote_contact
remove_quote_contact › Request Body
quote_idThe quote ID to remove the contact from
contact_idThe contact ID to remove from the quote
roleThe role of the contact in the quote
remove_quote_contact › Responses
dataThe data object is empty for this endpoint
successremove_risk_contact
remove_risk_contact
remove_risk_contact › Request Body
risk_idThe risk ID to remove the contact from
contact_idThe contact ID to remove from the risk
roleThe role of the contact in the risk
remove_risk_contact › Responses
dataThe data object is empty for this endpoint
successretrieve_address_suggestions
Code
retrieve_address_suggestions › Request Body
policy_type_idaddress_line1address_line2address_cityaddress_stateaddress_zipaddress_countryrevision_idclaim_idretrieve_address_suggestions › Responses
successmessagedataretrieve_adjuster_licenses
Retrieve all adjuster licenses for a contact.
Code
retrieve_adjuster_licenses › Request Body
contact_idUUID of the contact whose adjuster licenses to retrieve
retrieve_adjuster_licenses › Responses
successWhether the request was successful
messagesAny messages or errors related to the request
List of adjuster license records
retrieve_contact
Code
retrieve_contact › Request Body
idThe unique identifier of the contact
external_system_referenceThe external identifier of the contact
retrieve_contact › Responses
successretrieve_contact_security
The Security tab's read: whether MFA is on for the site and the contact, whether a key exists, and what the viewer may do there. Never the key itself.
retrieve_contact_security › Request Body
contact_idretrieve_contact_security › Responses
revoke_screening_override
Code
revoke_screening_override › Request Body
screening_check_result_idID of the screening check result to revoke override from
revoke_screening_override › Responses
successsearch_contacts
Contacts list search with the classic syntax, plus single_match_id for the exact-match jump.
Code
search_contacts › Request Body
Classic Contacts list search syntax. A leading # suppresses the exact-match jump.
Role name filter; empty means all roles.
Results page, 1-based.
Results per page (default 25).
active_onlyActive contacts only, as the classic contact pickers search.
search_contacts › Responses
search_names_emails
Search for emails and usernames using ElasticSearch.
Code
search_names_emails › Request Body
querySearch query for email addresses or usernames. Must be at least 2 characters long.
limitMaximum number of results to return
search_names_emails › Responses
successIndicates if the request was successful
Array of search results containing contact information
set_aspect_data
Set a contact's aspect data
Code
set_aspect_data › Request Body
idrole_idagenciesagency_datesagency_groupagency_group_numberagency_numbercredit_score_accountcommission_paymentcommission_structureinterest_contentlogin_informationnaic_numbernoticespayments_issuedpersonal_informationproducer_numbersweep_accountterminationvendor_numberis_1099_reportabledefault_surplus_lines_producerquoting_restrictiondefault_agencyinactive_agencydisallow_e2_valueset_aspect_data › Responses
successmessagedataset_phrase
Set the pass phrase (classic setPassphrase): the one sent, checked against the site's password rules, or one drawn on the server and returned once. Never cached.
set_phrase › Request Body
contact_idcurrentThe current pass phrase, required on one's own contact.
phraseThe pass phrase to set: typed, or a suggestion from suggest_phrase kept as shown. Checked against the site's password rules.
set_phrase › Responses
set_quoting_policy_types
The policy types open to quoting at one of the contact's states (classic storeContactPolicyTypes), by id. Needs configuration/updateConfiguration (rw) where protect-agency-contacts allows. Returns the tab's read.
set_quoting_policy_types › Request Body
contact_idlocation_idOne of the contact's states.
policy_type_idsPolicy types of that state; each id stands for every policy type of its name there, as classic stores by name.
set_quoting_policy_types › Responses
set_quoting_states
The states the contact may quote in (classic storeContactBusinessLocation), by id. Needs configuration/updateConfiguration (rw) where protect-agency-contacts allows. Returns the tab's read.
set_quoting_states › Request Body
contact_idlocation_idsStates the site writes in, or states the contact already has.
set_quoting_states › Responses
store_contact_legal_entity_type
Set a contact's Legal Entity Type.
Code
store_contact_legal_entity_type › Request Body
contact_idThe unique identifier of the contact whose Legal Entity Type is being set.
legal_entity_typeLegal Entity Type value to set. A literal empty string clears the field. Null/omitted, non-string, and whitespace-only values are rejected. Surrounding whitespace on a real value is trimmed.
store_contact_legal_entity_type › Responses
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object · requires: messages, data, success | |
| type = object · requires: permissionDenied, success |
Empty object on success (the value is persisted server-side); an empty array on error responses, per the standard_error envelope.
successsuggest_phrase
A pass phrase drawn on the server for the page to show before it is set, as classic's Generate shows one. Nothing is stored; never cached.
suggest_phrase › Request Body
contact_idsuggest_phrase › Responses
toggle_mfa
Turn MFA on or off for the contact (the Security tab's switch). The contact may switch their own; another contact needs security/updateSecurity (rw) where protect-agency-contacts allows. Sending the stored value changes nothing.
toggle_mfa › Request Body
contact_idenabledTrue turns MFA on, false turns it off.
toggle_mfa › Responses
update_adjuster_license
Update an existing adjuster license record.
Code
update_adjuster_license › Request Body
License update data object
update_adjuster_license › Responses
successWhether the request was successful
messagesAny messages or errors related to the request
