curl -X POST "https://api.affonso.io/v1/discovery/agents" \ -H "Authorization: Bearer sk_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "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", "exclude_groups": ["directories", "marketplaces"], "keywords": ["email marketing for small business"], "competitors": ["https://example.org"] }'
{ "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": true, "paused_at": null, "archived_at": null, "latest_run": null, "created_at": "2026-11-02T09:00:00.000Z", "updated_at": "2026-11-02T09:00:00.000Z" }}
Agents
Create an agent
Create a Discovery Agent from a manual brief
POST
/
v1
/
discovery
/
agents
curl -X POST "https://api.affonso.io/v1/discovery/agents" \ -H "Authorization: Bearer sk_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "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", "exclude_groups": ["directories", "marketplaces"], "keywords": ["email marketing for small business"], "competitors": ["https://example.org"] }'
{ "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": true, "paused_at": null, "archived_at": null, "latest_run": null, "created_at": "2026-11-02T09:00:00.000Z", "updated_at": "2026-11-02T09:00:00.000Z" }}
Creates a Discovery Agent from a manual brief and requests its first search step. The agent then starts searching on its own. Requires the write:discovery permission and a plan that includes the Discovery Agent.Supply the product website, product_brand, audience, and at least one keyword or competitor URL. Missing brief fields are not filled in for you.
Lookalike URLs do not count and are not accepted here. Add them after create with Update lookalikes. auto_approve is not accepted on create. Set it with Update an agent.
The body is strict. Unknown fields are rejected. For the full flow from setup to review, see How the Discovery Agent works.
Body Parameters
string
required
Public product website, for example https://example.com. Must be a valid http or https URL that resolves to a public address.
string
Display name, 1 to 160 characters. Defaults to Discovery agent.
string
required
Product or brand the agent finds partners for, 1 to 200 characters.
string
required
One-sentence description of the customers the product serves, 1 to 500 characters.
string
default:"en"
Search language as a two-letter ISO 639-1 code. Stored in lowercase.
string
default:"websites"
Where the agent searches. Only websites is accepted.
string[]
default:"[]"
Website categories to leave out of results. Up to 5 of directories, marketplaces, social_networks, news, review_sites.
string[]
default:"[]"
Topics to search for, up to 25. Each keyword is 1 to 200 characters. Duplicates are removed without regard to case. Send at least one keyword or one competitor.
string[]
default:"[]"
Competitor website URLs, up to 25. Each must be a public http or https URL. Duplicates are removed. Send at least one keyword or one competitor.
Response
Returns 201 Created with the new agent. latest_run is null in this response.
boolean
true when the request succeeds.
object
The new Discovery Agent.
Show Agent fields
string
Agent ID.
string
Display name. Defaults to Discovery agent when no name was given on create.
string | null
Product website from the agent brief.
string | null
Product or brand the agent finds partners for.
string | null
One-sentence description of the customers the product serves.
string | null
Search language as a lowercase ISO 639-1 code, for example en.
string | null
Where the agent searches. Currently always websites.
string[]
Website categories the agent leaves out of results: directories, marketplaces, social_networks, news, review_sites.
string[]
Topic sources the agent searches for.
string[]
Competitor website URLs the agent uses as search sources.
The keyword for a topic. The hostname without www. for a competitor. The URL for a lookalike.
string | null
Full URL for competitor and lookalike sources. null for topics.
string
ISO 8601 timestamp.
string
ISO 8601 timestamp.
boolean
true when the agent has at least one keyword or competitor. Lookalikes do not count.
boolean
When true, newly delivered prospects are approved automatically and queued for contact enrichment.
boolean
false while the agent is paused or deleted.
string | null
ISO 8601 timestamp of the last pause. null while the agent is live.
string | null
ISO 8601 timestamp of deletion. null unless the agent was deleted.
object | null
Most recent search run, or null when the agent has no run yet.
Show Latest run fields
string
Run ID.
string
pending, running, completed, empty, or failed.
string
ISO 8601 timestamp.
string
ISO 8601 timestamp.
string
ISO 8601 timestamp.
Errors
400VALIDATION_ERROR: the body is not valid JSON or fails validation. The message is Invalid request and details lists each invalid field. A missing product_brand or audience returns ["Required"] for that field. When both keywords and competitors are missing or empty, both fields return ["Provide at least one keyword or competitor"]. Only the fields you left out or sent invalid appear in details, so a request that has keywords but no audience lists only audience.
400UNSAFE_URL: a URL is not a public http or https address. This covers URLs with credentials, local or private hosts, hosts that do not resolve, and hosts that resolve to a non-public address.
403INSUFFICIENT_PERMISSIONS: the API key does not have the write:discovery permission.
403FORBIDDEN: your team does not have a plan that includes the Discovery Agent. The message is Discovery Agent needs an active plan.
A request with only website returns:
Website only
{ "success": false, "error": { "code": "VALIDATION_ERROR", "message": "Invalid request", "details": { "product_brand": ["Required"], "audience": ["Required"], "keywords": ["Provide at least one keyword or competitor"], "competitors": ["Provide at least one keyword or competitor"] } }}
No active plan
{ "success": false, "error": { "code": "FORBIDDEN", "message": "Discovery Agent needs an active plan" }}
curl -X POST "https://api.affonso.io/v1/discovery/agents" \ -H "Authorization: Bearer sk_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "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", "exclude_groups": ["directories", "marketplaces"], "keywords": ["email marketing for small business"], "competitors": ["https://example.org"] }'
{ "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": true, "paused_at": null, "archived_at": null, "latest_run": null, "created_at": "2026-11-02T09:00:00.000Z", "updated_at": "2026-11-02T09:00:00.000Z" }}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Affonso Docs","colors":{"primary":"#881337","light":"#881337","dark":"#881337"},"logo":{"light":"https://mintcdn.com/affonso-20c7dee8/nWO6r2CUpJ-o-z8l/logo/affonso_logo_small.png?fit=max\u0026auto=format\u0026n=nWO6r2CUpJ-o-z8l\u0026q=85\u0026s=4b239574262c42f95697481e8b29adce","dark":"https://mintcdn.com/affonso-20c7dee8/nWO6r2CUpJ-o-z8l/logo/affonso_logo_small.png?fit=max\u0026auto=format\u0026n=nWO6r2CUpJ-o-z8l\u0026q=85\u0026s=4b239574262c42f95697481e8b29adce"},"favicon":"https://mintcdn.com/affonso-20c7dee8/kkGMCXH0kqsXT8_K/favicon.ico?fit=max\u0026auto=format\u0026n=kkGMCXH0kqsXT8_K\u0026q=85\u0026s=fd253ea2af2c3136159ed21ad7b444e3","api":{"playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer"}}},"navbar":{"links":[{"href":"mailto:hello@affonso.io","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://affonso.io/app"}},"footer":{"socials":{"x":"https://x.com/useAffonso","linkedin":"https://www.linkedin.com/company/affiliate-software"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Home","icon":"home","href":"https://affonso.io"},{"anchor":"Blog","icon":"newspaper","href":"https://affonso.io/blog"},{"anchor":"Help Center","icon":"book-open-cover","href":"https://affonso.io/help"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"affonso-20c7dee8","hasAudioNarration":false,"actualSubdomain":"affonso-20c7dee8","customDomains":["docs.affonso.io"],"gitSource":{"type":"github","owner":"affonso-io","repo":"affonso-developer-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10c9359ffae5051c40835a"},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6b11c1c2c98434b46ed56acf","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"API Reference","count":139},{"language":"default","tag":"Core Resources","count":71},{"language":"default","tag":"Program Management","count":54},{"language":"default","tag":"Program Settings","count":33},{"language":"default","tag":"Discovery Agent","count":26},{"language":"default","tag":"MCP","count":19},{"language":"default","tag":"Campaigns","count":15},{"language":"default","tag":"Tools","count":11},{"language":"default","tag":"Webhooks","count":11},{"language":"default","tag":"Agents","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api/endpoint/discovery/create-agent","slug":"/api/endpoint/discovery/create-agent","pageMetadata":{"title":"Create an agent","api":"POST https://api.affonso.io/v1/discovery/agents","description":"Create a Discovery Agent from a manual brief","href":"/api/endpoint/discovery/create-agent"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a Discovery Agent from a manual brief\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a Discovery Agent from a manual brief and requests its first search step. The agent then starts searching on its own. Requires the `,_jsx(_components.code,{children:`write:discovery`}),` permission and a plan that includes the Discovery Agent.`]}),`\n`,_jsxs(_components.p,{children:[`Supply the product website, `,_jsx(_components.code,{children:`product_brand`}),`, `,_jsx(_components.code,{children:`audience`}),`, and at least one keyword or competitor URL. Missing brief fields are not filled in for you.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Lookalike URLs do not count and are not accepted here. Add them after create with `,_jsx(_components.a,{href:`/api/endpoint/discovery/update-lookalikes`,children:`Update lookalikes`}),`. `,_jsx(_components.code,{children:`auto_approve`}),` is not accepted on create. Set it with `,_jsx(_components.a,{href:`/api/endpoint/discovery/update-agent`,children:`Update an agent`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`The body is strict. Unknown fields are rejected. For the full flow from setup to review, see `,_jsx(_components.a,{href:`/api/endpoint/discovery/get-setup-defaults#how-the-discovery-agent-works`,children:`How the Discovery Agent works`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsx(ParamField,{body:`website`,type:`string`,required:true,id:`param-website`,children:_jsxs(_components.p,{children:[`Public product website, for example `,_jsx(_components.code,{children:`https://example.com`}),`. Must be a valid `,_jsx(_components.code,{children:`http`}),` or `,_jsx(_components.code,{children:`https`}),` URL that resolves to a public address.`]})}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsxs(_components.p,{children:[`Display name, 1 to 160 characters. Defaults to `,_jsx(_components.code,{children:`Discovery agent`}),`.`]})}),`\n`,_jsx(ParamField,{body:`product_brand`,type:`string`,required:true,id:`param-product-brand`,children:_jsx(_components.p,{children:`Product or brand the agent finds partners for, 1 to 200 characters.`})}),`\n`,_jsx(ParamField,{body:`audience`,type:`string`,required:true,id:`param-audience`,children:_jsx(_components.p,{children:`One-sentence description of the customers the product serves, 1 to 500 characters.`})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,default:`en`,id:`param-language`,children:_jsx(_components.p,{children:`Search language as a two-letter ISO 639-1 code. Stored in lowercase.`})}),`\n`,_jsx(ParamField,{body:`channel`,type:`string`,default:`websites`,id:`param-channel`,children:_jsxs(_components.p,{children:[`Where the agent searches. Only `,_jsx(_components.code,{children:`websites`}),` is accepted.`]})}),`\n`,_jsx(ParamField,{body:`exclude_groups`,type:`string[]`,default:`[]`,id:`param-exclude-groups`,children:_jsxs(_components.p,{children:[`Website categories to leave out of results. Up to 5 of `,_jsx(_components.code,{children:`directories`}),`, `,_jsx(_components.code,{children:`marketplaces`}),`, `,_jsx(_components.code,{children:`social_networks`}),`, `,_jsx(_components.code,{children:`news`}),`, `,_jsx(_components.code,{children:`review_sites`}),`.`]})}),`\n`,_jsx(ParamField,{body:`keywords`,type:`string[]`,default:`[]`,id:`param-keywords`,children:_jsx(_components.p,{children:`Topics to search for, up to 25. Each keyword is 1 to 200 characters. Duplicates are removed without regard to case. Send at least one keyword or one competitor.`})}),`\n`,_jsx(ParamField,{body:`competitors`,type:`string[]`,default:`[]`,id:`param-competitors`,children:_jsxs(_components.p,{children:[`Competitor website URLs, up to 25. Each must be a public `,_jsx(_components.code,{children:`http`}),` or `,_jsx(_components.code,{children:`https`}),` URL. Duplicates are removed. Send at least one keyword or one competitor.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`201 Created`}),` with the new agent. `,_jsx(_components.code,{children:`latest_run`}),` is `,_jsx(_components.code,{children:`null`}),` in this response.`]}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the request succeeds.`]})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:[_jsx(_components.p,{children:`The new Discovery Agent.`}),_jsxs(Expandable,{title:`Agent fields`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`Agent ID.`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:_jsxs(_components.p,{children:[`Display name. Defaults to `,_jsx(_components.code,{children:`Discovery agent`}),` when no name was given on create.`]})}),_jsx(ResponseField,{name:`website`,type:`string | null`,id:`param-website-1`,children:_jsx(_components.p,{children:`Product website from the agent brief.`})}),_jsx(ResponseField,{name:`product_brand`,type:`string | null`,id:`param-product-brand-1`,children:_jsx(_components.p,{children:`Product or brand the agent finds partners for.`})}),_jsx(ResponseField,{name:`audience`,type:`string | null`,id:`param-audience-1`,children:_jsx(_components.p,{children:`One-sentence description of the customers the product serves.`})}),_jsx(ResponseField,{name:`language`,type:`string | null`,id:`param-language-1`,children:_jsxs(_components.p,{children:[`Search language as a lowercase ISO 639-1 code, for example `,_jsx(_components.code,{children:`en`}),`.`]})}),_jsx(ResponseField,{name:`channel`,type:`string | null`,id:`param-channel-1`,children:_jsxs(_components.p,{children:[`Where the agent searches. Currently always `,_jsx(_components.code,{children:`websites`}),`.`]})}),_jsx(ResponseField,{name:`exclude_groups`,type:`string[]`,id:`param-exclude-groups-1`,children:_jsxs(_components.p,{children:[`Website categories the agent leaves out of results: `,_jsx(_components.code,{children:`directories`}),`, `,_jsx(_components.code,{children:`marketplaces`}),`, `,_jsx(_components.code,{children:`social_networks`}),`, `,_jsx(_components.code,{children:`news`}),`, `,_jsx(_components.code,{children:`review_sites`}),`.`]})}),_jsx(ResponseField,{name:`keywords`,type:`string[]`,id:`param-keywords-1`,children:_jsx(_components.p,{children:`Topic sources the agent searches for.`})}),_jsx(ResponseField,{name:`competitors`,type:`string[]`,id:`param-competitors-1`,children:_jsx(_components.p,{children:`Competitor website URLs the agent uses as search sources.`})}),_jsx(ResponseField,{name:`lookalikes`,type:`string[]`,id:`param-lookalikes`,children:_jsxs(_components.p,{children:[`Lookalike page URLs. Managed with `,_jsx(_components.a,{href:`/api/endpoint/discovery/update-lookalikes`,children:`Update lookalikes`}),`.`]})}),_jsxs(ResponseField,{name:`sources`,type:`array`,id:`param-sources`,children:[_jsx(_components.p,{children:`Every saved source, oldest first.`}),_jsxs(Expandable,{title:`Source fields`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`Source ID.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`topic`}),`, `,_jsx(_components.code,{children:`competitor`}),`, or `,_jsx(_components.code,{children:`lookalike`}),`.`]})}),_jsx(ResponseField,{name:`value`,type:`string`,id:`param-value`,children:_jsxs(_components.p,{children:[`The keyword for a topic. The hostname without `,_jsx(_components.code,{children:`www.`}),` for a competitor. The URL for a lookalike.`]})}),_jsx(ResponseField,{name:`website`,type:`string | null`,id:`param-website-2`,children:_jsxs(_components.p,{children:[`Full URL for competitor and lookalike sources. `,_jsx(_components.code,{children:`null`}),` for topics.`]})}),_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})}),_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})})]})]}),_jsx(ResponseField,{name:`can_start`,type:`boolean`,id:`param-can-start`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the agent has at least one keyword or competitor. Lookalikes do not count.`]})}),_jsx(ResponseField,{name:`auto_approve`,type:`boolean`,id:`param-auto-approve`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, newly delivered prospects are approved automatically and queued for contact enrichment.`]})}),_jsx(ResponseField,{name:`schedulable`,type:`boolean`,id:`param-schedulable`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`false`}),` while the agent is paused or deleted.`]})}),_jsx(ResponseField,{name:`paused_at`,type:`string | null`,id:`param-paused-at`,children:_jsxs(_components.p,{children:[`ISO 8601 timestamp of the last pause. `,_jsx(_components.code,{children:`null`}),` while the agent is live.`]})}),_jsx(ResponseField,{name:`archived_at`,type:`string | null`,id:`param-archived-at`,children:_jsxs(_components.p,{children:[`ISO 8601 timestamp of deletion. `,_jsx(_components.code,{children:`null`}),` unless the agent was deleted.`]})}),_jsxs(ResponseField,{name:`latest_run`,type:`object | null`,id:`param-latest-run`,children:[_jsxs(_components.p,{children:[`Most recent search run, or `,_jsx(_components.code,{children:`null`}),` when the agent has no run yet.`]}),_jsxs(Expandable,{title:`Latest run fields`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-2`,children:_jsx(_components.p,{children:`Run ID.`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`running`}),`, `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`empty`}),`, or `,_jsx(_components.code,{children:`failed`}),`.`]})}),_jsx(ResponseField,{name:`started_at`,type:`string`,id:`param-started-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})})]})]}),_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at-1`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})}),_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at-1`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`400`}),` `,_jsx(_components.code,{children:`VALIDATION_ERROR`}),`: the body is not valid JSON or fails validation. The message is `,_jsx(_components.code,{children:`Invalid request`}),` and `,_jsx(_components.code,{children:`details`}),` lists each invalid field. A missing `,_jsx(_components.code,{children:`product_brand`}),` or `,_jsx(_components.code,{children:`audience`}),` returns `,_jsx(_components.code,{children:`[\"Required\"]`}),` for that field. When both `,_jsx(_components.code,{children:`keywords`}),` and `,_jsx(_components.code,{children:`competitors`}),` are missing or empty, both fields return `,_jsx(_components.code,{children:`[\"Provide at least one keyword or competitor\"]`}),`. Only the fields you left out or sent invalid appear in `,_jsx(_components.code,{children:`details`}),`, so a request that has keywords but no `,_jsx(_components.code,{children:`audience`}),` lists only `,_jsx(_components.code,{children:`audience`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`400`}),` `,_jsx(_components.code,{children:`UNSAFE_URL`}),`: a URL is not a public http or https address. This covers URLs with credentials, local or private hosts, hosts that do not resolve, and hosts that resolve to a non-public address.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`403`}),` `,_jsx(_components.code,{children:`INSUFFICIENT_PERMISSIONS`}),`: the API key does not have the `,_jsx(_components.code,{children:`write:discovery`}),` permission.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`403`}),` `,_jsx(_components.code,{children:`FORBIDDEN`}),`: your team does not have a plan that includes the Discovery Agent. The message is `,_jsx(_components.code,{children:`Discovery Agent needs an active plan`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`A request with only `,_jsx(_components.code,{children:`website`}),` returns:`]}),`\n`,_jsx(CodeBlock,{filename:`Website only`,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VALIDATION_ERROR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid request\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"product_brand\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audience\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"keywords\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Provide at least one keyword or competitor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"competitors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Provide at least one keyword or competitor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:`No active plan`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FORBIDDEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Discovery Agent needs an active plan\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create an agent","api":"POST https://api.affonso.io/v1/discovery/agents","description":"Create a Discovery Agent from a manual brief","href":"/api/endpoint/discovery/create-agent"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a Discovery Agent from a manual brief and requests its first search step. The agent then starts searching on its own. Requires the `,_jsx(_components.code,{children:`write:discovery`}),` permission and a plan that includes the Discovery Agent.`]}),`\n`,_jsxs(_components.p,{children:[`Supply the product website, `,_jsx(_components.code,{children:`product_brand`}),`, `,_jsx(_components.code,{children:`audience`}),`, and at least one keyword or competitor URL. Missing brief fields are not filled in for you.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Lookalike URLs do not count and are not accepted here. Add them after create with `,_jsx(_components.a,{href:`/api/endpoint/discovery/update-lookalikes`,children:`Update lookalikes`}),`. `,_jsx(_components.code,{children:`auto_approve`}),` is not accepted on create. Set it with `,_jsx(_components.a,{href:`/api/endpoint/discovery/update-agent`,children:`Update an agent`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`The body is strict. Unknown fields are rejected. For the full flow from setup to review, see `,_jsx(_components.a,{href:`/api/endpoint/discovery/get-setup-defaults#how-the-discovery-agent-works`,children:`How the Discovery Agent works`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsx(ParamField,{body:`website`,type:`string`,required:true,id:`param-website`,children:_jsxs(_components.p,{children:[`Public product website, for example `,_jsx(_components.code,{children:`https://example.com`}),`. Must be a valid `,_jsx(_components.code,{children:`http`}),` or `,_jsx(_components.code,{children:`https`}),` URL that resolves to a public address.`]})}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,id:`param-name`,children:_jsxs(_components.p,{children:[`Display name, 1 to 160 characters. Defaults to `,_jsx(_components.code,{children:`Discovery agent`}),`.`]})}),`\n`,_jsx(ParamField,{body:`product_brand`,type:`string`,required:true,id:`param-product-brand`,children:_jsx(_components.p,{children:`Product or brand the agent finds partners for, 1 to 200 characters.`})}),`\n`,_jsx(ParamField,{body:`audience`,type:`string`,required:true,id:`param-audience`,children:_jsx(_components.p,{children:`One-sentence description of the customers the product serves, 1 to 500 characters.`})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,default:`en`,id:`param-language`,children:_jsx(_components.p,{children:`Search language as a two-letter ISO 639-1 code. Stored in lowercase.`})}),`\n`,_jsx(ParamField,{body:`channel`,type:`string`,default:`websites`,id:`param-channel`,children:_jsxs(_components.p,{children:[`Where the agent searches. Only `,_jsx(_components.code,{children:`websites`}),` is accepted.`]})}),`\n`,_jsx(ParamField,{body:`exclude_groups`,type:`string[]`,default:`[]`,id:`param-exclude-groups`,children:_jsxs(_components.p,{children:[`Website categories to leave out of results. Up to 5 of `,_jsx(_components.code,{children:`directories`}),`, `,_jsx(_components.code,{children:`marketplaces`}),`, `,_jsx(_components.code,{children:`social_networks`}),`, `,_jsx(_components.code,{children:`news`}),`, `,_jsx(_components.code,{children:`review_sites`}),`.`]})}),`\n`,_jsx(ParamField,{body:`keywords`,type:`string[]`,default:`[]`,id:`param-keywords`,children:_jsx(_components.p,{children:`Topics to search for, up to 25. Each keyword is 1 to 200 characters. Duplicates are removed without regard to case. Send at least one keyword or one competitor.`})}),`\n`,_jsx(ParamField,{body:`competitors`,type:`string[]`,default:`[]`,id:`param-competitors`,children:_jsxs(_components.p,{children:[`Competitor website URLs, up to 25. Each must be a public `,_jsx(_components.code,{children:`http`}),` or `,_jsx(_components.code,{children:`https`}),` URL. Duplicates are removed. Send at least one keyword or one competitor.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`201 Created`}),` with the new agent. `,_jsx(_components.code,{children:`latest_run`}),` is `,_jsx(_components.code,{children:`null`}),` in this response.`]}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the request succeeds.`]})}),`\n`,_jsxs(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:[_jsx(_components.p,{children:`The new Discovery Agent.`}),_jsxs(Expandable,{title:`Agent fields`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`Agent ID.`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:_jsxs(_components.p,{children:[`Display name. Defaults to `,_jsx(_components.code,{children:`Discovery agent`}),` when no name was given on create.`]})}),_jsx(ResponseField,{name:`website`,type:`string | null`,id:`param-website-1`,children:_jsx(_components.p,{children:`Product website from the agent brief.`})}),_jsx(ResponseField,{name:`product_brand`,type:`string | null`,id:`param-product-brand-1`,children:_jsx(_components.p,{children:`Product or brand the agent finds partners for.`})}),_jsx(ResponseField,{name:`audience`,type:`string | null`,id:`param-audience-1`,children:_jsx(_components.p,{children:`One-sentence description of the customers the product serves.`})}),_jsx(ResponseField,{name:`language`,type:`string | null`,id:`param-language-1`,children:_jsxs(_components.p,{children:[`Search language as a lowercase ISO 639-1 code, for example `,_jsx(_components.code,{children:`en`}),`.`]})}),_jsx(ResponseField,{name:`channel`,type:`string | null`,id:`param-channel-1`,children:_jsxs(_components.p,{children:[`Where the agent searches. Currently always `,_jsx(_components.code,{children:`websites`}),`.`]})}),_jsx(ResponseField,{name:`exclude_groups`,type:`string[]`,id:`param-exclude-groups-1`,children:_jsxs(_components.p,{children:[`Website categories the agent leaves out of results: `,_jsx(_components.code,{children:`directories`}),`, `,_jsx(_components.code,{children:`marketplaces`}),`, `,_jsx(_components.code,{children:`social_networks`}),`, `,_jsx(_components.code,{children:`news`}),`, `,_jsx(_components.code,{children:`review_sites`}),`.`]})}),_jsx(ResponseField,{name:`keywords`,type:`string[]`,id:`param-keywords-1`,children:_jsx(_components.p,{children:`Topic sources the agent searches for.`})}),_jsx(ResponseField,{name:`competitors`,type:`string[]`,id:`param-competitors-1`,children:_jsx(_components.p,{children:`Competitor website URLs the agent uses as search sources.`})}),_jsx(ResponseField,{name:`lookalikes`,type:`string[]`,id:`param-lookalikes`,children:_jsxs(_components.p,{children:[`Lookalike page URLs. Managed with `,_jsx(_components.a,{href:`/api/endpoint/discovery/update-lookalikes`,children:`Update lookalikes`}),`.`]})}),_jsxs(ResponseField,{name:`sources`,type:`array`,id:`param-sources`,children:[_jsx(_components.p,{children:`Every saved source, oldest first.`}),_jsxs(Expandable,{title:`Source fields`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`Source ID.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`topic`}),`, `,_jsx(_components.code,{children:`competitor`}),`, or `,_jsx(_components.code,{children:`lookalike`}),`.`]})}),_jsx(ResponseField,{name:`value`,type:`string`,id:`param-value`,children:_jsxs(_components.p,{children:[`The keyword for a topic. The hostname without `,_jsx(_components.code,{children:`www.`}),` for a competitor. The URL for a lookalike.`]})}),_jsx(ResponseField,{name:`website`,type:`string | null`,id:`param-website-2`,children:_jsxs(_components.p,{children:[`Full URL for competitor and lookalike sources. `,_jsx(_components.code,{children:`null`}),` for topics.`]})}),_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})}),_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})})]})]}),_jsx(ResponseField,{name:`can_start`,type:`boolean`,id:`param-can-start`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when the agent has at least one keyword or competitor. Lookalikes do not count.`]})}),_jsx(ResponseField,{name:`auto_approve`,type:`boolean`,id:`param-auto-approve`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, newly delivered prospects are approved automatically and queued for contact enrichment.`]})}),_jsx(ResponseField,{name:`schedulable`,type:`boolean`,id:`param-schedulable`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`false`}),` while the agent is paused or deleted.`]})}),_jsx(ResponseField,{name:`paused_at`,type:`string | null`,id:`param-paused-at`,children:_jsxs(_components.p,{children:[`ISO 8601 timestamp of the last pause. `,_jsx(_components.code,{children:`null`}),` while the agent is live.`]})}),_jsx(ResponseField,{name:`archived_at`,type:`string | null`,id:`param-archived-at`,children:_jsxs(_components.p,{children:[`ISO 8601 timestamp of deletion. `,_jsx(_components.code,{children:`null`}),` unless the agent was deleted.`]})}),_jsxs(ResponseField,{name:`latest_run`,type:`object | null`,id:`param-latest-run`,children:[_jsxs(_components.p,{children:[`Most recent search run, or `,_jsx(_components.code,{children:`null`}),` when the agent has no run yet.`]}),_jsxs(Expandable,{title:`Latest run fields`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-2`,children:_jsx(_components.p,{children:`Run ID.`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`running`}),`, `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`empty`}),`, or `,_jsx(_components.code,{children:`failed`}),`.`]})}),_jsx(ResponseField,{name:`started_at`,type:`string`,id:`param-started-at`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})})]})]}),_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at-1`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})}),_jsx(ResponseField,{name:`updated_at`,type:`string`,id:`param-updated-at-1`,children:_jsx(_components.p,{children:`ISO 8601 timestamp.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`400`}),` `,_jsx(_components.code,{children:`VALIDATION_ERROR`}),`: the body is not valid JSON or fails validation. The message is `,_jsx(_components.code,{children:`Invalid request`}),` and `,_jsx(_components.code,{children:`details`}),` lists each invalid field. A missing `,_jsx(_components.code,{children:`product_brand`}),` or `,_jsx(_components.code,{children:`audience`}),` returns `,_jsx(_components.code,{children:`[\"Required\"]`}),` for that field. When both `,_jsx(_components.code,{children:`keywords`}),` and `,_jsx(_components.code,{children:`competitors`}),` are missing or empty, both fields return `,_jsx(_components.code,{children:`[\"Provide at least one keyword or competitor\"]`}),`. Only the fields you left out or sent invalid appear in `,_jsx(_components.code,{children:`details`}),`, so a request that has keywords but no `,_jsx(_components.code,{children:`audience`}),` lists only `,_jsx(_components.code,{children:`audience`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`400`}),` `,_jsx(_components.code,{children:`UNSAFE_URL`}),`: a URL is not a public http or https address. This covers URLs with credentials, local or private hosts, hosts that do not resolve, and hosts that resolve to a non-public address.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`403`}),` `,_jsx(_components.code,{children:`INSUFFICIENT_PERMISSIONS`}),`: the API key does not have the `,_jsx(_components.code,{children:`write:discovery`}),` permission.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`403`}),` `,_jsx(_components.code,{children:`FORBIDDEN`}),`: your team does not have a plan that includes the Discovery Agent. The message is `,_jsx(_components.code,{children:`Discovery Agent needs an active plan`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`A request with only `,_jsx(_components.code,{children:`website`}),` returns:`]}),`\n`,_jsx(CodeBlock,{filename:`Website only`,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"VALIDATION_ERROR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid request\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"product_brand\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audience\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Required\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"keywords\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Provide at least one keyword or competitor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"competitors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Provide at least one keyword or competitor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:`No active plan`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FORBIDDEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Discovery Agent needs an active plan\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.affonso.io/v1/discovery/agents\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_live_your_api_key\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\": \"Newsletter partners\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"website\": \"https://example.com\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"product_brand\": \"Example Mail, email marketing for small shops\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"audience\": \"Owners of small online shops who send a weekly newsletter.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"language\": \"en\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"exclude_groups\": [\"directories\", \"marketplaces\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"keywords\": [\"email marketing for small business\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"competitors\": [\"https://example.org\"]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`201 Created`,numberOfLines:`42`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`42`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cmn4agt0001xk92hf6d0abcd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Newsletter partners\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"product_brand\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example Mail, email marketing for small shops\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audience\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Owners of small online shops who send a weekly newsletter.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"language\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"en\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"channel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"websites\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"exclude_groups\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"directories\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"marketplaces\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"keywords\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email marketing for small business\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"competitors\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.org\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lookalikes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sources\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cmn4src0001xk92hf6d0abcd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"topic\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email marketing for small business\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-02T09:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-02T09:00:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cmn4src0002xk92hf6d0abcd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"competitor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"example.org\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.org\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-02T09:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-02T09:00:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"can_start\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"auto_approve\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"schedulable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"paused_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"archived_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"latest_run\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-02T09:00:00.000Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-02T09:00:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create an agent","api":"POST https://api.affonso.io/v1/discovery/agents","description":"Create a Discovery Agent from a manual brief","href":"/api/endpoint/discovery/create-agent"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Body Parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.affonso.io/v1/discovery/agents\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer sk_live_your_api_key\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\": \"Newsletter partners\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"website\": \"https://example.com\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"product_brand\": \"Example Mail, email marketing for small shops\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"audience\": \"Owners of small online shops who send a weekly newsletter.\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"language\": \"en\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"exclude_groups\": [\"directories\", \"marketplaces\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"keywords\": [\"email marketing for small business\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"competitors\": [\"https://example.org\"]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"201 Created","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"42\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"cmn4agt0001xk92hf6d0abcd\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Newsletter partners\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"product_brand\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example Mail, email marketing for small shops\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"audience\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Owners of small online shops who send a weekly newsletter.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"language\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"en\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"channel\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"websites\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"exclude_groups\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"directories\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"marketplaces\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"keywords\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"email marketing for small business\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"competitors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.org\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lookalikes\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"sources\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"cmn4src0001xk92hf6d0abcd\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"topic\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"email marketing for small business\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-02T09:00:00.000Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-02T09:00:00.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"cmn4src0002xk92hf6d0abcd\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"competitor\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"example.org\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.org\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-02T09:00:00.000Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-02T09:00:00.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"can_start\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"auto_approve\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"schedulable\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"paused_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"archived_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"latest_run\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-02T09:00:00.000Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-02T09:00:00.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Create an agent","path":"/v1/discovery/agents","servers":[{"url":"https://api.affonso.io"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"website":[{"type":"string","description":"Public product website, for example `https://example.com` . Must be a valid `http` or `https` URL that resolves to a public address.","required":true}],"name":[{"type":"string","description":"Display name, 1 to 160 characters. Defaults to `Discovery agent` ."}],"product_brand":[{"type":"string","description":"Product or brand the agent finds partners for, 1 to 200 characters.","required":true}],"audience":[{"type":"string","description":"One-sentence description of the customers the product serves, 1 to 500 characters.","required":true}],"language":[{"type":"string","description":"Search language as a two-letter ISO 639-1 code. Stored in lowercase."}],"channel":[{"type":"string","description":"Where the agent searches. Only `websites` is accepted."}],"exclude_groups":[{"type":"array","items":[{"type":"string"}],"description":"Website categories to leave out of results. Up to 5 of `directories` , `marketplaces` , `social_networks` , `news` , `review_sites` ."}],"keywords":[{"type":"array","items":[{"type":"string"}],"description":"Topics to search for, up to 25. Each keyword is 1 to 200 characters. Duplicates are removed without regard to case. Send at least one keyword or one competitor."}],"competitors":[{"type":"array","items":[{"type":"string"}],"description":"Competitor website URLs, up to 25. Each must be a public `http` or `https` URL. Duplicates are removed. Send at least one keyword or one competitor."}]}}],"examples":{"example":{"value":{"website":"\u003cstring>","name":"\u003cstring>","product_brand":"\u003cstring>","audience":"\u003cstring>","language":"\u003cstring>","channel":"\u003cstring>","exclude_groups":["\u003cstring>"],"keywords":["\u003cstring>"],"competitors":["\u003cstring>"]}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"`true` when the request succeeds."}],"data":[{"type":"object","properties":{"id":[{"type":"string","description":"Agent ID."}],"name":[{"type":"string","description":"Display name. Defaults to `Discovery agent` when no name was given on create."}],"website":[{"type":"object","properties":{},"description":"Product website from the agent brief."}],"product_brand":[{"type":"object","properties":{},"description":"Product or brand the agent finds partners for."}],"audience":[{"type":"object","properties":{},"description":"One-sentence description of the customers the product serves."}],"language":[{"type":"object","properties":{},"description":"Search language as a lowercase ISO 639-1 code, for example `en` ."}],"channel":[{"type":"object","properties":{},"description":"Where the agent searches. Currently always `websites` ."}],"exclude_groups":[{"type":"array","items":[{"type":"string"}],"description":"Website categories the agent leaves out of results: `directories` , `marketplaces` , `social_networks` , `news` , `review_sites` ."}],"keywords":[{"type":"array","items":[{"type":"string"}],"description":"Topic sources the agent searches for."}],"competitors":[{"type":"array","items":[{"type":"string"}],"description":"Competitor website URLs the agent uses as search sources."}],"lookalikes":[{"type":"array","items":[{"type":"string"}],"description":"Lookalike page URLs. Managed with Update lookalikes ."}],"sources":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"Source ID."}],"type":[{"type":"string","description":"`topic` , `competitor` , or `lookalike` ."}],"value":[{"type":"string","description":"The keyword for a topic. The hostname without `www.` for a competitor. The URL for a lookalike."}],"website":[{"type":"object","properties":{},"description":"Full URL for competitor and lookalike sources. `null` for topics."}],"created_at":[{"type":"string","description":"ISO 8601 timestamp."}],"updated_at":[{"type":"string","description":"ISO 8601 timestamp."}]}}],"description":"Every saved source, oldest first."}],"can_start":[{"type":"boolean","description":"`true` when the agent has at least one keyword or competitor. Lookalikes do not count."}],"auto_approve":[{"type":"boolean","description":"When `true` , newly delivered prospects are approved automatically and queued for contact enrichment."}],"schedulable":[{"type":"boolean","description":"`false` while the agent is paused or deleted."}],"paused_at":[{"type":"object","properties":{},"description":"ISO 8601 timestamp of the last pause. `null` while the agent is live."}],"archived_at":[{"type":"object","properties":{},"description":"ISO 8601 timestamp of deletion. `null` unless the agent was deleted."}],"latest_run":[{"type":"object","properties":{"id":[{"type":"string","description":"Run ID."}],"status":[{"type":"string","description":"`pending` , `running` , `completed` , `empty` , or `failed` ."}],"started_at":[{"type":"string","description":"ISO 8601 timestamp."}]},"description":"Most recent search run, or `null` when the agent has no run yet."}],"created_at":[{"type":"string","description":"ISO 8601 timestamp."}],"updated_at":[{"type":"string","description":"ISO 8601 timestamp."}]},"description":"The new Discovery Agent."}]}}],"examples":{"example":{"value":{"success":true,"data":{"id":"\u003cstring>","name":"\u003cstring>","website":{},"product_brand":{},"audience":{},"language":{},"channel":{},"exclude_groups":["\u003cstring>"],"keywords":["\u003cstring>"],"competitors":["\u003cstring>"],"lookalikes":["\u003cstring>"],"sources":[{"id":"\u003cstring>","type":"\u003cstring>","value":"\u003cstring>","website":{},"created_at":"\u003cstring>","updated_at":"\u003cstring>"}],"can_start":true,"auto_approve":true,"schedulable":true,"paused_at":{},"archived_at":{},"latest_run":{"id":"\u003cstring>","status":"\u003cstring>","started_at":"\u003cstring>"},"created_at":"\u003cstring>","updated_at":"\u003cstring>"}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"affonso-20c7dee8","siteName":"Affonso Docs","title":"Create an agent - Affonso Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-03T13:25:26.003Z","originalFileLocation":"api/endpoint/discovery/create-agent.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a Discovery Agent from a manual brief\">\u003cmeta data-mint-head name=\"application-name\" content=\"Affonso Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create an agent - Affonso Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a Discovery Agent from a manual brief\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Affonso Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.affonso.io/api/endpoint/discovery/create-agent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://affonso-20c7dee8.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+an+agent\u0026amp;description=Create+a+Discovery+Agent+from+a+manual+brief\u0026amp;theme=63e88001dc37013e059e384d\u0026amp;signature=9cd51fabe0eb9f4018f554fbaa08f4d810109eebf617705d3784413c5d220cb1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create an agent - Affonso Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a Discovery Agent from a manual brief\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://affonso-20c7dee8.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Create+an+agent\u0026amp;description=Create+a+Discovery+Agent+from+a+manual+brief\u0026amp;theme=63e88001dc37013e059e384d\u0026amp;signature=9cd51fabe0eb9f4018f554fbaa08f4d810109eebf617705d3784413c5d220cb1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/affonso-20c7dee8/o8Zy3ftrGGF8u7vC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Affonso Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#881337\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.affonso.io/api/endpoint/discovery/create-agent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/endpoint/discovery/create-agent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.affonso.io/#organization\",\"name\":\"Affonso Docs\",\"url\":\"https://docs.affonso.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/affonso-20c7dee8/nWO6r2CUpJ-o-z8l/logo/affonso_logo_small.png?fit=max\u0026auto=format\u0026n=nWO6r2CUpJ-o-z8l\u0026q=85\u0026s=4b239574262c42f95697481e8b29adce\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.affonso.io#website\",\"name\":\"Affonso Docs\",\"url\":\"https://docs.affonso.io\",\"publisher\":{\"@id\":\"https://docs.affonso.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.affonso.io/api/endpoint/discovery/create-agent#webpage\",\"url\":\"https://docs.affonso.io/api/endpoint/discovery/create-agent\",\"name\":\"Create an agent\",\"description\":\"Create a Discovery Agent from a manual brief\",\"dateModified\":\"2026-12-03T13:25:26.003Z\",\"isPartOf\":{\"@id\":\"https://docs.affonso.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.affonso.io/api/endpoint/discovery/create-agent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.affonso.io/api/endpoint/discovery/create-agent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core Resources\",\"item\":\"https://docs.affonso.io/api/endpoint/clicks/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Discovery Agent\",\"item\":\"https://docs.affonso.io/api/endpoint/discovery/get-setup-defaults\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create an agent\",\"item\":\"https://docs.affonso.io/api/endpoint/discovery/create-agent\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.affonso.io/api/endpoint/discovery/create-agent#apireference\",\"headline\":\"Create an agent\",\"name\":\"Create an agent\",\"description\":\"Create a Discovery Agent from a manual brief\",\"url\":\"https://docs.affonso.io/api/endpoint/discovery/create-agent\",\"mainEntityOfPage\":{\"@id\":\"https://docs.affonso.io/api/endpoint/discovery/create-agent#webpage\"},\"dateModified\":\"2026-12-03T13:25:26.003Z\",\"publisher\":{\"@id\":\"https://docs.affonso.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.affonso.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Affonso Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Affonso Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/endpoint/discovery/create-agent.md","siteName":"Affonso Docs","nav":{"global":{"anchors":[{"anchor":"Home","icon":"home","href":"https://affonso.io"},{"anchor":"Blog","icon":"newspaper","href":"https://affonso.io/blog"},{"anchor":"Help Center","icon":"book-open-cover","href":"https://affonso.io/help"}]},"tabs":[{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"API Introduction","href":"/api/introduction"},{"title":"Authentication","href":"/api/authentication"},{"title":"Rate Limits","href":"/api/rate-limits"},{"title":"TypeScript SDK","href":"/api/sdk/typescript"}]},{"group":"Guide","pages":[{"title":"Track With Tracking Pixel","href":"/api/with-tracking-pixel"},{"title":"Track Without Tracking Pixel","href":"/api/without-tracking-pixel"},{"title":"Proxy Setup (Optional)","href":"/api/proxy-setup"},{"title":"Server-Side Tracking","href":"/api/server-side-tracking"},{"title":"Embedded Referral Dashboard","href":"/api/embedded-dashboard"},{"title":"Segment Track Events","href":"/api/segment-track-events"}]},{"group":"Core Resources","pages":[{"group":"Clicks","pages":[{"title":"Track Click","api":"POST https://api.affonso.io/v1/clicks","href":"/api/endpoint/clicks/create"}]},{"group":"Signups","pages":[{"title":"Record Lead Signup","api":"POST /v1/signups","href":"/api/endpoint/signups/create"}]},{"group":"Conversions","pages":[{"title":"Create Conversion","api":"POST https://api.affonso.io/v1/conversions","href":"/api/endpoint/conversions/create"},{"title":"Refund Conversion","api":"POST https://api.affonso.io/v1/conversions/{id}/refund","href":"/api/endpoint/conversions/refund"}]},{"group":"Events","pages":[{"title":"Create Event","api":"POST https://api.affonso.io/v1/events","href":"/api/endpoint/events/create"}]},{"group":"Affiliates","pages":[{"title":"List Affiliates","api":"GET https://api.affonso.io/v1/affiliates","href":"/api/endpoint/affiliates/list"},{"title":"Get Affiliate","api":"GET https://api.affonso.io/v1/affiliates/{id}","href":"/api/endpoint/affiliates/get"},{"title":"Get Affiliate Analytics","api":"GET https://api.affonso.io/v1/affiliates/{id}/analytics","href":"/api/endpoint/affiliates/analytics"},{"title":"Create Affiliate","api":"POST https://api.affonso.io/v1/affiliates","href":"/api/endpoint/affiliates/create"},{"title":"Update Affiliate","api":"PUT https://api.affonso.io/v1/affiliates/{id}","href":"/api/endpoint/affiliates/update"},{"title":"Delete Affiliate","api":"DELETE https://api.affonso.io/v1/affiliates/{id}","href":"/api/endpoint/affiliates/delete"},{"title":"Generate Portal Login Token","api":"POST https://api.affonso.io/v1/affiliates/{id}/portal-token","href":"/api/endpoint/affiliates/portal-token"}]},{"group":"Fraud Events","pages":[{"title":"List Fraud Events","api":"GET https://api.affonso.io/v1/fraud-events","href":"/api/endpoint/fraud-events/list"},{"title":"Confirm Fraud Events","api":"POST https://api.affonso.io/v1/fraud-events/confirm","href":"/api/endpoint/fraud-events/confirm"},{"title":"Resolve Fraud Events","api":"POST https://api.affonso.io/v1/fraud-events/resolve","href":"/api/endpoint/fraud-events/resolve"}]},{"group":"Referrals","pages":[{"title":"List Referrals","api":"GET https://api.affonso.io/v1/referrals","href":"/api/endpoint/referrals/list"},{"title":"Get Referral","api":"GET https://api.affonso.io/v1/referrals/{id}","href":"/api/endpoint/referrals/get"},{"title":"Create Referral","api":"POST https://api.affonso.io/v1/referrals","href":"/api/endpoint/referrals/create"},{"title":"Update Referral","api":"PUT https://api.affonso.io/v1/referrals/{id}","href":"/api/endpoint/referrals/update"},{"title":"Delete Referral","api":"DELETE https://api.affonso.io/v1/referrals/{id}","href":"/api/endpoint/referrals/delete"}]},{"group":"Commissions","pages":[{"title":"List Commissions","api":"GET https://api.affonso.io/v1/commissions","href":"/api/endpoint/commissions/list"},{"title":"Get Commission","api":"GET https://api.affonso.io/v1/commissions/{id}","href":"/api/endpoint/commissions/get"},{"title":"Create Commission","api":"POST https://api.affonso.io/v1/commissions","href":"/api/endpoint/commissions/create"},{"title":"Create Bonus","api":"POST https://api.affonso.io/v1/commissions/bonus","href":"/api/endpoint/commissions/bonus"},{"title":"Update Commission","api":"PUT https://api.affonso.io/v1/commissions/{id}","href":"/api/endpoint/commissions/update"},{"title":"Delete Commission","api":"DELETE https://api.affonso.io/v1/commissions/{id}","href":"/api/endpoint/commissions/delete"}]},{"group":"Payouts","pages":[{"title":"List Payouts","api":"GET https://api.affonso.io/v1/payouts","href":"/api/endpoint/payouts/list"},{"title":"Get Payout","api":"GET https://api.affonso.io/v1/payouts/{id}","href":"/api/endpoint/payouts/get"},{"title":"Update Payout","api":"PUT https://api.affonso.io/v1/payouts/{id}","href":"/api/endpoint/payouts/update"},{"title":"Revert Payout","api":"POST https://api.affonso.io/v1/payouts/{id}/revert","href":"/api/endpoint/payouts/revert"}]},{"group":"Billing","pages":[{"title":"List invoices","api":"GET https://api.affonso.io/v1/billing/invoices","href":"/api/endpoint/billing/list-invoices"}]},{"group":"Discovery Agent","pages":[{"group":"Setup","pages":[{"title":"Get setup defaults","api":"GET https://api.affonso.io/v1/discovery/setup-defaults","href":"/api/endpoint/discovery/get-setup-defaults"},{"title":"Get email searches","api":"GET https://api.affonso.io/v1/discovery/email-searches","href":"/api/endpoint/discovery/get-email-searches"},{"title":"Get domain profile","api":"GET https://api.affonso.io/v1/discovery/domains/{domain}","description":"Read the saved public profile of a root domain","href":"/api/endpoint/discovery/get-domain-profile"}]},{"group":"Agents","pages":[{"title":"Create an agent","api":"POST https://api.affonso.io/v1/discovery/agents","href":"/api/endpoint/discovery/create-agent"},{"title":"List agents","api":"GET https://api.affonso.io/v1/discovery/agents","description":"List your team's Discovery Agents","href":"/api/endpoint/discovery/list-agents"},{"title":"Get an agent","api":"GET https://api.affonso.io/v1/discovery/agents/{id}","href":"/api/endpoint/discovery/get-agent"},{"title":"Update an agent","api":"PATCH https://api.affonso.io/v1/discovery/agents/{id}","href":"/api/endpoint/discovery/update-agent"},{"title":"Delete an agent","api":"DELETE https://api.affonso.io/v1/discovery/agents/{id}","href":"/api/endpoint/discovery/delete-agent"},{"title":"Pause an agent","api":"POST https://api.affonso.io/v1/discovery/agents/{id}/pause","href":"/api/endpoint/discovery/pause-agent"},{"title":"Resume an agent","api":"POST https://api.affonso.io/v1/discovery/agents/{id}/resume","href":"/api/endpoint/discovery/resume-agent"},{"title":"Get agent overview","api":"GET https://api.affonso.io/v1/discovery/agents/{id}/overview","href":"/api/endpoint/discovery/get-agent-overview"},{"title":"Get lookalikes","api":"GET https://api.affonso.io/v1/discovery/agents/{id}/lookalikes","href":"/api/endpoint/discovery/get-lookalikes"},{"title":"Update lookalikes","api":"PUT https://api.affonso.io/v1/discovery/agents/{id}/lookalikes","href":"/api/endpoint/discovery/update-lookalikes"}]},{"group":"Runs","pages":[{"title":"Start a run","api":"POST https://api.affonso.io/v1/discovery/agents/{id}/runs","href":"/api/endpoint/discovery/start-run"},{"title":"List runs","api":"GET https://api.affonso.io/v1/discovery/agents/{id}/runs","href":"/api/endpoint/discovery/list-runs"},{"title":"List search cursors","api":"GET https://api.affonso.io/v1/discovery/agents/{id}/search-cursors","href":"/api/endpoint/discovery/list-search-cursors"}]},{"group":"Matches","pages":[{"title":"List matches","api":"GET https://api.affonso.io/v1/discovery/agents/{id}/matches","href":"/api/endpoint/discovery/list-matches"},{"title":"Get a match","api":"GET https://api.affonso.io/v1/discovery/matches/{id}","href":"/api/endpoint/discovery/get-match"},{"title":"Review a match","api":"PATCH https://api.affonso.io/v1/discovery/matches/{id}","href":"/api/endpoint/discovery/review-match"}]},{"group":"Directions","pages":[{"title":"List directions","api":"GET https://api.affonso.io/v1/discovery/agents/{id}/directions","href":"/api/endpoint/discovery/list-directions"},{"title":"Decide on a direction","api":"POST https://api.affonso.io/v1/discovery/agents/{id}/directions/{direction_id}/decision","href":"/api/endpoint/discovery/decide-direction"},{"title":"List similar products","api":"GET https://api.affonso.io/v1/discovery/agents/{id}/similar-products","href":"/api/endpoint/discovery/list-similar-products"}]},{"group":"Hard List and Exclusions","pages":[{"title":"List hard list","api":"GET https://api.affonso.io/v1/discovery/agents/{id}/hard-list","href":"/api/endpoint/discovery/list-hard-list"},{"title":"Get hard-list item","api":"GET https://api.affonso.io/v1/discovery/hard-list/{id}","href":"/api/endpoint/discovery/get-hard-list-item"},{"title":"List exclusion proposals","api":"GET https://api.affonso.io/v1/discovery/agents/{id}/exclusion-proposals","href":"/api/endpoint/discovery/list-exclusion-proposals"},{"title":"Get exclusion proposal","api":"GET https://api.affonso.io/v1/discovery/exclusion-proposals/{id}","href":"/api/endpoint/discovery/get-exclusion-proposal"}]}]},{"group":"Coupons","pages":[{"title":"List Coupons","api":"GET https://api.affonso.io/v1/coupons","href":"/api/endpoint/coupons/list"},{"title":"Get Coupon","api":"GET https://api.affonso.io/v1/coupons/{id}","href":"/api/endpoint/coupons/get"},{"title":"Create Coupon","api":"POST https://api.affonso.io/v1/coupons","href":"/api/endpoint/coupons/create"},{"title":"Delete Coupon","api":"DELETE https://api.affonso.io/v1/coupons/{id}","href":"/api/endpoint/coupons/delete"}]},{"group":"Embed","pages":[{"title":"Create Embed Token","api":"POST https://api.affonso.io/v1/embed/token","href":"/api/endpoint/embed/create-token"},{"title":"Get Embed Data","api":"GET https://api.affonso.io/v1/embed/data","href":"/api/endpoint/embed/get-data"},{"title":"Create Self-Service Coupon","api":"POST https://api.affonso.io/v1/embed/coupon","href":"/api/endpoint/embed/create-coupon"}]},{"group":"Affiliate Finder","pages":[{"title":"Start Finder Search","api":"POST https://api.affonso.io/v1/finder/searches","href":"/api/endpoint/finder/start-search"},{"title":"List Finder Searches","api":"GET https://api.affonso.io/v1/finder/searches","href":"/api/endpoint/finder/list-searches"},{"title":"List Finder Results","api":"GET https://api.affonso.io/v1/finder/searches/{id}/results","href":"/api/endpoint/finder/list-results"},{"title":"List Finder Shortlist","api":"GET https://api.affonso.io/v1/finder/shortlist","href":"/api/endpoint/finder/list-shortlist"},{"title":"Add Finder Result to Shortlist","api":"POST https://api.affonso.io/v1/finder/shortlist","href":"/api/endpoint/finder/add-shortlist"},{"title":"Update Finder Shortlist Item","api":"PATCH https://api.affonso.io/v1/finder/shortlist/{id}","href":"/api/endpoint/finder/update-shortlist"},{"title":"Delete Finder Shortlist Item","api":"DELETE https://api.affonso.io/v1/finder/shortlist/{id}","href":"/api/endpoint/finder/delete-shortlist"}]}]},{"group":"Program Management","pages":[{"group":"Program Settings","pages":[{"group":"Info","pages":[{"title":"Get Program Info","api":"GET https://api.affonso.io/v1/program","href":"/api/endpoint/program/get-info"},{"title":"Update Program Info","api":"PATCH https://api.affonso.io/v1/program","href":"/api/endpoint/program/update-info"}]},{"group":"Brand Profile","pages":[{"title":"Get Brand Profile","api":"GET https://api.affonso.io/v1/program/brand","href":"/api/endpoint/program/get-brand-profile"},{"title":"Update Brand Profile","api":"PATCH https://api.affonso.io/v1/program/brand","href":"/api/endpoint/program/update-brand-profile"}]},{"group":"Payment Terms","pages":[{"title":"Get Payment Terms","api":"GET https://api.affonso.io/v1/program/payment-terms","href":"/api/endpoint/program/get-payment-terms"},{"title":"Update Payment Terms","api":"PATCH https://api.affonso.io/v1/program/payment-terms","href":"/api/endpoint/program/update-payment-terms"}]},{"group":"Tracking","pages":[{"title":"Get Tracking Settings","api":"GET https://api.affonso.io/v1/program/tracking","href":"/api/endpoint/program/get-tracking"},{"title":"Update Tracking Settings","api":"PATCH https://api.affonso.io/v1/program/tracking","href":"/api/endpoint/program/update-tracking"}]},{"group":"Restrictions","pages":[{"title":"Get Restrictions","api":"GET https://api.affonso.io/v1/program/restrictions","href":"/api/endpoint/program/get-restrictions"},{"title":"Update Restrictions","api":"PATCH https://api.affonso.io/v1/program/restrictions","href":"/api/endpoint/program/update-restrictions"}]},{"group":"Portal","pages":[{"title":"Get Portal Settings","api":"GET https://api.affonso.io/v1/program/portal","href":"/api/endpoint/program/get-portal"},{"title":"Update Portal Settings","api":"PATCH https://api.affonso.io/v1/program/portal","href":"/api/endpoint/program/update-portal"}]},{"group":"Fraud Rules","pages":[{"title":"Get Fraud Rules","api":"GET https://api.affonso.io/v1/program/fraud-rules","href":"/api/endpoint/program/get-fraud-rules"},{"title":"Update Fraud Rules","api":"PATCH https://api.affonso.io/v1/program/fraud-rules","href":"/api/endpoint/program/update-fraud-rules"}]},{"group":"Notifications","pages":[{"title":"List Notification Settings","api":"GET https://api.affonso.io/v1/program/notifications","href":"/api/endpoint/program/list-notifications"},{"title":"Update Notification Setting","api":"PATCH https://api.affonso.io/v1/program/notifications/{emailTypeId}","href":"/api/endpoint/program/update-notification"}]},{"group":"Affiliate Groups","pages":[{"title":"List Groups","api":"GET https://api.affonso.io/v1/program/groups","href":"/api/endpoint/program/list-groups"},{"title":"Get Group","api":"GET https://api.affonso.io/v1/program/groups/{id}","href":"/api/endpoint/program/get-group"},{"title":"Create Group","api":"POST https://api.affonso.io/v1/program/groups","href":"/api/endpoint/program/create-group"},{"title":"Update Group","api":"PATCH https://api.affonso.io/v1/program/groups/{id}","href":"/api/endpoint/program/update-group"},{"title":"Delete Group","api":"DELETE https://api.affonso.io/v1/program/groups/{id}","href":"/api/endpoint/program/delete-group"}]},{"group":"Promotion URLs","pages":[{"title":"List Promotion URLs","api":"GET https://api.affonso.io/v1/program/promotion-urls","href":"/api/endpoint/program/list-promotion-urls"},{"title":"Create Promotion URL","api":"POST https://api.affonso.io/v1/program/promotion-urls","href":"/api/endpoint/program/create-promotion-url"},{"title":"Get Promotion URL","api":"GET https://api.affonso.io/v1/program/promotion-urls/{id}","href":"/api/endpoint/program/get-promotion-url"},{"title":"Update Promotion URL","api":"PATCH https://api.affonso.io/v1/program/promotion-urls/{id}","href":"/api/endpoint/program/update-promotion-url"},{"title":"Delete Promotion URL","api":"DELETE https://api.affonso.io/v1/program/promotion-urls/{id}","href":"/api/endpoint/program/delete-promotion-url"},{"title":"Set Program Default Promotion URL","api":"PUT https://api.affonso.io/v1/program/promotion-urls/default","href":"/api/endpoint/program/set-promotion-url-default"},{"title":"Set Group Default Promotion URL","api":"PUT https://api.affonso.io/v1/program/groups/{groupId}/promotion-url-default","href":"/api/endpoint/program/set-group-promotion-url-default"}]},{"group":"Creatives","pages":[{"title":"List Creatives","api":"GET https://api.affonso.io/v1/program/creatives","href":"/api/endpoint/program/list-creatives"},{"title":"Get Creative","api":"GET https://api.affonso.io/v1/program/creatives/{id}","href":"/api/endpoint/program/get-creative"},{"title":"Create Creative","api":"POST https://api.affonso.io/v1/program/creatives","href":"/api/endpoint/program/create-creative"},{"title":"Update Creative","api":"PATCH https://api.affonso.io/v1/program/creatives/{id}","href":"/api/endpoint/program/update-creative"},{"title":"Delete Creative","api":"DELETE https://api.affonso.io/v1/program/creatives/{id}","href":"/api/endpoint/program/delete-creative"}]}]},{"group":"Campaigns","pages":[{"title":"List Campaigns","api":"GET https://api.affonso.io/v1/program/campaigns","href":"/api/endpoint/campaigns/list"},{"title":"Get Campaign","api":"GET https://api.affonso.io/v1/program/campaigns/{id}","href":"/api/endpoint/campaigns/get"},{"title":"Create Campaign","api":"POST https://api.affonso.io/v1/program/campaigns","href":"/api/endpoint/campaigns/create"},{"title":"Update Campaign","api":"PATCH https://api.affonso.io/v1/program/campaigns/{id}","href":"/api/endpoint/campaigns/update"},{"title":"List Campaign Applications","api":"GET https://api.affonso.io/v1/program/campaigns/{id}/applications","href":"/api/endpoint/campaigns/list-applications"},{"title":"Apply to Campaign","api":"POST https://api.affonso.io/v1/program/campaigns/{id}/applications","href":"/api/endpoint/campaigns/apply"},{"title":"Accept Campaign Application","api":"POST https://api.affonso.io/v1/program/campaigns/{id}/applications/{applicationId}/accept","href":"/api/endpoint/campaigns/accept-application"},{"title":"Reject Campaign Application","api":"POST https://api.affonso.io/v1/program/campaigns/{id}/applications/{applicationId}/reject","href":"/api/endpoint/campaigns/reject-application"},{"title":"Approve Campaign Submission","api":"POST https://api.affonso.io/v1/program/campaigns/{id}/submissions/{submissionId}/approve","href":"/api/endpoint/campaigns/approve-submission"},{"title":"Update Retainer Condition","api":"PATCH https://api.affonso.io/v1/program/campaigns/{id}/applications/{applicationId}/condition","href":"/api/endpoint/campaigns/update-retainer-condition"},{"title":"End Partner Retainer","api":"POST https://api.affonso.io/v1/program/campaigns/{id}/applications/{applicationId}/end-retainer","href":"/api/endpoint/campaigns/end-retainer"},{"title":"Resume Partner Retainer","api":"POST https://api.affonso.io/v1/program/campaigns/{id}/applications/{applicationId}/resume-retainer","href":"/api/endpoint/campaigns/resume-retainer"},{"title":"List Retainer Periods","api":"GET https://api.affonso.io/v1/program/campaigns/{id}/retainer-periods","href":"/api/endpoint/campaigns/list-retainer-periods"},{"title":"Approve Retainer Period","api":"POST https://api.affonso.io/v1/program/campaigns/{id}/retainer-periods/{periodId}/approve","href":"/api/endpoint/campaigns/approve-retainer-period"},{"title":"Reject Retainer Period","api":"POST https://api.affonso.io/v1/program/campaigns/{id}/retainer-periods/{periodId}/reject","href":"/api/endpoint/campaigns/reject-retainer-period"}]},{"group":"Affiliate Onboarding","pages":[{"title":"Get Onboarding Form","api":"GET https://api.affonso.io/v1/onboarding-form","href":"/api/endpoint/onboarding/get-form"},{"title":"Create Onboarding Form","api":"POST https://api.affonso.io/v1/onboarding-form","href":"/api/endpoint/onboarding/create-form"},{"title":"Update Onboarding Form","api":"PATCH https://api.affonso.io/v1/onboarding-form","href":"/api/endpoint/onboarding/update-form"},{"title":"Delete Onboarding Form","api":"DELETE https://api.affonso.io/v1/onboarding-form","href":"/api/endpoint/onboarding/delete-form"},{"title":"Get Affiliate Onboarding Responses","api":"GET https://api.affonso.io/v1/affiliates/{id}/onboarding-responses","href":"/api/endpoint/onboarding/get-responses"},{"title":"Submit Onboarding Responses","api":"POST https://api.affonso.io/v1/affiliates/{id}/onboarding-responses","href":"/api/endpoint/onboarding/submit-responses"}]}]},{"group":"Marketplace","pages":[{"title":"List Marketplace Programs","api":"GET https://api.affonso.io/v1/marketplace","href":"/api/endpoint/marketplace/list"},{"title":"Get Marketplace Program","api":"GET https://api.affonso.io/v1/marketplace/{id}","href":"/api/endpoint/marketplace/get"},{"title":"List Marketplace Campaigns","api":"GET https://api.affonso.io/v1/marketplace/campaigns","href":"/api/endpoint/marketplace/list-campaigns"},{"title":"Get Marketplace Campaign","api":"GET https://api.affonso.io/v1/marketplace/campaigns/{id}","href":"/api/endpoint/marketplace/get-campaign"}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/introduction"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/introduction"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/introduction"}]}]},"basePath":"","title":"Create an agent - Affonso Docs","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DPBgY0Zl.js","snippetPresets-DfrK5Qk-.js","utils-BhOu8MoY.js","style-to-object-BY3JEAdk.js","utils-uJw0j5Le.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Bf5DiN6S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DIo_VyID.js","_Uint8Array-BCCZOmlk.js","isObject-FP1Yky1u.js","ApiExamples-btA_N7J3.js","usePlaygroundInputsStore-D9E8vgOP.js","shallow-BXJ3D3rC.js","isEqual-DTxWZblT.js","CodeSnippets-yZyeAOhB.js","CodeSnippet-DNSgsmyp.js","use-playground-group-access-B6tdpwEQ.js","Page-C_4zetsC.js","api-description-markdown-Bnx5o_aC.js","DynamicMarkdown-DGZbG3dj.js","SectionHeading-Su-XbcWJ.js","MethodPill-BEHdnIWE.js","getPastedJson-MUjpQ42l.js","Check2Icon-HQrwfTCD.js","axios-CsQoIw0U.js"]}