Skip to main content
POST
Create a query

Authorizations

x-api-key
string
header
required

API key created from the Nephia dashboard for your Account.

Headers

Idempotency-Key
string

Unique key (e.g. UUID) making this POST safe to retry for 24 hours. Replays return the original response with an Idempotency-Replayed: true header; reusing a key with a different body returns 422.

Maximum string length: 255

Body

application/json
name
string
required
Required string length: 1 - 80
refreshIntervalSeconds
integer
required
globalCriteria
object
required
sources
object[]
required
Minimum array length: 1
webhookUrl
Allowed value: ""
aiEnabled
boolean
aiPreset
enum<string> | null
Available options:
product-model,
theme-sentiment,
seller,
duplicates,
custom,
null
aiPrompt
string | null
Maximum string length: 400
aiStep
object | null
sentimentEnabled
boolean
coBrandsEnabled
boolean
muteRules
(string | object)[]
Maximum array length: 50
Required string length: 1 - 60
vipAuthors
(string | object)[]
Maximum array length: 100
Required string length: 1 - 60
rules
object[]
Maximum array length: 20
webhookMode
enum<string>
Available options:
all,
rules
channels
object[]
Maximum array length: 5
spikeAlert
enum<string> | null
Available options:
low,
medium,
high,
null
backfill
boolean
schedule
object | null

Response

Query created

id
string
required
name
string
required
kind
enum<string>
required
Available options:
catalog,
listening
globalCriteria
object
required
refreshIntervalSeconds
number
required
sources
object[]
required
webhookUrl
string | null
required
webhookMode
enum<string>
required
Available options:
all,
rules
aiEnabled
boolean
required
aiPreset
string | null
required
aiPrompt
string | null
required
aiStep
object | null
required
sentimentEnabled
boolean
required
coBrandsEnabled
boolean
required
muteRules
any[]
required
vipAuthors
any[]
required
rules
any[]
required
schedule
object | null
required
isActive
boolean
required
pausedReason
string | null
required
createdAt
string
required
updatedAt
string
required