clay search fields. The command returns a search id — page through results with clay search next.
Flags
| Flag | Description |
|---|---|
--source-type <type> | What to search for. One of people or companies. |
--filters <json> | JSON object whose keys are filter field names for the given source type. Run clay search fields to list valid fields and values. |
Output
| Field | Type | Description |
|---|---|---|
searchId | string | Pass to clay search next to page through results. |
Errors
| Code | Exit | Notes |
|---|---|---|
validation_error | 2 | --filters is not a JSON object, a filter field or value is invalid, or the workspace’s usage quota would be exceeded. |
auth_forbidden | 3 | The API key lacks access, or the public-API beta is not enabled for the workspace. |
not_found | 6 | Workspace not found. |

