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

# Pause an agent

> Stop a Discovery Agent from starting new searches

Pauses a Discovery Agent. It sets `schedulable` to `false` and `paused_at` to the current time, so no new runs are started. A run that is already in progress is left alone. Pausing an agent that is already paused returns it without changes. Requires the `write:discovery` permission.

No request body is needed. Use [Resume an agent](https://docs.affonso.io/api/endpoint/discovery/resume-agent.md) to turn it live again.

## Path Parameters

**id** `string` *required*

Agent ID.

## Response

**success** `boolean`

`true` when the request succeeds.

**data** `object`

The paused Discovery Agent.

**Agent fields**

**id** `string`

Agent ID.

**name** `string`

Display name. Defaults to `Discovery agent` when no name was given on create.

**website** `string | null`

Product website from the agent brief.

**product\_brand** `string | null`

Product or brand the agent finds partners for.

**audience** `string | null`

One-sentence description of the customers the product serves.

**language** `string | null`

Search language as a lowercase ISO 639-1 code, for example `en`.

**channel** `string | null`

Where the agent searches. Currently always `websites`.

**exclude\_groups** `string[]`

Website categories the agent leaves out of results: `directories`, `marketplaces`, `social_networks`, `news`, `review_sites`.

**keywords** `string[]`

Topic sources the agent searches for.

**competitors** `string[]`

Competitor website URLs the agent uses as search sources.

**lookalikes** `string[]`

Lookalike page URLs. Managed with [Update lookalikes](https://docs.affonso.io/api/endpoint/discovery/update-lookalikes.md).

**sources** `array`

Every saved source, oldest first.

**Source fields**

**id** `string`

Source ID.

**type** `string`

`topic`, `competitor`, or `lookalike`.

**value** `string`

The keyword for a topic. The hostname without `www.` for a competitor. The URL for a lookalike.

**website** `string | null`

Full URL for competitor and lookalike sources. `null` for topics.

**created\_at** `string`

ISO 8601 timestamp.

**updated\_at** `string`

ISO 8601 timestamp.

**can\_start** `boolean`

`true` when the agent has at least one keyword or competitor. Lookalikes do not count.

**auto\_approve** `boolean`

When `true`, newly delivered prospects are approved automatically and queued for contact enrichment.

**schedulable** `boolean`

`false` while the agent is paused or deleted.

**paused\_at** `string | null`

ISO 8601 timestamp of the last pause. `null` while the agent is live.

**archived\_at** `string | null`

ISO 8601 timestamp of deletion. `null` unless the agent was deleted.

**latest\_run** `object | null`

Most recent search run, or `null` when the agent has no run yet.

**Latest run fields**

**id** `string`

Run ID.

**status** `string`

`pending`, `running`, `completed`, `empty`, or `failed`.

**started\_at** `string`

ISO 8601 timestamp.

**created\_at** `string`

ISO 8601 timestamp.

**updated\_at** `string`

ISO 8601 timestamp.

## Errors

* **404** `NOT_FOUND`: no agent with this ID exists for your team, or the agent was deleted. An agent that belongs to another team also returns `404`. The message is `Discovery agent not found`.
* **403** `INSUFFICIENT_PERMISSIONS`: the API key does not have the `write:discovery` permission.

```bash cURL theme={null}
curl -X POST "https://api.affonso.io/v1/discovery/agents/cmn4agt0001xk92hf6d0abcd/pause" \
  -H "Authorization: Bearer sk_live_your_api_key"
```

```json Response theme={null}
{
  "success": true,
  "data": {
    "id": "cmn4agt0001xk92hf6d0abcd",
    "name": "Newsletter partners",
    "website": "https://example.com",
    "product_brand": "Example Mail, email marketing for small shops",
    "audience": "Owners of small online shops who send a weekly newsletter.",
    "language": "en",
    "channel": "websites",
    "exclude_groups": ["directories", "marketplaces"],
    "keywords": ["email marketing for small business"],
    "competitors": ["https://example.org"],
    "lookalikes": [],
    "sources": [
      {
        "id": "cmn4src0001xk92hf6d0abcd",
        "type": "topic",
        "value": "email marketing for small business",
        "website": null,
        "created_at": "2026-11-02T09:00:00.000Z",
        "updated_at": "2026-11-02T09:00:00.000Z"
      },
      {
        "id": "cmn4src0002xk92hf6d0abcd",
        "type": "competitor",
        "value": "example.org",
        "website": "https://example.org",
        "created_at": "2026-11-02T09:00:00.000Z",
        "updated_at": "2026-11-02T09:00:00.000Z"
      }
    ],
    "can_start": true,
    "auto_approve": false,
    "schedulable": false,
    "paused_at": "2026-11-06T10:00:00.000Z",
    "archived_at": null,
    "latest_run": {
      "id": "cmn4run0001xk92hf6d0abcd",
      "status": "completed",
      "started_at": "2026-11-03T06:00:00.000Z"
    },
    "created_at": "2026-11-02T09:00:00.000Z",
    "updated_at": "2026-11-06T10:00:00.000Z"
  }
}
```


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