Skip to main content
POST
Validate query

Authorizations

x-api-key
string
header
required

API key for authentication.

Body

application/json
query
string
required

Plain text query to validate.

Example:

"Series B funding rounds for SaaS startups"

Response

Query validation result.

Query quality assessment returned by the validate endpoint.

status
enum<string>
required

Overall quality level of the query.

Available options:
good,
needs_work,
critical
title
string
required

Short headline summarising the assessment.

Example:

"Specific event type clear"

confidence
number
required

Confidence score for this assessment.

Required range: 0 <= x <= 1
Example:

0.98

description
string

Plain-language explanation of the assessment result.

Example:

"Clear event type and focus; no timeframe needed for a default recent search."

issues
enum<string>[]

Issues identified in the query. Empty when status is good.

Category of a query issue identified during validation.

  • missing_event_type: Query does not specify a type of event to find.
  • too_vague: Query lacks sufficient focus to return targeted results.
  • too_specific: Query is overly constrained and may return no results.
  • wrong_timeframe: Requested timeframe exceeds the 30-day maximum window or references a historical period outside the supported range.
  • static_content: Query targets static or reference content such as specifications, how-to guides, or historical data rather than events.
  • article_request: Query requests articles or news content rather than describing an event to search for.
  • multiple_event_types: Query mixes unrelated event types; results may be unfocused.
  • too_short: Query is too short to resolve meaningful search intent.
  • too_long: Query is excessively long and may confuse the pipeline.
Available options:
missing_event_type,
too_vague,
too_specific,
wrong_timeframe,
static_content,
article_request,
multiple_event_types,
too_short,
too_long
Example:
suggestions
object[]

Actionable recommendations for each identified issue. Empty when status is good. Each suggestion corresponds to one entry in issues.

Example: