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

# List directions

> List the search directions of a Discovery Agent

Returns the directions a Discovery Agent searches or plans to search next: topics, competitors, and similar products. Read-only. Does not create directions or start a search. Results are ordered newest first. Requires the `read:discovery` permission.

> [!TIP]
>
> To find suggestions waiting for your decision, filter with `origin=weekly_approval` and `status=pending`. Then accept or reject each one with [Decide on a direction](https://docs.affonso.io/api/endpoint/discovery/decide-direction.md).

## Path Parameters

**id** `string` *required*

Agent ID.

## Query Parameters

**page** `integer` (default: 1)

Page number, starting at 1.

**limit** `integer` (default: 20)

Number of results per page, from 1 to 100.

**kind** `string`

`topic`, `competitor`, or `similar_product`.

**status** `string`

Search progress: `pending`, `searched`, or `exhausted`.

**origin** `string`

`agent_source`, `confirmed_fit`, `shared_similar_product`, `review_accepted_cluster`, or `weekly_approval`.

## Response

**success** `boolean`

`true` when the request succeeds.

**data** `array`

Directions.

**Direction fields**

**id** `string`

Direction ID.

**agent\_id** `string`

Agent that owns the direction.

**kind** `string`

`topic`, `competitor`, or `similar_product`.

**value** `string`

The topic, competitor, or product the direction points to.

**website** `string | null`

Website for the direction, when known.

**origin** `string`

Where the direction came from: `agent_source`, `confirmed_fit`, `shared_similar_product`, `review_accepted_cluster`, or `weekly_approval`. `weekly_approval` marks a suggestion that needs your decision.

**status** `string`

Search progress: `pending`, `searched`, or `exhausted`.

**last\_searched\_at** `string | null`

ISO 8601 timestamp of the last search, or `null`.

**created\_at** `string`

ISO 8601 timestamp.

**updated\_at** `string`

ISO 8601 timestamp.

**pagination** `object`

Pagination details for the current page.

**Pagination fields**

**page** `integer`

Current page number.

**limit** `integer`

Results per page.

**total** `integer`

Total number of matching results.

**total\_pages** `integer`

Total number of pages.

**has\_next\_page** `boolean`

Whether a next page exists.

**has\_prev\_page** `boolean`

Whether a previous page exists.

## Errors

* **400** `VALIDATION_ERROR`: a query parameter is invalid. The message is `Invalid request` and `details` lists the invalid fields.
* **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/directions?origin=weekly_approval&status=pending" \
  -H "Authorization: Bearer sk_live_your_api_key"
```

```json Response theme={null}
{
  "success": true,
  "data": [
    {
      "id": "cmn4dir0001xk92hf6d0abcd",
      "agent_id": "cmn4agt0001xk92hf6d0abcd",
      "kind": "topic",
      "value": "newsletter tools",
      "website": null,
      "origin": "weekly_approval",
      "status": "pending",
      "last_searched_at": null,
      "created_at": "2026-11-09T08:00:00.000Z",
      "updated_at": "2026-11-09T08:00:00.000Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 1,
    "total_pages": 1,
    "has_next_page": false,
    "has_prev_page": false
  }
}
```


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