Skip to main content
POST
Run an on-demand mention search

Authorizations

Authorization
string
header
required

Clerk API key. Create one in Settings → API Keys. Pass as Authorization: Bearer <key>.

Body

application/json

On-demand mention search request.

query
string
required

The search phrase.

Required string length: 1 - 500
timeWindow
enum<string>
required

How far back to search: last 1, 7, or 30 days.

Available options:
1d,
7d,
30d
sources
string[]

Subset of workspace-enabled platforms to search. Defaults to all enabled sources.

Maximum array length: 64
Maximum string length: 64
excludeSources
string[]

Sources subtracted from the resolved source list.

Maximum array length: 64
Maximum string length: 64
keywordContext
string

Per-call relevance disambiguation. Overrides the workspace's relevance context for this call only.

Maximum string length: 2000
additionalTerms
string

Comma-separated terms required to co-occur with the query.

Maximum string length: 500
additionalTermsAndOr
boolean
default:false

false = AND (default), true = OR for additionalTerms.

excludeWords
string

Comma-separated exclusions.

Maximum string length: 500
minRelevance
enum<string>
default:medium

Display filter: hide relevant results below this AI-relevance bar from the response. Does not affect what is saved or billed. Ignored when includeNonRelevant is true.

Available options:
high,
medium,
low
includeNonRelevant
boolean
default:false

Display flag only. When true, mentions the AI judged NOT relevant are also returned (marked relevance: "not_relevant"). This does NOT change billing or persistence: every mention that reaches AI scoring is saved to the search and counts against the monthly quota regardless of this flag — it only controls what the response shows. Default false.

maxResults
integer
default:100

Result budget: drives how many candidates are fetched per source (min(maxResults, 100) each), AI-scored (which is what consumes mention quota), and returned. Default 100, cap 500.

Required range: 1 <= x <= 500
waitMs
integer
default:25000

How long the request blocks before falling back to async (202 + poll). Default and max 25000.

Required range: 0 <= x <= 25000

Response

200 response

Completed on-demand search.

searchId
string
required
status
string
required
Allowed value: "completed"
query
string
required
timeWindow
enum<string>
required
Available options:
1d,
7d,
30d
sources
string[]
required
startedAt
string
required
completedAt
string
required
stats
object
required

Per-stage funnel counts for a search.

mentions
object[]
required