> ## Documentation Index
> Fetch the complete documentation index at: https://docs.data.avina.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Stop monitoring a company search

> Removes the schedule from a company search.

No further runs start. Results found so far stay readable.

A run that is already in progress finishes. To stop that run as well, [cancel the search](https://docs.data.avina.io/api-reference/companies/cancel-search.md), which also removes the schedule.

### Path parameters

**search\_id** `string` *required*

The search's `id`, returned when it was started.

### Response

**`200`** The search, with `monitor` set to `null`.

**object** `string` *required*

`company_search` or `people_search`.

**id** `string` *required*

The search's identifier. Use it to read status and results.

**status** `string` *required*

`queued` and `running` are in progress. `completed`, `failed` and `cancelled` are terminal. `completed` means this run finished, not that every matching record in the world was found. A monitored search goes back to `running` at its next scheduled run.

**stop\_reason** `string | null` *required*

Why a finished search stopped. `null` while it is in progress. Can also be `null` on a `failed` search; read `error`.

Options: `target_reached`, `sources_exhausted`, `usage_limit_reached`, `retrieval_limit_reached`, `query_needs_clarification`, `provider_failed`, `cancelled`.

**error** `string | null` *required*

A message when `status` is `failed`. Results found before the failure stay readable.

**query** `string | null` *required*

The natural-language request, when the search was started with `query`.

**limit** `integer` *required*

The most results this search will return.

**interpretation** `object | null` *required*

How a `query` was read. `null` until the query has been interpreted, and for searches started with `filters` or `criteria`.

**properties**

**filters** `object`

Structured conditions. A record must meet every condition in `all`. `null` is treated the same as leaving `filters` out. See the [filter reference](https://docs.data.avina.io/guides/structured-filters.md) for every field and operator.

**properties**

**all** `object[]` *required*

The conditions. A record must meet every one. Each item is a field condition (`field`, `operator`, `value`) or a `related` condition.

**item properties**

**field** `string`

The field to test, such as `company.industry` or `person.title`.

**operator** `string`

How to compare. Which operators a field accepts depends on its type.

Options: `in`, `matches`, `eq`, `gt`, `gte`, `lt`, `lte`, `between`, `within_last_days`.

**value** `any`

The value to compare against. A list for `in`, a two-item list for `between`, a `{amount, currency}` object for money fields, a number of days for `within_last_days`.

**related** `object`

A condition on records related to the company. All conditions in `where` must be true of the same record, for example one job listing.

**properties**

**relationship** `string` *required*

`open_jobs`: the company has at least one open job that matches. `new_hires`: someone with a matching title joined the company within the window.

**where** `object` *required*

Conditions on the related record.

**properties**

**all** `object[]` *required*

Conditions on `title` (`in`), `posted_at` (`within_last_days`, for `open_jobs`) or `started_at` (`within_last_days`, for `new_hires`).

**item properties**

**field** `string` *required*

The field on the related record.

Options: `title`, `posted_at`, `started_at`.

**operator** `string` *required*

`in` for `title`; `within_last_days` for `posted_at` and `started_at`.

**value** `any` *required*

A list of titles for `in`, or a whole number of days from 1 to 36500 for `within_last_days`.

**criteria** `object[]`

Free-text requirements read from the query.

**item properties**

**text** `string` *required*

The requirement, written as a statement that is true of a match.

**kind** `string`

`attribute`: a lasting fact the company's own description could state, such as "sells to hospitals". `event`: something that happened, such as "opened a location in Texas this year"; checked by web research.

**unsupported\_criteria** `string[]`

Requirements no public source can confirm, quoted from the query. A search cannot run while there are any.

**errors** `object[]`

Problems validating the filters the query was read as. A search cannot run while there are any.

**item properties**

**field** `string`

The filter path with the problem.

**message** `string` *required*

What is wrong.

**assumptions** `object[]` *required*

Ambiguous wording in the query and how it was read.

**item properties**

**text** `string` *required*

The exact phrase from the query.

**assumed** `string` *required*

The reading that was used.

**alternatives** `string[]` *required*

Other readings. Reword the query if one of these is what you meant.

**progress** `object` *required*

Counts so far. They only increase.

**properties**

**candidates** `integer` *required*

Candidates checked so far.

**accepted** `integer` *required*

Candidates that matched every requirement and were added to the results.

**rejected** `integer` *required*

Candidates that failed at least one requirement.

**unknown** `integer` *required*

Candidates whose evidence could not confirm every requirement. They are not returned.

**not\_returned** `integer` *required*

Candidates that matched every requirement but were not returned because `limit` or a spend limit had already been reached.

**contacts\_found** `integer` *required*

Contacts found so far. For company searches with `persona_ids`, and people searches with enrichment.

**cost\_usd** `number` *required*

What this search has cost so far, in US dollars, including the 5% platform fee.

**cancel\_requested** `boolean` *required*

`true` after a cancel request, until the search reaches `cancelled`.

**monitor** `object | null` *required*

The schedule, when the search is monitored. `null` for a search that runs once. On a monitored search, `status` and `stop_reason` describe the most recent run, and `progress` and `cost_usd` are totals across all runs.

**properties**

**frequency** `string` *required*

How often the search runs again.

Options: `daily`, `weekly`.

**status** `string` *required*

`active` when runs are scheduled. `paused` when the schedule is kept but runs are skipped.

**runs\_completed** `integer` *required*

How many runs have finished, including the first.

**last\_run\_at** `string | null` *required*

When the most recent run finished.

**next\_run\_at** `string | null` *required*

When the next run is due. `null` while paused.

**created\_at** `string` *required*

When the search was started.

**completed\_at** `string | null` *required*

When the search reached a terminal status.

**expires\_at** `string | null` *required*

When the search and its results stop being readable. `null` when no expiry is set.

**status\_url** `string` *required*

The URL of this search's status.

**results\_url** `string` *required*

The URL of this search's results.

### Errors

| Status | Code | When |
| - | - | - |
| `401` | `invalid_api_key` | The API key is missing, invalid or revoked. |
| `404` | `not_found` | No such object in this workspace. |
| `429` | `rate_limited` | Too many requests. Retry after `Retry-After` seconds. |
| `500` | `internal_error` | Something went wrong on our side. Retry with backoff, and with the same `Idempotency-Key` if you sent one. |

Every error uses the same shape. See [Errors](https://docs.data.avina.io/api-reference/errors.md).

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -X DELETE https://api.avina.io/v1/companies/search/$SEARCH_ID/monitor \
  -H "Authorization: Bearer $AVINA_API_KEY"
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
import os
import requests

response = requests.delete(
    f"https://api.avina.io/v1/companies/search/{search_id}/monitor",
    headers={"Authorization": f"Bearer {os.environ['AVINA_API_KEY']}"},
)
response.raise_for_status()
print(response.status_code)
```

```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
const response = await fetch(`https://api.avina.io/v1/companies/search/${searchId}/monitor`, {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.AVINA_API_KEY}`,
  },
});
console.log(response.status);
```

```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "object": "company_search",
  "id": "32ba40da-e558-442a-8945-e93fc771afc9",
  "status": "completed",
  "stop_reason": "target_reached",
  "error": null,
  "query": "Series B fintech companies in New York that are hiring compliance engineers",
  "limit": 25,
  "interpretation": null,
  "assumptions": [],
  "progress": {
    "candidates": 310,
    "accepted": 71,
    "rejected": 221,
    "unknown": 18,
    "not_returned": 0,
    "contacts_found": 0
  },
  "cost_usd": 31.4,
  "cancel_requested": false,
  "monitor": null,
  "created_at": "2026-11-12T17:02:11Z",
  "completed_at": "2026-11-15T17:36:20Z",
  "expires_at": null,
  "status_url": "https://api.avina.io/v1/companies/search/32ba40da-e558-442a-8945-e93fc771afc9/status",
  "results_url": "https://api.avina.io/v1/companies/search/32ba40da-e558-442a-8945-e93fc771afc9/results"
}
```

```json 401 theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "error": {
    "code": "invalid_api_key",
    "message": "The API key is invalid or revoked.",
    "request_id": "req_8f2a61c09d4e7b3a5f10c2d8"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.