Skip to main content
POST
Asks a Discovery Agent to search now. The agent decides what to search. New prospects appear as delivered matches in List matches. Requires the write:discovery permission and a plan that includes the Discovery Agent. The agent must be live and have at least one keyword or one competitor. Lookalikes do not count.
The response status tells you whether a new step started:
  • 201 Created: a new search step started. data describes it.
  • 202 Accepted: nothing new started right now, for example because a step is already running. data describes the running step. When no step is running, data is a placeholder with status pending, zero counts, and id set to the agent ID.
data.id is the search run ID when the step already has one. Otherwise it is the ID of the step itself, which does not appear in List runs.

Path Parameters

string
required
Agent ID.

Body Parameters

The body is optional.
integer
default:"10"
Accepted for backwards compatibility and ignored. If sent, it must be an integer from 1 to 100. The agent picks its own search depth.

Response

boolean
true when the request succeeds.
object
The search step.

Errors

  • 400 VALIDATION_ERROR: the body is not valid JSON or fails validation. The message is Invalid request and details lists the invalid fields.
  • 400 VALIDATION_ERROR: the agent has no keyword or competitor. The message is A Discovery agent needs at least one keyword or one competitor before a run can start. Lookalikes do not count.
  • 404 NOT_FOUND: no agent with this ID exists for your team, or the agent was deleted. An agent that belongs to another team also returns 404. The message is Discovery agent not found.
  • 409 CONFLICT: the agent is paused. The message is Agent is paused.
  • 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.
Agent paused