Search
gorgias_searchSearch Gorgias resources by text query across customers, agents, teams, tags, and more. Specify a resource type to return matching records as a flat array.
Instructions
POST /api/search — Low-level search for Gorgias resources by text query. For intelligent ticket search with auto-detection of emails, names, views, tags, and keywords, use gorgias_smart_search instead. The type parameter controls what is searched: 'customer' searches names and emails; 'customer_profile' searches names, emails, and all channel addresses (phones, emails, etc.); 'agent' searches agents; 'team' searches teams; 'tag' searches tags; 'integration' searches integrations; 'customer_channel' searches customer channel data; 'customer_channel_email' searches customer channel email addresses; 'customer_channel_phone' searches customer channel phone numbers; 'customers_by_phone' finds customers by phone number. Results are always returned as a flat array (the client normalizes both raw arrays and {data:[...]} wrappers from the API).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Maximum number of results returned (default: 10, max: 50). | |
| type | Yes | The type of search to perform. Determines which resource category is searched and how results are matched. | |
| query | No | Text query used to search for resources. Defaults to empty string which returns all/recent resources of the specified type. |