Filter endpoints allow you to review and manage filters for async messages. A filter can contain multiple rules, but you can only create one filter per subscription. Learn about filters.
You can retrieve, create, update, or delete filters.
Beta users may also use the endpoints for reviewing and managing filter links.
Create filter (beta)
Create a new filter in the specified environment. Once you create a filter, you must create at least one link to apply it to your production traffic.
cURL request example
Request Body Schema
- environmentobject
Contains metadata about the Redox environment that you're operating in or on behalf of.
- idrequired, string
Contains the unique identifier of the Redox environment.
Format: uuid
- namestring
Contains the human-readable name of the asset.
- actionstring
Defines what action should be performed when the filter is applied to a message.
Possible Values:block-all
,send
- rulesArray of object
Contains a list of rules that determine when the filter is applied to a message. A filter is only applied if ALL rules are met.
- pathstring
Specifies the path to the field(s) that should be evaluated when the filter is applied. This should be a
jsonpath
value. - valuesArray of string
Contains an array of string values that are matched against the path value when the rule is evaluated.
- allowListboolean
Indicates whether the rule is an allow-list (matches when the value at the specified path is in the values array) or a deny-list (matches when the value at the specified path is NOT in the values array). Defaults to
true
(allow-list).
- metaobject
- versionstring
Lists the major and minor version number for the format of the returned payload. The payload format or shape may change between minor versions, like including additional or extended fields in later versions. We include the version data in each response so that you have the option to handle the signaled differences.
- payloadobject
- filterobject
Contains a filter and its related details.
- idstring
Contains the unique identifier of the asset.
Format: uuid - namestring
Contains the human-readable name of the asset.
- rulesArray of object
Contains a list of rules that determine when the filter is applied to a message. A filter is only applied if ALL rules are met.
- pathstring
Specifies the path to the field(s) that should be evaluated when the filter is applied. This should be a
jsonpath
value. - valuesArray of string
Contains an array of string values that are matched against the path value when the rule is evaluated.
- allowListboolean
Indicates whether the rule is an allow-list (matches when the value at the specified path is in the values array) or a deny-list (matches when the value at the specified path is NOT in the values array). Defaults to
true
(allow-list).
- usageArray of object
Contains details about where the filter is being used.
- linkIdstring
Contains the unique identifier of the link for a specified asset.
Format: uuid - organizationobject
Describes the Redox organization that the asset belongs to.
- idnumber
Contains the unique identifier of the Redox organization.
- namenullable, string
Contains the human-readable name of the Redox organization.
- connectingOrganizationobject
Specifies the organization the asset is connected to when the subscription relates to a partner organization.
- idnumber
Contains the unique identifier of the Redox organization.
- namenullable, string
Contains the human-readable name of the Redox organization.
- subscriptionobject
- idstring
Contains the unique identifier of the subscription.
Format: uuid - dataModelstring
Specifies the Redox data model that the link applies to or should apply to.
- sourceobject
Specifies the source of the subscription that an asset is or should be linked to.
- idrequired, string
Contains the unique identifier of the source.
Format: uuid - namenullable, string
Specifies the name of the source.
- destinationobject
Specifies the destination of the subscription that an asset is or should be linked to.
- idrequired, string
Contains the unique identifier of the destination.
Format: uuid - namenullable, string
Specifies the name of the destination.
- filterIdstring
Contains the unique identifier of the asset being linked.
Format: uuid - versionstring
Contains the API schema version used for this asset.
- eventTypenullable, string
Specifies the specific event type for a data model that the link applies to or should apply to.
- createdAtstring
Displays the date and time that the asset was originally created in ISO 8601 format.
- createdByobject
Contains the metadata about the user who created the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- updatedAtstring
Displays the date and time that the asset was last updated in ISO 8601 format.
- updatedByobject
Contains the metadata about the user who last updated the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- deletedAtnullable, string
Displays the date and time that the asset was deleted. Returns a
null
value if the asset hasn't been deleted. - deletedBynullable, object
Contains the metadata about the user who deleted the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- actionstring
Defines what action should be performed when the filter is applied to a message.
Possible Values:block-all
,send
- pathTypestring
Specifies the format of the field paths defined for this filter's rules. Both FHIR and data model filters use the
jsonpath
path type.Value:jsonpath
- versionstring
Contains the API schema version used for this asset.
- filterVersionnumber
Contains the numeric version of the asset. Version numbers start at 1 and increment in whole numbers whenever the asset is updated.
- createdAtstring
Displays the date and time that the asset was originally created in ISO 8601 format.
- createdByobject
Contains the metadata about the user who created the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- updatedAtstring
Displays the date and time that the asset was last updated in ISO 8601 format.
- updatedByobject
Contains the metadata about the user who last updated the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- deletedAtnullable, string
Displays the date and time that the asset was deleted. Returns a
null
value if the asset hasn't been deleted. - deletedBynullable, object
Contains the metadata about the user who deleted the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- environmentobject
Describes the Redox environment that the asset belongs to.
- idstring
Contains the unique identifier of the Redox environment.
Format: uuid
- organizationobject
Describes the Redox organization that the asset belongs to.
- idnumber
Contains the unique identifier of the Redox organization.
- namenullable, string
Contains the human-readable name of the Redox organization.