clay search create --filters, along with each field’s type, description, allowed values, and usage guidance. Use it to build a valid search instead of guessing at field names or intent.
Flags
| Flag | Description |
|---|---|
--source-type <type> | What to search for. One of people or companies. |
Output
| Field | Type | Description |
|---|---|---|
sourceType | string | The source type the fields belong to. |
fields[].name | string | Filter field name to use as a key in --filters. |
fields[].type | string | Human-readable type, e.g. string[], string, number, or boolean. |
fields[].description | string | What the field matches. Omitted when not set. |
fields[].allowedValues | string[] | Present only for enum fields; the closed set of accepted values. Omitted for non-enum fields. |
guidance.behavior | string[] | General guidance on how filters behave. |
guidance.fieldGuidance[] | object | Per-topic guidance; fields lists the field names each note applies to. |
guidance.createExamples[].intent | string | Plain-language description of what the example search finds. |
guidance.createExamples[].request | object | A request shaped like the clay search create payload. |
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | --source-type is not people or companies. |
auth_forbidden | 3 | The API key lacks access, or the public-API beta is not enabled for the workspace. |

