Retrieve filtered list of assistants
curl --request POST \
--url https://hiimpria.ai/api/admin/assistants \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"minimum": true,
"institution": "665653e9f7e4f4f1b5c6ef1b"
}
'import requests
url = "https://hiimpria.ai/api/admin/assistants"
payload = {
"minimum": True,
"institution": "665653e9f7e4f4f1b5c6ef1b"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({minimum: true, institution: '665653e9f7e4f4f1b5c6ef1b'})
};
fetch('https://hiimpria.ai/api/admin/assistants', 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://hiimpria.ai/api/admin/assistants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'minimum' => true,
'institution' => '665653e9f7e4f4f1b5c6ef1b'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://hiimpria.ai/api/admin/assistants"
payload := strings.NewReader("{\n \"minimum\": true,\n \"institution\": \"665653e9f7e4f4f1b5c6ef1b\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://hiimpria.ai/api/admin/assistants")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"minimum\": true,\n \"institution\": \"665653e9f7e4f4f1b5c6ef1b\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/admin/assistants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"minimum\": true,\n \"institution\": \"665653e9f7e4f4f1b5c6ef1b\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"_id": "<string>",
"name": "<string>",
"description": "<string>",
"instructions": "<string>",
"picture_url": "<string>",
"status": "active",
"liked_count": 123,
"admin_only": true,
"institution_shared": true,
"remember_history": 123,
"created": "2023-11-07T05:31:56Z",
"argument_1": "<string>",
"argument_5": "<string>",
"editable_others": true,
"ragCollections": [
"<string>"
],
"assistantToolMode": "all",
"assistantTools": [
{
"tool": "<string>",
"instructionsOverride": "<string>"
}
],
"history_count": 123,
"user_data": {
"email": "<string>",
"fname": "<string>",
"lname": "<string>",
"institution": "<string>",
"accountType": "<string>"
},
"institution_data": {
"name": "<string>",
"ainame": "<string>",
"status": "<string>",
"picture": "<string>"
},
"account_data": {
"name": "<string>",
"status": "<string>"
}
}
],
"total": 123,
"hasMore": true,
"page": 123,
"pageSize": 123,
"message": "<string>"
}Admin Assistants
Retrieve filtered list of assistants
Fetches a list of AI assistants based on specified filters, with optional minimal data return
POST
/
api
/
admin
/
assistants
Retrieve filtered list of assistants
curl --request POST \
--url https://hiimpria.ai/api/admin/assistants \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"minimum": true,
"institution": "665653e9f7e4f4f1b5c6ef1b"
}
'import requests
url = "https://hiimpria.ai/api/admin/assistants"
payload = {
"minimum": True,
"institution": "665653e9f7e4f4f1b5c6ef1b"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({minimum: true, institution: '665653e9f7e4f4f1b5c6ef1b'})
};
fetch('https://hiimpria.ai/api/admin/assistants', 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://hiimpria.ai/api/admin/assistants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'minimum' => true,
'institution' => '665653e9f7e4f4f1b5c6ef1b'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://hiimpria.ai/api/admin/assistants"
payload := strings.NewReader("{\n \"minimum\": true,\n \"institution\": \"665653e9f7e4f4f1b5c6ef1b\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://hiimpria.ai/api/admin/assistants")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"minimum\": true,\n \"institution\": \"665653e9f7e4f4f1b5c6ef1b\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/admin/assistants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"minimum\": true,\n \"institution\": \"665653e9f7e4f4f1b5c6ef1b\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"_id": "<string>",
"name": "<string>",
"description": "<string>",
"instructions": "<string>",
"picture_url": "<string>",
"status": "active",
"liked_count": 123,
"admin_only": true,
"institution_shared": true,
"remember_history": 123,
"created": "2023-11-07T05:31:56Z",
"argument_1": "<string>",
"argument_5": "<string>",
"editable_others": true,
"ragCollections": [
"<string>"
],
"assistantToolMode": "all",
"assistantTools": [
{
"tool": "<string>",
"instructionsOverride": "<string>"
}
],
"history_count": 123,
"user_data": {
"email": "<string>",
"fname": "<string>",
"lname": "<string>",
"institution": "<string>",
"accountType": "<string>"
},
"institution_data": {
"name": "<string>",
"ainame": "<string>",
"status": "<string>",
"picture": "<string>"
},
"account_data": {
"name": "<string>",
"status": "<string>"
}
}
],
"total": 123,
"hasMore": true,
"page": 123,
"pageSize": 123,
"message": "<string>"
}Body
application/json
Response
Successfully retrieved assistants list
Was this page helpful?