Response Filtering

Use query string parameters to view exposure data.

Overview

Platform APIs support the filtering of HTTP responses in selected operations using query strings that may be appended to the endpoint of an HTTP request. These GET operations are typically known as search operations and include the term search in their name (e.g. Search Accounts, Search Locations).

A filter consists of a single expression that defines an property, a condition (a property value), and an operator (e.g. = or LIKE). The filter keyword supports four filtering operations: comparison operations, logical operations, list operations and matching operations.

Multiple expressions may be linked together using logical operators. A complex query links together two or more expressions using one or more logical operators (AND or OR)

Query strings

A query string consists of one or more query parameters that defines an expression. These query parameters enable you to filter, sort, and paginate the data returned in an HTTP response. Where the endpoint defines the path to a resource, the query string controls the scope or order of the records returned from that resource.

For example, the following CURL request defines a query string that selects accounts matching the specified filter parameter criteria and paginates the records returned in the response based on the specified sort and limit parameters. Account records that do not match the specified criteria are not returned.

curl --request GET \
     --url 'https://{host}/platform/riskdata/v1/exposures/56/accounts? \ 
            filter=locationsCount%3E%3D200 \ 
            &sort=accountName%2CcedantName%2CownerName%20ASC \             
            &limit=50 \
            &allowDeepFilters=false' \
     --header 'accept: application/json'

The query string is appended to the endpoint using the ? character. Each query parameter is identified by a keyword (filter, sort, limit, allowDeepFilters). Each subsequent query parameter within the query string is introduced with an ampersand (&).

This document describes filter query parameter in detail.

Operators

A query string may include a single filter query parameter.

This parameter may define a simple query consisting of a single expression or a complex query that evaluates multiple expressions. The filter query parameter supports the following operators: comparison operators, list operators, and logical operators.

  • Comparison operators define expressions that filter the records returned by a response based on the evaluation of a property value.
  • List operators define expressions that filter the records returned by a response based on a range of property values.
  • Logical operators enable concatenating multiple expressions together into complex queries that filter responses based on the values of multiple properties.

Comparison operators

A comparison operator is a keyword that defines a relationship between a property and a property value in a query parameter.

The property, comparison operator, and property value define an expression. The API evaluates this expression and returns all of the records that match the specified criteria.

Different comparison operators may be used depending on the data type of the property evaluated. Resource properties are generally defined as one of three data types: String, Number, and Boolean, with dates representing a sort of pseudo-data type, which we have identified a YYYY-MM-DD. Although date property values are Strings, these values are treated as if were Numbers in query strings.)

Platform APIs support the following comparison operators: =, !=, >, <, >=, <=, LIKE, and NOT LIKE.

Comparison OperatorData TypesDescription
=String, Number, Boolean, YYYY-MM-DDSelects records with property values that exactly match a specified property value.
!=String, Number, Boolean, YYYY-MM-DDSelects records with property values that do not match the specified property value.
>Number, YYYY-MM-DDSelects records with property values that are greater than the specified property value. This operator may be used to evaluate numeric values only.
<Number, YYYY-MM-DDSelects records with property values that are less than the specified property value.
>=Number, YYYY-MM-DDSelects records with property values that are greater than or equal to the specified property value.
<=Number, YYYY-MM-DDSelects records with property values that are less than or equal to the specified property value.
LIKEStringSelects records with property values that match the specified string pattern. The asterisk character (*) may be used as a wildcard character to represent zero or more characters.
NOT LIKEStringSelects records with property values that do not match the specified string pattern. The asterisk character (*) may be used as a wildcard character to represent zero or more characters.

The following query string defines a simple expression that uses the = comparison operator.

curl --request GET \
     --url 'https://{host}/platform/riskdata/v1/exposures/56/accounts? \ 
            filter=locationsCount = 200' 

List operators

A list operator is a keyword that defines a relationship between a property and multiple property values.

The property, list operator, and comma-separated list property values define an expression. The API evaluates this expression and returns all of the records that match the specified criteria.

OperatorData TypeDescription
INString, NumberSelects records with property values that match a property value specified in a list of property values.
NOT INString, NumberSelects records with property values that do not match a property value specified in a list of property values.

The following query defines a simple query using a list operator:

curl --request GET \
    --url = 'https://path/data-store/referencedata/v1/tagGroups? \
            filter=tagGroupId IN (4,15)'

Note that the comma-separated list of property values are enclosed in parentheses.

The Platform API does not support filtering by YYYY-MM-DD properties using list operators. If you want to search for records that fall within a certain date range, use combinations of the >, <, >=, and <= comparison operators.

Logical operators

A logical operator is a keyword that connects two or more expressions to create a compound expression.

Some Platform APIs services enable you to create complex queries by stringing together multiple property value filters using logical operators.

The filter keyword supports logical queries that return records based on complex queries that compare the value of expressions.

The Platform APIs enables you to create complex expressions using the AND and the OR logical operators:

OperatorDescription
ANDIn an complex expression using the AND logical operator, both expressions must be true for the complex expression to be true.
ORIn an complex expression using the OR logical operator, either expression may be true for the complex expression to be true.

The following request defines a query string that evaluates two expressions using the AND and OR logical operators.

curl --request GET \
     --url 'https://{host}/platform/riskdata/v1/exposures/67/portfolios? \    
            filter=portfolioNumber%20 \
            LIKE%20%22Portfolio_%2A%22%20 \ 
            AND%20%28description%20%3D%201%29%20
            OR%20ownerName%3D%22max%22%29' \
     --header 'accept: application/json'

Exposure property filters

The Platform APIs support query filters for a limited number of exposure properties. Depending on the exposure type (account, aggregate portfolio, portfolio, and treaty), records could be filtered using query parameters.

Your ability to filter exposures, the comparison operators supported, depend on the data type of the property. Platform APIs support the filtering of strings, dates, and numbers.

Accounts

The Search Accounts operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
accountidNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
accountNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
accountNumberString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
branchNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
cedantNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
locationsCountNumber=,!=, >, <, >=, <=IN, NOT INAND, OR
ownerNameString=, !=, LIKE, NOT LIKEIN, NOT IN
policyExpirationDateToYYYY-MM-DD=, !=, >, <, >=, <=AND, OR
producerNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
reportsCountNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
resultsCountNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
stampDateYYYY-MM-DD=, !=, >, <, >=, <=IN, NOT INAND, OR
underwriterNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
userId1String=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
userId2String=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
userId3String=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
userId4String=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
userText1String=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
userText2String=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Aggregate portfolios

The Search Aggregate Portfolios operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
aggregatePortfolioIdNumber=, !=, >, <, >=, <=IN, NOT IN,AND, OR
aggregatePortfolioNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
aggregatePortfolioNumberString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
cedantIdString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
cedantNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
createDateYYYY-MM-DD=, !=, >, <, >=, <=IN, NOT INAND, OR
currencyString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
ownerNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
sourceString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Branches

The Search Branches operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
branchidString=, !=, >, <, >=,<=IN, NOT INAND, OR
branchNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Cedants

The Search Cedants operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
cedantIdString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
cedantNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Databases

The Search Databases operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
databaseIdString=, !=IN, NOT INAND, OR
databaseNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
databaseTypeString=, !=IN, NOT INAND, OR
databaseVersionString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Data Servers

The Search Data Servers operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
serverNameString=AND, OR
serverTypeString=AND, OR

EDMs

The Search EDMs operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
exposureIdNumber=, !=, >, <, >=,<=IN, NOT INAND, OR
exposureNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
ownerNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
serverNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
statusString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Exposure sets

The Search Exposure Sets operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
exposureSetIdNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
exposureSetNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Facultatives

The Search Facultatives operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
facultativeIdString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
facultativeNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Risk Data jobs

The Search Risk Data Jobs operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
endedAtYYYY-MM-DD=AND
jobIdNumber=AND
nameString=AND
statusString=AND
typeString=AND
userNameString=AND

Lines of business

The Search Lines of Business operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
lobIdNumber=, !=, >, <, >=,<=IN, NOT INAND, OR
lobNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Locations

The Search Locations operation returns a list of accounts. This operation supports complex queries based the following properties.

PropertyData TypeComparisonListLogical
accountIdNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
addressTypeString=, !=, >, <, >=, <=IN, NOT INAND, OR
admin1CodeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
admin1NameString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
admin2CodeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
admin2NameString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
admin3CodeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
admin3NameString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
admin4CodeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
admin4NameString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
areaNumber=, !=, > <, >=, <=IN, NOT INAND, OR
areaUnitNumber=, !=, > <, >=, <=IN, NOT INAND, OR
bldgHeightNumber=, !=, > <, >=, <=IN, NOT INAND, OR
bldgValuationNumber=, !=, > <, >=, <=IN, NOT INAND, OR
blockString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
blockGroupString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
buildingClassString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
buildingClassSchemeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
buildingIdString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
buildingNameString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
buildingsNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
cityCodeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
cityNameString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
contentLossTriggerNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
countryString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
countryRmsCodeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
countrySchemeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
currencyString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
dwellTimeNumber=, !=, > <, >=, <=IN, NOT INAND, OR
expireDateYYYY-MM-DD=, !=, >, <, >=, <=AND, OR
floodDefHtAboveGrndNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
floodDefenseElevationNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
`floodDefenseElevationUnitNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
floorAreaNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
floorOccupancyString=, !=, LIKE NOT LIKEIN, NOT INAND, OR
geoResolutionCodeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
heightUnitNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
huZoneString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
inceptDateYYYY-MM-DD=, !=, >, <, >=, <=AND, OR
isPrimaryBldgBoolean=, !=IN, NOT INAND, OR
latitudeNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
locationCodeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
locationIdNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
locationNameString=, !=, LIKE, LIKE NOTIN, NOT INAND, OR
locationNumberString=, !=, LIKE NOT, LIKEIN,NOT INAND, OR
longitudeNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
mfdSubcategoryNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
nshipNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
occupancyTypeNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
occupancyTypeSchemeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
otherZoneString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
postalCodeString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
propertyReferenceString=, != LIKE NOT, LIKEIN, NOT INAND, OR
rentalPropertyIdentifierNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
siteNameString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
slopeNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
storiesNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
streetAddressString=, !=, LIKE, LIKE NOTIN, NOT INAND, OR
tivNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
updateDateYYYY-MM-DD=, !=, >, <, >=, <=AND, OR
useContentValueNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
userBfeNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
userGroundElevNumber=, !=,>, <, >=, <=IN, NOT INAND, OR
userId1String=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
userId2String=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
userText1String=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
userText2String=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
yearBuiltString=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
zone1String=, !=, LIKE NOT, LIKEIN, NOT INAND, OR
zone3NameString=, != LIKE NOT, LIKEIN, NOT INAND, OR
zone4NameString=, != LIKE NOT, LIKEIN, NOT INAND, OR

Portfolios

The Search Portfolios operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
createDateYYYY-MM-DD=, !=, >, <, >=, <=IN, NOT INAND, OR
descriptionString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
ownerNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
portfolioIdNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
portfolioNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
portfolioNumberString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
stampDateYYYY-MM-DD=, !=, >, <, >=, <=IN, NOT INAND, OR

Producers

The Search Producers operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
producerIdString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
producerNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Treaties

The Search Treaties operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
aggregateDeductibleNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
aggregateLimitNumber=, !=, >, <, >=,<=IN, NOT INAND, OR
attachmentBasisString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
attachmentLevelString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
attachmentPointNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
cedantString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
currencyString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
isValidBoolean=, !=IN, NOT INAND, OR
maolAmountNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
numberOfReinstementsNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
occurrrenceLimitNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
percentageCoveredNumber=, !=, >, <, >=,<=IN, NOT INAND, OR
percentagePlacedNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
percentageRetentionNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
percentageRiShareNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
premiumNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
priortyNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
producerString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
reinstatementChargeNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
retentionAmountNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
riskLimitNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
treatyIdNumber=, !=, >, <, >=, <=IN, NOT INAND, OR
treatyNameString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
treatyNumberString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
treatyTypeString=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
userId1String=, !=, LIKE, NOT LIKEIN, NOT INAND, OR
userId2String=, !=, LIKE, NOT LIKEIN, NOT INAND, OR

Enrich Exposure Jobs

The Search Enrich Exposure Jobs operation returns a list of Enrich Exposure API jobs. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
endedAt=
jobId=IN
name=
startedAt=
status=
type=
userName=

Tenant Jobs

The Search Tenant Jobs operation returns a list of accounts. This operation supports complex queries based the following properties and a combination of comparison operators, list operators, and logical operators.

PropertyData TypeComparisonListLogical
endedAt YYY-MM-DD=AND
entitlementStringIN
jobIdNumber=
nameString=, LIKE
platformOperationType=IN
startedAtYYY-MM-DD=AND
statusString=
typeString=
userNameString=

Result property filters

EP curve type filters

The epType query parameter enables you to filter metrics by EP curve types. Options include AEP, OEP, TCE_AEP, and TCE_OEP.

An EP curve is a cumulative distribution showing the probability that losses will exceed a certain amount, from either single or multiple occurrences. Losses are expressed in the occurrence exceedance probability (OEP) and the aggregate exceedance probability (AEP) curves.

For example, the Get Metrics operation supports filtering by EP type:

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses/analysisID/metrics?granularity=POLICY& \
		 epType=AEP& \
		 epType=TCE_AEP& \
		 limit=100& \
		 offset=0' \
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

Platform APIs support the following EP curve type query parameters as filters:

CodeDescription
AEPProbability that the total losses across all events in a year will meet or exceed a loss threshold.
OEPProbability that at least one event will occur in a year that causes losses greater than or equal to a certain amount.
TCE_AEPTCE is the expected value of loss given that a loss at least as large as RPLα has occurred based on AEP losses. Conditional expectation of losses that are greater than or equal to a specified loss threshold RPLα, where α is the selected risk tolerance threshold and RPLα is the corresponding is the return period loss.
TCE_OEPTCE is the expected value of loss given that a loss at least as large as RPLα has occurred based on AEP losses. Conditional expectation of losses that are greater than or equal to a specified loss threshold RPLα, where α is the selected risk tolerance threshold and RPLα is the corresponding return period loss.

Event ID filters

The eventIds query parameter enables you to filter result metrics by event IDs.

An event is a representation of a peril (e.g. earthquake, flood, hurricane) with the potential to generate catastrophe losses. For a given peril, all potential events are synthesized into a stochastic event set, which defines the occurrence and magnitude of each event. Events within an event set are identified by a unique event ID.

The Get ELT and Get Sampled Losses operations supports filtering by Event IDs.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses/id/elt?perspective=RN& \
		 treatyId=56& \
		 eventIds=6789& \
		 eventIds=6790& \
		 eventIds=6791 \
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

Exposure ID filters

The exposureId query parameter enables you to filter metrics by exposure ID.

An exposure is an entity that may produce a financial loss when impacted by an event. Exposures are identified by their exposure type and a unique ID number.

The exposure ID identifies the exposure (e.g. location, account, portfolio) analyzed.

The Get ELT, Get EP Metrics, Get EP Interpolation, Get Key Losses, Get PLT, Get Sampled Losses, and Get Statistics operations support filtering by exposure IDs.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses/id/elt?exposureId=45' \
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

Exposure type filters

The exposureType query parameter enables the client to filter perspectives by exposure type. If unspecified, the service uses the default value of 0 and returns all exposure types.

Each exposure type is identified by a four-digit numberic code, e.g. 8017 (Portfolio or Group), 8019 (Account), 8020 (Location).

The Get ELT, Get EP Metrics, Get EP Interpolation, Get Key Losses, Get Financial Perspectives, Get PLT, Get Sampled Losses, and Get Statistics operations support filtering by exposure IDs.

curl --request GET \
     --url 'https://{env_url}/riskmodeler/v2/analyses/35/keylosses?exposureType=8020' 

The exposureType query parameter may be defined by the following values:

IDDescription
0 Default. Returns perspectives for all exposure types.
7937Treaty
7938PortByCedant
7939AccountCoverage
7940EQLocationCvgDetail
7941HULocationCvgDetail
7942TOLocationCvgDetail
7943PortByRegion
7950PortByPostCode
7951portbypostcodelob
7952portbyloccode
7953portbyloccodelob
7954portbydistrict
7955portbydistrictlob
7956portbycity
7957portbycitylob
7958portbycounty
7959portbycountylob
7960portbycresta
7961portbycrestalob
7962portbystate
7963portbystatelob
7964portbylob
7965portinjurylevel
7966acctinjurylevel
7967policyinjurylevel
7968locationinjurylevel
7969locpeoplegroupinjurylevel
7970policyspecialconditions
7971buildingcoverage
7972buildinginjurylevel
7975portbycountry
7976portbycountrybylob
7981portbycountybycedant
7982portbycrestabycedant
7983portbystatebycedant
7984portbycountrybycedant
7986portbypostcodebylobbycedant
7990portbycountylobbycedant
7991portbycrestalobbycedant
7992portbystatelobbycedant
7993portbycountrybylobbycedant
8017portfolio
8019account
8020location
8021policy
8022locationcoverage
8023policycoverage
8024reinsurancecession
8025eqlocationdetail
8026hulocationdetail
8027tolocationdetail
8028fllocationdetail
8029aggportfolio
8030portfoliocoverage
8031locationpeoplegroup
8035building
9000fac

Filter condition filters

The filterCondition query parameters enable you to filter metrics by job IDs.

The Get Metrics operation supports filtering by return periods and filter conditions.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses/analysisID/metrics?returnPeriod=33&filterCondition=condition&limit=100&offset=0' \
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

Granulariy filters

The granularity query parameters enable you to filter metrics by output levels.

The Get Metrics operation supports filtering by the POLICY granularity.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses/analysisID/metrics?granularity=POLICY& \
		 epType=AEP& \
		 epType=TCE_AEP& \
		 limit=100& \
		 offset=0' \
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

Job ID filters

The jobId query parameters enable you to filter metrics by job IDs.

The jobId parameter is supported by all Platform APIs GET operations in the Metrics collection.

curl --request GET \
     --url 'https://{host}/riskmodeler/v1/analyses/analysisID/elt?perspective=GU& /
		 jobUUID=a433baa3-8e1e-47ff-8098-f8781d9b3c32& /
		 exposureId=8& /
		 exposureType=8017& /
		 jobId=134866' /
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

Job UUID filters

The jobuuid query parameters enable you to filter metrics by job UUIDs.

The jobUUID parameter is supported by all Platform APIs GET operations in the Metrics collection.

curl --request GET \
     --url 'https://{host}/riskmodeler/v1/analyses/analysisID/elt?perspective=GU& /
		 jobUUID=a433baa3-8e1e-47ff-8098-f8781d9b3c32& /
		 exposureId=8& /
		 exposureType=8017& /
		 jobId=9064540' /
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

Key and value filters

The key and value query parameters enable you to filter metrics by key-value properties.

The Get EP Interpolation operation supports filtering by keys and key values.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses/id/ep/interpolate?key=key& \
		 value=value' \
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

Metric type filters

The metricType query parameter enables you to filter analysis result data based on the metrics.

The Get EP Metrics, Get EP Interpolation, and Get Metrics operation supports filtering by metric types. One of ELT, EP, or STATS.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses/45/ep?metricType=ELT' 

Platform APIs support the following metric type parameter values:

CodeDescription
`ELTThe event loss table (ELT) is an output table that contains the mean loss standard deviation, exposure value, and event rate for every loss-causing event. In DLM models, the ELT is the basis of losses for all financial perspectives at all exposure levels. To learn more, see Event loss tables
EPEP metrics measure the probability that an event will occur in a year that causes losses greater than or equal to a certain amount. To learn more, see EP metrics
STATSStatistics include the average annual loss, standard deviation, and coefficient of variation. To learn more, see Statistics

Perspective filters

The perspective query parameter identifies the financial perspective. Financial perspectives are identified by a two-character string.

The Get Cedants by Result, Get ELT, Get EP Interpolation, Get Key Losses, Get Location AAL Metrics, Get Metrics, Get PLT, Get Sampled Losses, and Get Statistics operations support filtering by financial perspective.

curl --request GET \
     --url 'https://{env_url}//riskmodeler/v2/analyses/34/location-aal?perspective=GR \
            &sort=AAL%20DESC \
            &limit=100 \
            &offset=0' 

Platform APIs support the following perspective query parameters as filters:

CodeDescription
GUGround Up Loss
GSGround Up Specified Loss
G2Ground Up Loss - Secondary Peril
G1Ground Up Loss - Primary Peril
CLClient Loss
UCUnderlying Coverage
OLOver Limit Loss
OIOther Insurer’s Loss
GRGross Loss
FAFaculative Reinsurance Loss
SSSurplus Share Treaty Loss
QSQuota Share Treaty Loss
WXWorking Excess Treaty Loss
RLNew Loss Pre Cat
RPNet Loss Post Cat
RCNet Loss Post Corporate Cat
RGReinsurance Gross Loss
RNReinsurance New Loss

Financial perspectives are understood to be upstream or downstream of one another. The position of one perspective relative to one another perspective is an important factor in financial perspective mapping. For more information, see Map perspective by analysis.

Return period filters

The returnPeriod query parameter enables you to filter by return period.

A return period is a point on an EP curve that describes the likelihood of exceeding a loss threshold from the single largest event (OEP) or the aggregation of one or more events (AEP). The return period is defined as the inverse of the annual exceedance probability. For example, a return period of 100 years corresponds to an annual exceedance probability of 1%. In the context of peril events, return period refers to the number of years between occurrences of an event of a given size in the region. Short and long return periods enable modelers to estimate risk at both short and long-range exceedance probabilities.

The Get Metrics operation supports filtering by return periods. Must be a value between 2 and 49999.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses/analysisID/metrics?returnPeriod=2500& \
		 limit=100& \
		 offset=0' \
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

Run date filters

The runDate query parameter enables you to filter analysis results by the date the analysis was processed.

The Get Results operation supports filtering by run date.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/[email protected]& \
		 runDate=2022-12-23'

Treaty ID filters

The treatyId query parameter enables you to filter analysis results by treaty ID.

By viewing losses at the treaty-level, you can better assess capacity and coverage and make corresponding pricing decisions.

The Get EP Metrics, Get ELT, Get EP Interpolation, Get key Losses, Get PLT, Get Sampled Losses, and Get Statistics operations support treaty ID filtering.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses/id/elt?perspective=RN& \
		 treatyId=56& \
		 eventIds=6789& \
		 eventIds=6790& \
		 eventIds=6791 \
     --header 'Authorization: XXXXXXXXXX' \
     --header 'accept: application/json'

User name filters

The userName query parameter enables you to filter analysis results by the name of the principal that submitted that analysis job.

A principal is an entity that identifies an authorized end user or client application. Intelligent Risk Platform supports two principals: user accounts for end users of applications and API keys for client applications. Principals gain access rights and permissions to protected resources by being members of a group that has been granted those access rights and permissions.

For example, the Get Results operation supports user name filtering.

curl --request GET \
     --url 'https://{host}/riskmodeler/v2/analyses?userName=p_name& \
		 runDate=date-string'