> ## 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 setup defaults

> Read the channels, exclusion groups, and source limits for a new Discovery Agent

Returns the fixed values used to set up a Discovery Agent: the available channels, the default language, the website categories you can exclude, and the maximum number of keywords, competitors, and lookalike URLs per agent. Requires the `read:discovery` permission.

The response is the same for every team.

## How the Discovery Agent works

A Discovery Agent keeps searching the web for websites that could promote your product as affiliates. You brief it once with your website, product, audience, and search sources. It then searches on its own and delivers matches (prospects) for you to review.

1. **Brief the agent.** [Create the agent](https://docs.affonso.io/api/endpoint/discovery/create-agent.md) with your website, product, audience, and at least one keyword or competitor URL.
2. **It searches.** The agent requests its first search step when it is created and keeps searching while it is live. You can ask it to [search now](https://docs.affonso.io/api/endpoint/discovery/start-run.md). The agent decides what to search.
3. **You review matches.** [List matches](https://docs.affonso.io/api/endpoint/discovery/list-matches.md) and [approve or reject](https://docs.affonso.io/api/endpoint/discovery/review-match.md) each one. Approving a match starts the contact email search for it, the same as in the dashboard. Rejecting a match adds its domain or creator to the agent's [hard list](https://docs.affonso.io/api/endpoint/discovery/list-hard-list.md).
4. **It suggests new directions.** The agent proposes new competitors and topics and waits for your [yes or no](https://docs.affonso.io/api/endpoint/discovery/decide-direction.md) before it searches them.

The agent does not contact anyone for you. Every Discovery endpoint needs the `read:discovery` or `write:discovery` permission. See [Authentication](https://docs.affonso.io/api/authentication.md).

## Response

**success** `boolean`

`true` when the request succeeds.

**data** `object`

Setup defaults.

**Data fields**

**channel** `string`

Default channel. Always `websites`.

**channels** `array`

Channel list with availability. Only `websites` is available. `youtube`, `tiktok`, and `instagram` are listed as not available.

**Channel fields**

**id** `string`

Channel ID.

**available** `boolean`

Whether agents can use this channel.

**language** `string`

Default search language. `en`.

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

Website categories an agent can exclude: `directories`, `marketplaces`, `social_networks`, `news`, `review_sites`.

**max\_keywords** `integer`

Maximum keywords per agent. `25`.

**max\_competitors** `integer`

Maximum competitor URLs per agent. `25`.

**max\_lookalikes** `integer`

Maximum lookalike URLs per agent. `5`.

**default\_run\_depth** `integer`

Default `depth` value for [Start a run](https://docs.affonso.io/api/endpoint/discovery/start-run.md). `10`.

## Errors

* **403** `INSUFFICIENT_PERMISSIONS`: the API key does not have the `read:discovery` permission.

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

```json Response theme={null}
{
  "success": true,
  "data": {
    "channel": "websites",
    "channels": [
      { "id": "websites", "available": true },
      { "id": "youtube", "available": false },
      { "id": "tiktok", "available": false },
      { "id": "instagram", "available": false }
    ],
    "language": "en",
    "exclude_groups": ["directories", "marketplaces", "social_networks", "news", "review_sites"],
    "max_keywords": 25,
    "max_competitors": 25,
    "max_lookalikes": 5,
    "default_run_depth": 10
  }
}
```


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