Who am I
curl --request GET \
--url https://{space}.{region}.api.niadra.com/v1/sources/meimport requests
url = "https://{space}.{region}.api.niadra.com/v1/sources/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{space}.{region}.api.niadra.com/v1/sources/me', 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://{space}.{region}.api.niadra.com/v1/sources/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://{space}.{region}.api.niadra.com/v1/sources/me"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{space}.{region}.api.niadra.com/v1/sources/me")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/sources/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"agent_memory": true,
"audience": "customer_agent",
"environment": "sandbox",
"key_id": "<string>",
"purposes": [
"<string>"
],
"region": "<string>",
"scopes": [
"<string>"
],
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"space_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verification_ceiling": "V0",
"source_name": "<string>",
"vendor": "<string>"
}Sources
Who am I
The space, the source and the scopes of the calling key, to check a key before wiring an agent to it.
GET
/
v1
/
sources
/
me
Who am I
curl --request GET \
--url https://{space}.{region}.api.niadra.com/v1/sources/meimport requests
url = "https://{space}.{region}.api.niadra.com/v1/sources/me"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{space}.{region}.api.niadra.com/v1/sources/me', 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://{space}.{region}.api.niadra.com/v1/sources/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://{space}.{region}.api.niadra.com/v1/sources/me"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{space}.{region}.api.niadra.com/v1/sources/me")
.asString();require 'uri'
require 'net/http'
url = URI("https://{space}.{region}.api.niadra.com/v1/sources/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"agent_memory": true,
"audience": "customer_agent",
"environment": "sandbox",
"key_id": "<string>",
"purposes": [
"<string>"
],
"region": "<string>",
"scopes": [
"<string>"
],
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"space_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"verification_ceiling": "V0",
"source_name": "<string>",
"vendor": "<string>"
}Response
200 - application/json
Successful Response
GET /v1/sources/me: what a key authenticates as, to check a key before wiring an agent to it.
Whether the space has the agents' own notes turned on.
Available options:
customer_agent, internal_agent, human, reviewer, analyst, trigger_target, export Available options:
sandbox, production Sorted.
Sorted.
Session verification levels. no_customer sits outside the V0-V4 scale.
Available options:
V0, V1, V2, V3, V4, no_customer 
