Risk Item management
Adding a Risk Item to a policy defines the "insured subject," such as personal items (eyewear, bicycles), larger assets (vehicles), an individual's life or health, and shipping cargo. This step tailors the subject to specific coverage plans, optimizing pricing and operational efficiency.
For practical guidance, we encourage you to explore our Risk Item creation examples, showcasing pre-configured payloads. These examples are illustrative, and adjustments may be necessary based on the insurance product and jurisdiction.
Endpoints
How to get the data
To gather the requisite data for creating a risk-item, it's advisable to utilize the endpoints detailed in the policy management section. There, you can access information on available policies, enabling you to procure the necessary details for the required package. This facilitates obtaining insights into the package's variants and coverages.
Add a Risk Item to a policy
POST https://app.insurehero.io/api/shield/v1/risk-items
Headers
Authorization*
string
Bearer access token
Request Body
package_uid*
string
The uid of the package to subscribe to.
policy_uid*
string
The uid of the policy associated.
start_date*
string
Risk item starting date (ISO 8601 format)
end_date*
string
Risk item ending date (ISO 8601 format)
insured_subject*
object
Insured information to be included in the risk item. identifier_value and identifier_type are required fields.
uid*
string
Unique identifier
beneficiaries
object []
List of users who could be beneficiaries. Email or phone are the only required field, the others are optional.
authorized_claimants
object []
List of users who would be authorized claimants. Email is the only required field, the others are optional.
metadata
object
Additional data to include in the risk item
Example response
Attributes
data
object
Object containing information about a risk item
id
uuid
Unique identifier for the risk item
policy_id
uuid
Unique identifier for the associated policy
authorized_claimants
object []
List of authorized claimants
authorized_claimants.email
string
Email of the authorized claimant
authorized_claimants.name
string
Name of the authorized claimant
authorized_claimants.phone
string
Phone number of the authorized claimant
package_id
uuid
Unique identifier for the coverage package
start_date
string
Start date of the coverage period
end_date
string
End date of the coverage period
beneficiaries
object []
List of beneficiaries
beneficiaries.email
string
Email of the beneficiary
beneficiaries.name
string
Name of the beneficiary
beneficiaries.phone
string
Phone number of the beneficiary
beneficiaries.group_uid
string
Unique identifier for the beneficiary’s group
insured_subject
object
Details of the insured subject
insured_subject.identifier_value
string
Identifier of the insured subject
insured_subject.identifier_type
string
Type of identifier
insured_subject.ruc
string
Taxpayer identification number
insured_subject.driver_id
string
Driver's identification number
insured_subject.group_uid
string
Unique identifier of the insured group
insured_subject.group_name
string
Name of the insured group
insured_subject.policy_note
string
Policy coverage notes
insured_subject.guide_number
string
Tracking number for the shipment
insured_subject.plate_number
string
License plate of the transport vehicle
insured_subject.subject_type
string
Type of insured subject
insured_subject.invoice_count
number
Number of invoices related to the insured subject
insured_subject.departure_city
string
City of departure
insured_subject.departure_date
string
Departure date and time
insured_subject.content_category
string
Category of the transported content
insured_subject.departure_coords
string
GPS coordinates of departure location
insured_subject.destination_city
string
Destination city
insured_subject.driver_full_name
string
Full name of the driver
insured_subject.primary_category
string
Main category of insured items
insured_subject.business_industry
string
Industry related to the insured subject
insured_subject.policy_observations
string
Additional observations about the policy
insured_subject.total_insured_value
number
Total insured value in policy currency
status
string
Current status of the risk item
uid
string
Unique identifier
assets
object []
List of associated assets
metadata
object
Additional structured data
Add Event to Risk Item
Add a new event with asynchronous data to a risk item
POST https://app.insurehero.io/api/shield/v1/risk-items/:riskItemId/events
Headers
Authorization*
string
Bearer access token
Path Parameters
riskItemId*
string
Risk item identifier
Request Body
event_data*
object
Additional data related to an event. "start_date" and "end_date" are obligatory
metadata
object
Additional data to include in the event
uid
text
Unique identifier for the event
Example response
Attributes
data
object
Contains event details
id
uuid
Unique identifier for the event
risk_item_id
uuid
Unique identifier for the associated risk item
event_data
object
Event-related details
event_data.start_date
string
Start date of the event
event_data.end_date
string
End date of the event
metadata
object
Additional event metadata
metadata.description
string
Description of the event
uid
string
Unique event identifier
Update Risk Item Beneficiaries
Replace the full beneficiaries array for a given risk item.
PUT https://app.insurehero.io/api/shield/v1/risk-items/:riskItemId/beneficiaries
Use this endpoint when a channel updates beneficiaries for one of its risk items.
The token must belong to the same channel as the target risk item. Otherwise, the request is rejected.
Update beneficiaries
This operation fully replaces the stored beneficiaries array with the payload you send. Any existing beneficiaries not included in the request are removed.
Path Parameters
riskItemId*
string
Risk item identifier
Headers
Authorization*
string
Bearer access token
Content-Type*
string
application/json
Request Body
beneficiaries*
object []
Full beneficiaries array to persist
Each beneficiaries item supports these fields:
name*
string
Beneficiary first name
lastname*
string
Beneficiary last name
isHolder*
boolean
Indicates if the beneficiary is the policy holder
isBeneficiary*
boolean
Indicates who the beneficiary is
dateOfBirth*
string
Birth date in YYYY-MM-DD format
fiscalType*
string
Fiscal document type
fiscalId*
string
Fiscal document identifier
documentCountry*
string
ISO country code for the document
string | null
Beneficiary email
phone
string | null
Beneficiary phone number
mobilePrefix
string | null
Beneficiary mobile prefix
source*
string
Source field
Additional fields are accepted and preserved.
Example request
Example response
Attributes
data
object
Updated risk item
data.id
uuid
Risk item identifier
data.policy_id
uuid
Related policy identifier
data.status
string
Current risk item status
data.beneficiaries
object []
Persisted beneficiaries array
Get all Risk Items
Paginated list of all risk items. Page size cannot exceed 100 records at a time.
GET https://app.insurehero.io/api/shield/v1/risk-items
Headers
Authorization*
string
Bearer access token
Query Parameters
from*
string
Starting record index
to*
string
Ending record index
Example response
Attributes
data
object []
List of risk items
id
uuid
Unique identifier for the risk item
policy_id
uuid
Unique identifier for the associated policy
authorized_claimants
object []
List of authorized claimants
authorized_claimants.email
string
Email of the authorized claimant
authorized_claimants.name
string
Name of the authorized claimant
authorized_claimants.phone
string
Phone number of the authorized claimant
package_id
uuid
Unique identifier for the coverage package
start_date
string
Start date of the coverage period
end_date
string
End date of the coverage period
beneficiaries
object []
List of beneficiaries
beneficiaries.email
string
Email of the beneficiary
beneficiaries.name
string
Name of the beneficiary
beneficiaries.phone
string
Phone number of the beneficiary
beneficiaries.group_uid
string
Unique identifier for the beneficiary’s group
insured_subject
object
Details of the insured subject
insured_subject.identifier_value
string
Identifier of the insured subject
insured_subject.identifier_type
string
Type of identifier
insured_subject.ruc
string
Taxpayer identification number
insured_subject.driver_id
string
Driver's identification number
insured_subject.group_uid
string
Unique identifier of the insured group
insured_subject.group_name
string
Name of the insured group
insured_subject.policy_note
string
Policy coverage notes
insured_subject.guide_number
string
Tracking number for the shipment
insured_subject.plate_number
string
License plate of the transport vehicle
insured_subject.subject_type
string
Type of insured subject
insured_subject.invoice_count
number
Number of invoices related to the insured subject
insured_subject.departure_city
string
City of departure
insured_subject.departure_date
string
Departure date and time
insured_subject.content_category
string
Category of the transported content
insured_subject.departure_coords
string
GPS coordinates of departure location
insured_subject.destination_city
string
Destination city
insured_subject.driver_full_name
string
Full name of the driver
insured_subject.primary_category
string
Main category of insured items
insured_subject.business_industry
string
Industry related to the insured subject
insured_subject.policy_observations
string
Additional observations about the policy
insured_subject.total_insured_value
number
Total insured value in policy currency
status
string
Current status of the risk item
uid
string
Unique identifier
assets
object []
List of associated assets
metadata
object
Additional structured data
Get the data of a given Risk Item
GET https://app.insurehero.io/api/shield/v1/risk-items/:riskItemId
Headers
Authorization*
string
Bearer access token
Path Parameters
riskItemId*
string
Risk item identifier
Example response
Attributes
data
object
Object containing information about a risk item
id
uuid
Unique identifier for the risk item
policy_id
uuid
Unique identifier for the associated policy
authorized_claimants
object []
List of authorized claimants
authorized_claimants.email
string
Email of the authorized claimant
authorized_claimants.name
string
Name of the authorized claimant
authorized_claimants.phone
string
Phone number of the authorized claimant
package_id
uuid
Unique identifier for the coverage package
start_date
string
Start date of the coverage period
end_date
string
End date of the coverage period
beneficiaries
object []
List of beneficiaries
beneficiaries.email
string
Email of the beneficiary
beneficiaries.name
string
Name of the beneficiary
beneficiaries.phone
string
Phone number of the beneficiary
beneficiaries.group_uid
string
Unique identifier for the beneficiary’s group
insured_subject
object
Details of the insured subject
insured_subject.identifier_value
string
Identifier of the insured subject
insured_subject.identifier_type
string
Type of identifier
insured_subject.ruc
string
Taxpayer identification number
insured_subject.driver_id
string
Driver's identification number
insured_subject.group_uid
string
Unique identifier of the insured group
insured_subject.group_name
string
Name of the insured group
insured_subject.policy_note
string
Policy coverage notes
insured_subject.guide_number
string
Tracking number for the shipment
insured_subject.plate_number
string
License plate of the transport vehicle
insured_subject.subject_type
string
Type of insured subject
insured_subject.invoice_count
number
Number of invoices related to the insured subject
insured_subject.departure_city
string
City of departure
insured_subject.departure_date
string
Departure date and time
insured_subject.content_category
string
Category of the transported content
insured_subject.departure_coords
string
GPS coordinates of departure location
insured_subject.destination_city
string
Destination city
insured_subject.driver_full_name
string
Full name of the driver
insured_subject.primary_category
string
Main category of insured items
insured_subject.business_industry
string
Industry related to the insured subject
insured_subject.policy_observations
string
Additional observations about the policy
insured_subject.total_insured_value
number
Total insured value in policy currency
status
string
Current status of the risk item
uid
string
Unique identifier
assets
object []
List of associated assets
metadata
object
Additional structured data
Additional resources
Get Risk Item events
GET https://app.insurehero.io/api/shield/v1/risk-items/:riskItemId/events
Events in a risk item
Headers
Authorization*
string
Bearer access token
Path Parameters
riskItemId*
string
The id of the risk item associated with the events
Example response
Get Risk Item by user
GET https://app.insurehero.io/api/shield/v1/users/:userId/risk-items
Headers
Authorization*
string
Bearer access token
Path Parameters
userId*
string
user identifier
Example response
Attributes
data
object []
List of risk items associated with a user
id
uuid
Unique identifier for the risk item
policy_id
uuid
Unique identifier for the associated policy
authorized_claimants
object []
List of authorized claimants
authorized_claimants.email
string
Email of the authorized claimant
authorized_claimants.name
string
Name of the authorized claimant
authorized_claimants.phone
string
Phone number of the authorized claimant
package_id
uuid
Unique identifier for the coverage package
start_date
string
Start date of the coverage period
end_date
string
End date of the coverage period
beneficiaries
object []
List of beneficiaries
beneficiaries.email
string
Email of the beneficiary
beneficiaries.name
string
Name of the beneficiary
beneficiaries.phone
string
Phone number of the beneficiary
beneficiaries.group_uid
string
Unique identifier for the beneficiary’s group
insured_subject
object
Details of the insured subject
insured_subject.identifier_value
string
Identifier of the insured subject
insured_subject.identifier_type
string
Type of identifier
insured_subject.ruc
string
Taxpayer identification number
insured_subject.driver_id
string
Driver's identification number
insured_subject.group_uid
string
Unique identifier of the insured group
insured_subject.group_name
string
Name of the insured group
insured_subject.policy_note
string
Policy coverage notes
insured_subject.guide_number
string
Tracking number for the shipment
insured_subject.plate_number
string
License plate of the transport vehicle
insured_subject.subject_type
string
Type of insured subject
insured_subject.invoice_count
number
Number of invoices related to the insured subject
insured_subject.departure_city
string
City of departure
insured_subject.departure_date
string
Departure date and time
insured_subject.content_category
string
Category of the transported content
insured_subject.departure_coords
string
GPS coordinates of departure location
insured_subject.destination_city
string
Destination city
insured_subject.driver_full_name
string
Full name of the driver
insured_subject.primary_category
string
Main category of insured items
insured_subject.business_industry
string
Industry related to the insured subject
insured_subject.policy_observations
string
Additional observations about the policy
insured_subject.total_insured_value
number
Total insured value in policy currency
status
string
Current status of the risk item
uid
string
Unique identifier
assets
object []
List of associated assets
metadata
object
Additional structured data
Update end date of a Risk Item
You can cancel a Risk Item by modifying its end-date
PATCH https://app.insurehero.io/api/shield/v1/risk-items/:riskItemId/cancel
Headers
Authorization*
string
Bearer access token
Path Parameters
riskItemId*
string
Risk item identifier
Body
end_date*
date
End date of the Risk item. If you send "cancel" the current date is sent.
Example response
Attributes
data
object
Object containing information about a risk item
id
uuid
Unique identifier for the risk item
policy_id
uuid
Unique identifier for the associated policy
authorized_claimants
object []
List of authorized claimants
authorized_claimants.email
string
Email of the authorized claimant
authorized_claimants.name
string
Name of the authorized claimant
authorized_claimants.phone
string
Phone number of the authorized claimant
package_id
uuid
Unique identifier for the coverage package
start_date
string
Start date of the coverage period
end_date
string
End date of the coverage period
beneficiaries
object []
List of beneficiaries
beneficiaries.email
string
Email of the beneficiary
beneficiaries.name
string
Name of the beneficiary
beneficiaries.phone
string
Phone number of the beneficiary
beneficiaries.group_uid
string
Unique identifier for the beneficiary’s group
insured_subject
object
Details of the insured subject
insured_subject.identifier_value
string
Identifier of the insured subject
insured_subject.identifier_type
string
Type of identifier
insured_subject.ruc
string
Taxpayer identification number
insured_subject.driver_id
string
Driver's identification number
insured_subject.group_uid
string
Unique identifier of the insured group
insured_subject.group_name
string
Name of the insured group
insured_subject.policy_note
string
Policy coverage notes
insured_subject.guide_number
string
Tracking number for the shipment
insured_subject.plate_number
string
License plate of the transport vehicle
insured_subject.subject_type
string
Type of insured subject
insured_subject.invoice_count
number
Number of invoices related to the insured subject
insured_subject.departure_city
string
City of departure
insured_subject.departure_date
string
Departure date and time
insured_subject.content_category
string
Category of the transported content
insured_subject.departure_coords
string
GPS coordinates of departure location
insured_subject.destination_city
string
Destination city
insured_subject.driver_full_name
string
Full name of the driver
insured_subject.primary_category
string
Main category of insured items
insured_subject.business_industry
string
Industry related to the insured subject
insured_subject.policy_observations
string
Additional observations about the policy
insured_subject.total_insured_value
number
Total insured value in policy currency
status
string
Current status of the risk item
uid
string
Unique identifier
assets
object []
List of associated assets
metadata
object
Additional structured data
Risk Item Rescission
This endpoint is useful to cancel a risk-item immediately
DELETE https://app.insurehero.io/api/shield/v1/risk-items/:riskItemId/rescission
Headers
Authorization*
string
Bearer access token
Path Parameters
riskItemId*
string
Risk item identifier
Example response
Attributes
data
object
Object containing information about a risk item
id
uuid
Unique identifier for the risk item
policy_id
uuid
Unique identifier for the associated policy
authorized_claimants
object []
List of authorized claimants
authorized_claimants.email
string
Email of the authorized claimant
authorized_claimants.name
string
Name of the authorized claimant
authorized_claimants.phone
string
Phone number of the authorized claimant
package_id
uuid
Unique identifier for the coverage package
start_date
string
Start date of the coverage period
end_date
string
End date of the coverage period
beneficiaries
array
List of beneficiaries
beneficiaries.email
string
Email of the beneficiary
beneficiaries.name
string
Name of the beneficiary
beneficiaries.phone
string
Phone number of the beneficiary
beneficiaries.group_uid
string
Unique identifier for the beneficiary’s group
insured_subject
object
Details of the insured subject
insured_subject.identifier_value
string
Identifier of the insured subject
insured_subject.identifier_type
string
Type of identifier
insured_subject.ruc
string
Taxpayer identification number
insured_subject.driver_id
string
Driver's identification number
insured_subject.group_uid
string
Unique identifier of the insured group
insured_subject.group_name
string
Name of the insured group
insured_subject.policy_note
string
Policy coverage notes
insured_subject.guide_number
string
Tracking number for the shipment
insured_subject.plate_number
string
License plate of the transport vehicle
insured_subject.subject_type
string
Type of insured subject
insured_subject.invoice_count
number
Number of invoices related to the insured subject
insured_subject.departure_city
string
City of departure
insured_subject.departure_date
string
Departure date and time
insured_subject.content_category
string
Category of the transported content
insured_subject.departure_coords
string
GPS coordinates of departure location
insured_subject.destination_city
string
Destination city
insured_subject.driver_full_name
string
Full name of the driver
insured_subject.primary_category
string
Main category of insured items
insured_subject.business_industry
string
Industry related to the insured subject
insured_subject.policy_observations
string
Additional observations about the policy
insured_subject.total_insured_value
number
Total insured value in policy currency
status
string
Current status of the risk item
uid
string
Unique identifier
assets
object []
List of associated assets
metadata
object
Additional structured data
Last updated