List Sources
curl --request GET \
--url https://api-prod.voltai.ai/source/api/sources/ \
--cookie sessionid=import requests
url = "https://api-prod.voltai.ai/source/api/sources/"
headers = {"cookie": "sessionid="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sessionid='}};
fetch('https://api-prod.voltai.ai/source/api/sources/', 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-prod.voltai.ai/source/api/sources/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "sessionid=",
]);
$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-prod.voltai.ai/source/api/sources/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "sessionid=")
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-prod.voltai.ai/source/api/sources/")
.header("cookie", "sessionid=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-prod.voltai.ai/source/api/sources/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'sessionid='
response = http.request(request)
puts response.read_body[
{
"page": 123,
"page_size": 123,
"total": 123,
"results": [
{
"name": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"topics": [
"<string>"
],
"display_name": "<string>",
"type": "CODE",
"status": "WAITING_FOR_APPROVAL",
"retrieval_disabled": true,
"link": "<string>"
}
]
}
]Sources
List Sources
List and query sources with filtering and pagination
GET
/
sources
/
List Sources
curl --request GET \
--url https://api-prod.voltai.ai/source/api/sources/ \
--cookie sessionid=import requests
url = "https://api-prod.voltai.ai/source/api/sources/"
headers = {"cookie": "sessionid="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sessionid='}};
fetch('https://api-prod.voltai.ai/source/api/sources/', 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-prod.voltai.ai/source/api/sources/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "sessionid=",
]);
$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-prod.voltai.ai/source/api/sources/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "sessionid=")
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-prod.voltai.ai/source/api/sources/")
.header("cookie", "sessionid=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-prod.voltai.ai/source/api/sources/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'sessionid='
response = http.request(request)
puts response.read_body[
{
"page": 123,
"page_size": 123,
"total": 123,
"results": [
{
"name": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"topics": [
"<string>"
],
"display_name": "<string>",
"type": "CODE",
"status": "WAITING_FOR_APPROVAL",
"retrieval_disabled": true,
"link": "<string>"
}
]
}
]Authorizations
cookieAuthApiKeyAuth
Query Parameters
Organization name (required for multi-tenant API keys)
Page number
Items per page
Search by name or display_name
Include disabled sources
Filter by status (active, training, processing, waiting, rejected, error)
Filter by topic UUID
Filter by type (pdf, html, md, csv, website, url, code, repository)