Get a search response by ID
curl --request GET \
--url https://api.cloudglue.dev/v1/search/{search_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cloudglue.dev/v1/search/{search_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cloudglue.dev/v1/search/{search_id}', 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.cloudglue.dev/v1/search/{search_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cloudglue.dev/v1/search/{search_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloudglue.dev/v1/search/{search_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudglue.dev/v1/search/{search_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "search",
"scope": "file",
"results": [
{
"type": "file",
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 123,
"filename": "<string>",
"summary": "<string>",
"generated_title": "<string>",
"thumbnail_url": "<string>",
"tag": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"label": "<string>"
}
}
],
"total": 123,
"limit": 123,
"query": "<string>",
"group_by_key": "file",
"group_count": 123,
"search_modalities": [
"general_content"
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Search
Get Search Response
Get a search response by search_id.
GET
/
search
/
{search_id}
Get a search response by ID
curl --request GET \
--url https://api.cloudglue.dev/v1/search/{search_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cloudglue.dev/v1/search/{search_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cloudglue.dev/v1/search/{search_id}', 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.cloudglue.dev/v1/search/{search_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cloudglue.dev/v1/search/{search_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloudglue.dev/v1/search/{search_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudglue.dev/v1/search/{search_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "search",
"scope": "file",
"results": [
{
"type": "file",
"file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 123,
"filename": "<string>",
"summary": "<string>",
"generated_title": "<string>",
"thumbnail_url": "<string>",
"tag": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"value": "<string>",
"label": "<string>"
}
}
],
"total": 123,
"limit": 123,
"query": "<string>",
"group_by_key": "file",
"group_count": 123,
"search_modalities": [
"general_content"
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Response
A search response
Specifies the type(s) of search to execute. When multiple modalities are specified, a hybrid search is executed that combines results from each modality.
Available modalities:
general_content: baseline for matching the content of the search item (file/segment) based on visual or spoken content similarity to provided short natural language query stringspeech_lexical: performs keyword based search (e.g. query ofpresidentmatchingpresidentorpresidentialstrings) and exact match (e.g. specifically find mentions of"Barack Obama"or"Donald Trump") against speech content present in search itemocr_lexical: performs keyword based search and exact match against screen text content present in search itemtag_semantic: performs basic word semantic similarity search against tag values associated with search items (e.g.query=animalexpected to match tags with value containingdogorcat)tag_lexical: performs keyword based search and exact match against tag values associated with search itemsdoc_lexical: performs keyword based search and exact match against file-level documents (generated summaries, metadata-collection docs, and entity-collection docs). Only applicable when searchscope=file.
Only applicable when search scope=file or scope=segment.
Maximum array length:
5Available options:
general_content, speech_lexical, ocr_lexical, tag_semantic, tag_lexical, doc_lexical