agencybloc_search_individuals
Search individuals
Search individuals (clients and contacts) in AgencyBloc. All filters are optional and combine; with none you get the first records. Returns id, name, email, birth date, phones and last-updated time (national ids such as SSN are never returned). Use updated_since to find recently changed people. POST individuals/search.
输入参数emaillimitphonegroup_idlast_namefirst_nameupdated_sinceupdated_before
agencybloc_get_individual
Get individual
One individual by id, with addresses, policies and custom fields (and activities when include_activities is true). National ids are removed. POST individuals/detail.
输入参数individual_id必填include_activities
agencybloc_search_groups
Search groups
Search groups (employer / business accounts) in AgencyBloc by name, type or phone. Returns id, name, type and phone. POST groups/search.
输入参数typelimitgroup_nameupdated_sincebusiness_phone
agencybloc_get_group
Get group
One group by id, with addresses, policies and custom fields (and activities when include_activities is true). POST groups/detail.
输入参数group_id必填include_activities
agencybloc_search_policies
Search policies
Search policies by number, coverage type, carrier, holder, servicing agent, application date or last update. Returns id, holder, policy number, carrier, status, coverage type, effective and renewal dates. Use submitted_after/updated_since for recent business. POST policies/search.
输入参数limitcarrierentity_identity_typecoverage_typepolicy_numberupdated_sinceupdated_beforesubmitted_aftersubmitted_beforeservicing_agent_id
agencybloc_get_policy
Get policy
One policy by id: holder, agent, carrier, status, dates, premium, coverages and custom fields. POST policies/detail.
输入参数policy_id必填
agencybloc_search_agents
Search agents
Search agents (producers) by name, email or phone. Returns id, name, email and phones. POST agents/search.
输入参数emaillimitphonelast_namefirst_name
agencybloc_get_agent
Get agent
One agent by id, with agencies, addresses and custom fields (and activities when include_activities is true). POST agents/detail.
输入参数agent_id必填include_activities
agencybloc_search_carriers
Search carriers
Search insurance carriers by name or phone. Returns id, name, abbreviation and phones. POST carriers/search.
输入参数limitphonecarrier_name
agencybloc_list_activities
List activities of a record
All activities (tasks, calls, renewals) logged on one group, individual, agent, carrier or lead: date, subject, notes, status, type, method, priority and follow-up. There is no paging. POST activities/list.
输入参数entity_id必填entity_type必填
agencybloc_get_activities
Get activities by id
Activities by id (1-50 ids), e.g. the ids shown on a policy or individual. POST activity/list.
输入参数activity_ids必填
agencybloc_list_notes
List notes of a record
Notes (subject, body, author, dates, pinned flag, attachment names) on one agent, group, individual or policy, newest change first. There is no paging. POST notes/list.
输入参数entity_id必填entity_type必填
agencybloc_search_leads_by_phone
Search sales records (leads) by phone
Find Sales Enablement records (leads) by phone number; the search is by phone only. Only accounts with the Sales Enablement module have them. POST salesEnablement/leads/searchphone.
输入参数phone必填
agencybloc_get_lead
Get sales record (lead)
One Sales Enablement record (lead) by record id. POST salesEnablement/Leads/detail.
输入参数record_id必填
agencybloc_create_individual
Create individual
WRITE: create a new individual (client or contact) in AgencyBloc. Needs first and last name; everything else is optional. It does not check for duplicates: search first. Returns the new individualID. POST individuals/create.
输入参数zipcitytagstypeemailstategenderstatusstreet1street2group_idlast_name必填另有 10 个
agencybloc_update_individual
Update individual
WRITE: change fields of an existing individual; fields you leave out are not sent. Tags are replaced (empty string clears them). Addresses are not changed here. Returns the individualID. POST individuals/update.
输入参数tagstypeemailgenderstatusgroup_idbirth_datecell_phonehome_phonelead_sourcecustom_fieldsindividual_id必填另有 3 个
agencybloc_create_group
Create group
WRITE: create a new group (employer / business account) in AgencyBloc. It does not check for duplicates: search first. Returns the new groupID. POST groups/create.
输入参数dbazipcitytypestatestatusstreet1street2websiteindustryemployeesgroup_name必填另有 6 个
agencybloc_update_group
Update group
WRITE: change fields of an existing group (including its name); fields you leave out are not sent. Returns the groupID. POST groups/update.
输入参数dbatypewebsitegroup_id必填industryemployeesgroup_namedescriptioncustom_fieldsbusiness_phoneaccount_managerservicing_agent_id
agencybloc_create_policy
Create policy
WRITE: create a policy on an existing group or individual. Needs the holder (entity_id + entity_type), coverage type, status and the carrier's full name; unknown coverage types / statuses are created in the account. carrier_product also creates a coverage (and the carrier product if unknown). effective_date and premium are policy-level fields, not coverage fields. Returns the new policyID. POST policies/create.
输入参数livesnotesstatus必填carrier必填premiumentity_id必填term_dateentity_type必填renewal_datecoverage_type必填custom_fieldspay_frequency另有 5 个
agencybloc_update_policy
Update policy
WRITE: change fields of an existing policy (status, carrier, dates, premium ...); fields you leave out are not sent. carrier_product requires carrier and first reads the policy: it creates the first coverage or changes the sole existing coverage, but refuses multiple coverages to avoid adding an unintended one. effective_date and premium remain policy-level fields. Returns the policyID. POST policies/update.
输入参数livesnotesstatuscarrierpremiumpolicy_id必填term_daterenewal_datecoverage_typecustom_fieldspay_frequencypolicy_number另有 4 个
agencybloc_create_activity
Create activity
WRITE: log an activity (call, task, renewal reminder) on a group, individual, agent, carrier or lead. Status, type, method and priority are the text values of the account's dropdowns (My Agency Settings > Data Administration); unknown values are created. When the status is not Complete the activity is a follow-up: give follow_up_user_id and follow_up_date (and start/end times), and AgencyBloc assigns it to that user. Nothing is sent to the customer. Activities cannot be edited or deleted through the API. Returns the new activityID. POST activities/create.
输入参数type必填notes必填method必填status必填subject必填priority必填entity_id必填entity_type必填activity_datefollow_up_datefollow_up_all_dayfollow_up_user_id另有 3 个
agencybloc_create_note
Add note
WRITE: add one note (subject + body) to an agent, group, individual or policy. AgencyBloc never allows notes to be edited or deleted through the API (audit rule), so the note is permanent. Pinning a note unpins the previously pinned one. Returns the new note id. POST notes/create.
输入参数body必填pinnedsubject必填entity_id必填entity_type必填