Skip to main content
POST
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.

Errors

  • 400 VALIDATION_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.
  • 400 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.
  • 403 INSUFFICIENT_PERMISSIONS: the API key does not have the write:discovery permission.
  • 403 FORBIDDEN: 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
No active plan