Skip to main content
A search action allows you to search for records in your customer’s SaaS instance by specifying filter criteria. The matching results are returned synchronously in the API response.
The Search API returns only a single page of provider results and is intended for narrow, targeted queries.

Enabling search for an object

Search does not require a separate action type in the manifest. Instead, it uses the read action. An object is searchable as long as it is defined under read in your amp.yaml and is not disabled in the installation config. There are two ways to ensure an object is searchable:

Option 1: Set enabled: "always" in the manifest

By setting enabled: "always" on an object, it will always be enabled for every installation, regardless of the installation config. This is useful when you want to guarantee that the object is always searchable.
YAML

Option 2: Ensure the object is not disabled in the installation config

If you don’t set enabled: "always" in the manifest, the object is searchable by default. However, the installation config must not set disabled: true for that object.
YAML
With this manifest, search will work as long as the installation config does not disable the object. For example, the following installation config would prevent search from working:
You can call the search API to search for records in a customer’s SaaS instance. The results are returned synchronously in the API response. Field mappings defined in amp.yaml and mappings selected by users during installation time will be respected and applied. See Object and Field Mapping for more information. Request example
Response example