Quicklinks

Record Search

When the ID of an entity is known, the get API endpoints can be used to fetch the entity. In situations where a search for records is necessary, Kizen provides an API endpoint to search entities based on a number of criteria.

Using the endpoint /records/{object_identifier}/search, a list of matching entities can be fetched:

curl -X POST "https://app.go.kizen.com/api/records/object_identifier/search" \
 -H 'accept: application/json'\
 -H 'content-type: application/json'  

When no parameters are included, the search endpoint will return all records.

Search Criteria

The search criteria are passed as query string parameters or in the body of the POST:

Parameter NameTypeDescription
group_idStringFilter group ID. Used to filter records returned.
in_group_idsStringComma-separated list of filter group IDs. Only returns records in at least one of these groups. If both in_group_ids and not_in_group_ids are supplied, only in_group_ids will be considered.
not_in_group_idsStringComma-separated list of filter group IDs. Only returns records that are not in any of these groups. If both in_group_ids and not_in_group_ids are supplied, only in_group_ids will be considered.
orderingStringThe field to use to order the results.
pageIntegerWhich page to return in the result set.
page_sizeIntegerThe number of results per page.
searchStringThe search term to filter by. By default, this text search will be applied to the name field for entities, and for contacts, will be applied to the email, first_name, last_name, home_phone, mobile_phone, and business_phone.

When performing a text search, by default the text search will be applied to the name field for entities, and for contacts, will be applied to the email, first_name, last_name, home_phone, mobile_phone, and business_phone fields.

To adjust this behavior, there are three additional parameters that can be used in the body of the POST:

Parameter NameDescription
search_within_field_namesAn array of field API names to apply the search text to
search_within_field_idsAn array of field IDs names to apply the search text to
query*An object representing a specific filter to apply as part of the search.

* Query payloads areĀ not considered to be version-safe at this time. Future updates to the Kizen platform may break existing hard-coded filter configurations. For this reason, we strongly recommend creating a filter group first in Kizen, and using the group ID in the API call, not the filter payload itself.

Read more details and try it yourself in the API documentation