List memory parameters for a user, grouped by institution.
curl --request GET \
--url https://hiimpria.ai/api/admin/memory/user/{userId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://hiimpria.ai/api/admin/memory/user/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://hiimpria.ai/api/admin/memory/user/{userId}', 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/memory/user/{userId}",
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://hiimpria.ai/api/admin/memory/user/{userId}"
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://hiimpria.ai/api/admin/memory/user/{userId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/admin/memory/user/{userId}")
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{
"success": true,
"user": {
"_id": "<string>",
"email": "<string>",
"fname": "<string>",
"lname": "<string>"
},
"data": [
{
"_id": "<string>",
"key_name": "<string>",
"key_value": "<string>",
"key_description": "<string>",
"key_namespace": "<string>",
"shared": true,
"created": "2023-11-07T05:31:56Z",
"institution": {
"_id": "<string>",
"name": "<string>",
"ainame": "<string>"
}
}
]
}Admin Memory
List memory parameters for a user, grouped by institution.
Returns the account’s memory rows that you may see: its rows on the
Digital Twins where you hold users.edit and the account has joined
itself (an active membership of its own, or one the person accepted),
plus its personal rows when there is at least one such Digital Twin.
A membership you added by importing the address counts only once the
person has used it. Otherwise data is empty.
GET
/
api
/
admin
/
memory
/
user
/
{userId}
List memory parameters for a user, grouped by institution.
curl --request GET \
--url https://hiimpria.ai/api/admin/memory/user/{userId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://hiimpria.ai/api/admin/memory/user/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://hiimpria.ai/api/admin/memory/user/{userId}', 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/memory/user/{userId}",
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://hiimpria.ai/api/admin/memory/user/{userId}"
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://hiimpria.ai/api/admin/memory/user/{userId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/admin/memory/user/{userId}")
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{
"success": true,
"user": {
"_id": "<string>",
"email": "<string>",
"fname": "<string>",
"lname": "<string>"
},
"data": [
{
"_id": "<string>",
"key_name": "<string>",
"key_value": "<string>",
"key_description": "<string>",
"key_namespace": "<string>",
"shared": true,
"created": "2023-11-07T05:31:56Z",
"institution": {
"_id": "<string>",
"name": "<string>",
"ainame": "<string>"
}
}
]
}Authorizations
JWT token passed in authorization header
Path Parameters
Was this page helpful?