Quem sou
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>"
}Fontes
Quem sou
O espaço, a fonte e os escopos da chave que chama, para conferir uma chave antes de ligar um agente a ela.
GET
/
v1
/
sources
/
me
Quem sou
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>"
}Resposta
200 - application/json
Resposta de sucesso.
GET /v1/sources/me: como esta chave se autentica, para conferir uma chave antes de ligar um agente a ela.
Se o espaço tem as notas dos próprios agentes ligadas.
Opções disponíveis:
customer_agent, internal_agent, human, reviewer, analyst, trigger_target, export Opções disponíveis:
sandbox, production Em ordem.
Em ordem.
Nível de verificação da sessão. V0 autodeclarado, V1 plausível pelo canal, V2 atestado pelo canal, V3 desafiado (OTP ou login), V4 conferido com um sistema de registro ou por um atendente. no_customer vale para tarefas sem cliente presente e só é aceito de fontes de agente interno.
Opções disponíveis:
V0, V1, V2, V3, V4, no_customer 
