# \_search

Returns IDs of matching customers

### Parameters

#### results-per-page (optional)

Number of results to display per page. Default is 100

#### current-page (optional)

Current page number. Default is 0

#### name (optional)

Search filter to find matching names

#### custom (optional)

JSON-encoded list of filters to apply against custom values

**parent\_id (optional)**

Integer ID of a parent customer

### Example

```
FM_api('Customers_search', [
	'results-per-page' => '10',
	'current-page' => '0',
	'name'=>'The Cafe',
	'custom'=>'{"vegan":"yes"}'
] )
```

#### On Success

```
{"ids":[1,2,3]}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/customers/_search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
