Resume a query
curl --request POST \
--url https://api.nephia.cc/v1/queries/{id}/resume \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nephia.cc/v1/queries/{id}/resume"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nephia.cc/v1/queries/{id}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nephia.cc/v1/queries/{id}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nephia.cc/v1/queries/{id}/resume"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nephia.cc/v1/queries/{id}/resume")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nephia.cc/v1/queries/{id}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"query": {
"id": "<string>",
"name": "<string>",
"kind": "catalog",
"globalCriteria": {},
"refreshIntervalSeconds": 123,
"sources": [
{
"source": "x",
"enabled": true,
"searches": [
{
"id": "<string>",
"label": "<string>",
"overridesEnabled": true,
"overrides": {},
"resolvedCriteria": {}
}
],
"refreshIntervalSeconds": 123
}
],
"webhookUrl": "<string>",
"webhookMode": "all",
"aiEnabled": true,
"aiPreset": "<string>",
"aiPrompt": "<string>",
"aiStep": {},
"sentimentEnabled": true,
"coBrandsEnabled": true,
"muteRules": [
"<unknown>"
],
"vipAuthors": [
"<unknown>"
],
"rules": [
"<unknown>"
],
"schedule": {},
"isActive": true,
"pausedReason": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"blockedSources": [
{
"source": "x",
"reason": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "Rate limit exceeded",
"code": "TOO_MANY_REQUESTS"
}Queries
Resume a query
Starts every child Watch that can follow. A Source an operator stopped stays stopped and is named in blockedSources rather than failing the call — the other Sources have no reason to stay down for it.
POST
/
v1
/
queries
/
{id}
/
resume
Resume a query
curl --request POST \
--url https://api.nephia.cc/v1/queries/{id}/resume \
--header 'x-api-key: <api-key>'import requests
url = "https://api.nephia.cc/v1/queries/{id}/resume"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.nephia.cc/v1/queries/{id}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nephia.cc/v1/queries/{id}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nephia.cc/v1/queries/{id}/resume"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.nephia.cc/v1/queries/{id}/resume")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nephia.cc/v1/queries/{id}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"query": {
"id": "<string>",
"name": "<string>",
"kind": "catalog",
"globalCriteria": {},
"refreshIntervalSeconds": 123,
"sources": [
{
"source": "x",
"enabled": true,
"searches": [
{
"id": "<string>",
"label": "<string>",
"overridesEnabled": true,
"overrides": {},
"resolvedCriteria": {}
}
],
"refreshIntervalSeconds": 123
}
],
"webhookUrl": "<string>",
"webhookMode": "all",
"aiEnabled": true,
"aiPreset": "<string>",
"aiPrompt": "<string>",
"aiStep": {},
"sentimentEnabled": true,
"coBrandsEnabled": true,
"muteRules": [
"<unknown>"
],
"vipAuthors": [
"<unknown>"
],
"rules": [
"<unknown>"
],
"schedule": {},
"isActive": true,
"pausedReason": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
},
"blockedSources": [
{
"source": "x",
"reason": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "Rate limit exceeded",
"code": "TOO_MANY_REQUESTS"
}Authorizations
API key created from the Nephia dashboard for your Account.
Headers
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:
255Path Parameters
Was this page helpful?