> ## 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.

# Get agent overview

> Read the state, blockers, match counts, and recent runs of a Discovery Agent

Returns the same overview the agent page in the dashboard shows: whether the agent is live or paused, what is blocking it, counts of delivered matches, and its last 8 runs. Read-only. Requires the `read:discovery` permission.

> [!NOTE]
>
> Counts include delivered matches only. Runs that found nothing only because the agent was waiting are not shown.

## Blockers

`primary_blocker` is the banner the dashboard shows, or `null` when nothing blocks the agent. When several apply, the first one in this list wins:

| Code | Title | When |
| - | - | - |
| `no_source` | No keyword or competitor to search | The agent has no keyword or competitor |
| `paused` | Agent is paused | The agent is paused |
| `last_run_failed` | Last run failed | The latest run failed. The message is the run error when there is one |
| `waiting_for_yes` | A direction is waiting for a yes | A suggested direction waits for your decision. See [Decide on a direction](https://docs.affonso.io/api/endpoint/discovery/decide-direction.md) |
| `no_searchable_direction` | No searchable direction left | The agent has used its current topics and competitors |

## Path Parameters

**id** `string` *required*

Agent ID.

## Response

**success** `boolean`

`true` when the request succeeds.

**data** `object`

Agent overview.

**Overview fields**

**agent\_id** `string`

Agent ID.

**name** `string`

Agent name.

**state** `string`

`live` or `paused`. `paused` when `paused_at` is set or `schedulable` is `false`.

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

ISO 8601 timestamp of the last pause.

**schedulable** `boolean`

Whether the agent can start new runs.

**blockers** `array`

Current blockers. Contains `primary_blocker` when there is one, otherwise empty.

**primary\_blocker** `object | null`

The blocker shown as the dashboard banner.

**Blocker fields**

**code** `string`

`no_source`, `paused`, `last_run_failed`, `waiting_for_yes`, or `no_searchable_direction`.

**title** `string`

Short title.

**message** `string`

Explanation for the user.

**counts** `object`

Counts of delivered matches.

**Count fields**

**found** `integer`

All delivered matches.

**accepted** `integer`

Matches you approved.

**rejected** `integer`

Matches you rejected.

**undecided** `integer`

Matches without a decision.

**recent\_runs** `array`

Up to 8 recent runs, newest first.

**Run fields**

**id** `string`

Run ID.

**serp\_run\_id** `string | null`

ID of the related search run, when there is one.

**source\_type** `string | null`

`topic`, `competitor`, or `null` when the source is not known.

**source\_value** `string | null`

The topic or competitor the run searched.

**topic** `string | null`

Topic the run searched.

**competitor** `string | null`

Competitor the run searched.

**source\_label** `string`

Display label. `Search run` when the source is not known.

**source\_known** `boolean`

Whether the source is known.

**started\_at** `string`

ISO 8601 timestamp.

**pages** `integer`

Search result pages the run looked at.

**matches** `integer`

Delivered matches found by this run.

**found\_count** `integer`

Legacy field. Always `0`.

**status** `string`

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

**error** `string | null`

Error message when the run failed.

## 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 `read:discovery` permission.

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

```json Response theme={null}
{
  "success": true,
  "data": {
    "agent_id": "cmn4agt0001xk92hf6d0abcd",
    "name": "Newsletter partners",
    "state": "live",
    "paused_at": null,
    "schedulable": true,
    "blockers": [
      {
        "code": "waiting_for_yes",
        "title": "A direction is waiting for a yes",
        "message": "\"newsletter tools\" is waiting for a yes before the agent searches it."
      }
    ],
    "primary_blocker": {
      "code": "waiting_for_yes",
      "title": "A direction is waiting for a yes",
      "message": "\"newsletter tools\" is waiting for a yes before the agent searches it."
    },
    "counts": {
      "found": 24,
      "accepted": 6,
      "rejected": 4,
      "undecided": 14
    },
    "recent_runs": [
      {
        "id": "cmn4pip0001xk92hf6d0abcd",
        "serp_run_id": "cmn4run0001xk92hf6d0abcd",
        "source_type": "topic",
        "source_value": "email marketing for small business",
        "topic": "email marketing for small business",
        "competitor": null,
        "source_label": "email marketing for small business",
        "source_known": true,
        "started_at": "2026-11-03T06:00:00.000Z",
        "pages": 58,
        "matches": 5,
        "found_count": 0,
        "status": "completed",
        "error": null
      }
    ]
  }
}
```


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